Skip to main content
POST
cURL
Deactivates one active code, in Ledger and in Stripe. Its redemptions and the discounts they made stay. The code’s text can be used again once it’s inactive. Needs the Catalog permission at Write.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

rewardId
string
required

The reward's ID.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9_-]+$
code
string
required

The code, any case.

Required string length: 1 - 40

Response

The reward with the code deactivated.

item
object
required
changed
boolean
required