v8
OpenAPI 3.1.02026-08-033623795.0 MBPromo codes
Update promo code
Update whether a promo code can be used at checkout.
Required permissions:
- promo_code:update
- access_pass:basic:read
patch/promo_codes/{id}
Path parameters
idstring required
Example:promo_xxxxxxxxxxxx
The unique identifier of the promo code to update.
Request body
Response
A successful response
Example response
{
"amount_off": 6.9,
"company": {
"id": "biz_xxxxxxxxxxxxxx"
},
"created_at": "2023-12-01T05:00:00.401Z",
"expires_at": "2023-12-01T05:00:00.401Z",
"id": "promo_xxxxxxxxxxxx",
"product": {
"id": "prod_xxxxxxxxxxxxx",
"title": "Pickaxe Analytics"
},
"promo_duration_months": 42,
"stock": 42,
"uses": 42
}