Promo codes
Update a company discount
Updates a discount. Send only the fields you want to change inside discount; omitted fields keep their current values. Requires a company admin Bearer token with coupons update permission. Returns the updated discount, 404 when it does not exist in the company, or 422 when validation fails.
PUT
Update a company discount
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Success
Available options:
flat, percentage, free_product, free_shipping, free_enrollment_pack Available options:
promo, manual, droplet Available options:
everything, specific_products, specific_collections, except_specific_products, specific_enrollment_packs, except_specific_enrollment_packs, null Available options:
product_discount, shipping_discount Merchant-only note about the promo code. Never shown to shoppers.
Maximum string length:
1000