curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promo_codes/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"description": "<string>",
"reward_id": 123,
"promoter_campaign_id": 123,
"metadata": {},
"details": {}
}'
{
"id": 123,
"code": "<string>",
"reward": {
"id": 123,
"name": "<string>"
},
"ext_id": "<string>",
"description": "<string>",
"company_id": 123,
"promoter_campaign_id": 123,
"metadata": {},
"details": {},
"archived_at": "2023-11-07T05:31:56Z"
}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promo_codes/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"description": "<string>",
"reward_id": 123,
"promoter_campaign_id": 123,
"metadata": {},
"details": {}
}'
{
"id": 123,
"code": "<string>",
"reward": {
"id": 123,
"name": "<string>"
},
"ext_id": "<string>",
"description": "<string>",
"company_id": 123,
"promoter_campaign_id": 123,
"metadata": {},
"details": {},
"archived_at": "2023-11-07T05:31:56Z"
}
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Promo code updated successfully
The response is of type object
.