Skip to main content
PATCH
/
v1
/
promo-codes
/
{id}
Update a promo code
curl --request PATCH \
  --url https://api.useduro.com/v1/promo-codes/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": true,
  "maxRedemptions": 123,
  "expiresAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "code": "<string>",
  "discountType": "<string>",
  "discountValue": 123,
  "duration": "<string>",
  "redeemedCount": 123,
  "remaining": 123,
  "active": true,
  "expiresAt": "<string>",
  "createdAt": "<string>"
}

Authorizations

Authorization
string
header
required

A secret key (sk_test_… / sk_live_…), OAuth token, or identity token.

Path Parameters

id
string
required

Body

application/json
active
boolean
maxRedemptions
integer | null
expiresAt
string<date-time> | null

Response

200 - application/json

OK

id
string
code
string
discountType
string
discountValue
integer
duration
string
redeemedCount
integer
remaining
integer | null
active
boolean
expiresAt
string | null
createdAt
string