curl -X POST \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"promoCodes": [
{
"name": "swx1",
"maxRedemptions": 1,
"active": true
},
{
"name": "swx2",
"maxRedemptions": 1,
"active": true
}
]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
},
{
"name": "swx2",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
}
]
}
Creates multiple promo codes for a specific coupon.
Maximum of 1,000 promo codes allowed per request.
curl -X POST \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"promoCodes": [
{
"name": "swx1",
"maxRedemptions": 1,
"active": true
},
{
"name": "swx2",
"maxRedemptions": 1,
"active": true
}
]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
},
{
"name": "swx2",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
}
]
}
curl -X POST \
'https://api.appcharge.com/coupons/coupon/summer26/promo-codes' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"promoCodes": [
{
"name": "swx1",
"maxRedemptions": 1,
"active": true
},
{
"name": "swx2",
"maxRedemptions": 1,
"active": true
}
]
}'
{
"promoCodes": [
{
"name": "swx1",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
},
{
"name": "swx2",
"active": true,
"maxRedemptions": 1,
"createdAt": "2025-01-22T15:58:24.116Z",
"updatedAt": "2025-01-25T08:44:26.668Z"
}
]
}
Publisher token, as displayed in the Publisher Dashboard.
Coupon name.
"summer26"
List of promo codes to create.
Show child attributes
Promo codes created successfully.
List of created promo codes.
Show child attributes
Was this page helpful?