curl -X PATCH \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes/set-activation' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"active": false,
"promoCodeNames": ["swx1", "swx2", "swx3"]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": false,
"maxRedemptions": 100,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 28
},
{
"name": "swx2",
"active": false,
"maxRedemptions": 200,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 80
},
{
"name": "swx3",
"active": false,
"maxRedemptions": 250,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 30
}
]
}
curl -X PATCH \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes/set-activation' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"active": false,
"promoCodeNames": ["swx1", "swx2", "swx3"]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": false,
"maxRedemptions": 100,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 28
},
{
"name": "swx2",
"active": false,
"maxRedemptions": 200,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 80
},
{
"name": "swx3",
"active": false,
"maxRedemptions": 250,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 30
}
]
}
curl -X PATCH \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes/set-activation' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"active": false,
"promoCodeNames": ["swx1", "swx2", "swx3"]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": false,
"maxRedemptions": 100,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 28
},
{
"name": "swx2",
"active": false,
"maxRedemptions": 200,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 80
},
{
"name": "swx3",
"active": false,
"maxRedemptions": 250,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-03-05T10:00:00.000Z",
"redemptions": 30
}
]
}
Publisher token, as displayed in the Publisher Dashboard.
Coupon name.
"summer26"
Promo codes updated successfully.
List of updated promo codes.
Show child attributes
Was this page helpful?