Developers

Coupons

Markdown

Activate or deactivate a coupon

Does not create coupons or change their value; it only activates and deactivates them.

PATCH/stores/{storeId}/v1/coupons/{id}/status

Path parameters

idstringrequired

Headers

If-Matchstringrequired
ETag from a GET of this same resource projection.

Request body

activebooleanrequired

Response

dataobjectrequired
idinteger
codestring
typeobject
percent fixed
valuestring
Discount percentage or amount.
usageinteger
Number of uses.
expirystring | null (date)
activeboolean
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.

Errors

HTTPCodeMeaning
503APPS_SCOPE_RUNTIME_NOT_READYThe resource is not enabled on this merchant's store yet.

Shared codes are listed in Errors.

    ↑↓ moveEnter openEsc close