Promotions
Create Promotion
Create a new promotion for the account.
post/api/{account}/promotions
Request body
Example request
{
"type": "new",
"discount": 10,
"offerLimit": 10,
"expirationDays": 7,
"freeTrialDays": 10,
"message": "Enjoy this special offer!"
}Response
Example response
{
"data": [
{
"id": 123,
"message": "Example promotion message",
"rawMessage": "Example promotion message",
"hasRelatedPromo": false,
"price": 0,
"type": "all",
"canClaim": true,
"claimsCount": 0,
"subscribeCounts": 10,
"subscribeDays": 7,
"createdAt": "2025-01-01T00:00:00+00:00",
"finishedAt": "2025-01-02T00:00:00+00:00",
"isFinished": false
}
],
"_meta": {
"_credits": {
"used": 1,
"balance": 999999816,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": null,
"remaining_minute": 998,
"remaining_day": null,
"notice": "We have decided to remove our daily rate limits. Please remove any references to these in your integrations."
}
}
}