Unable to fetch a specific price_rule using api

Highlighted
New Member
1 0 0

I created an offer manually in the admin(id: 685699596399). But am unable to fetch the same using graphql or rest api.

GRAPHQL:

 

{
    priceRule(id:"gid://shopify/PriceRule/685699596399"){
        id
    }
}

Response:

{
    "data": {
        "priceRule": null
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 1,
            "actualQueryCost": 1,
            "throttleStatus": {
                "maximumAvailable": 1000,
                "currentlyAvailable": 999,
                "restoreRate": 50
            }
        }
    }
}

 

REST:

 

/api/2020-04/price_rules/685699596399.json

Response: 

{"errors":"Not Found"}

 

Also unable to find the same, when I try to fetch all offers at once.

Please help.

0 Likes