Discounts
Update a promotion code
Needs the catalog:write scope, or a full-access key. About scopes
PATCH
/
api/v1/promotion-codes/{id}Authorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalmax_redemptionsinteger | null
expires_atstring | null
Format:
"date-time"activeboolean
Path Parameters
idRequiredstring
Format:
"uuid"The code.