Discounts
Would this code work? (redeems nothing)
Needs the catalog:read scope, or a full-access key. About scopes
POST
/
api/v1/promotion-codes/validateAuthorization
AuthorizationRequiredBearer <token>
An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).
In: header
Request Body
application/jsonOptionalcodeRequiredstring
Minimum length:
1Maximum length: 64customer_idstring
Format:
"uuid"plan_idstring
Format:
"uuid"Always 200: an invalid code is valid:false with a machine-readable reason.