Update offer
PUT
/ admin/ v1/ stores/ {store_id}/ offers/ {offer_id}Replace an offer; pause it with active: false. Send If-Match.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.offer_idstringrequiredThe offer's ID, like
offer_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
product_idstringrequiredTypeID with the
prodprefix.discountobject | object | objectrequiredThe price the offer gives.
headlinesobjectrequiredNeeds one in the store's language; up to 80 characters each.
triggerobject | object | objectrequiredWhich orders see the offer.
textsobjectUp to 300 characters each.
activeboolean
Returns
200 Saved.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such offer. - 412
precondition_failedChanged since read. - 422
validation_failedValidation failed.