Skip to main content
POST
/
api
/
public
/
v1
/
promotion-codes
/
update
Update promotion code
curl --request POST \
  --url https://app.tagadapay.com/api/public/v1/promotion-codes/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "pc_123",
  "data": {
    "code": "WINTER30",
    "usageLimit": 200,
    "active": true,
    "firstTimeCustomersOnly": false
  }
}
'
{
  "id": "pc_123",
  "code": "WINTER30",
  "active": true,
  "usageLimit": 200
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
id
string
required
data
object
required

Response

Successful response