v1
latestOpenAPI 3.0.02026-08-062903562.2 MBPromo Code
createCampaignPromoCode
Create Promo Code for the specified Campaign
post/campaigns/{campaign}/promo-codes
Path parameters
campaigninteger required
Example:227362
Primary identifier of specified Campaign
Request body
Example request
{
"adjustment_amount": 10,
"adjustment_type": "percentage",
"code": "TENPERCENTOFF",
"ends_at": "2021-04-23T08:23:21Z",
"is_active": true,
"quantity": 100,
"starts_at": "2021-04-23T08:23:21Z"
}Response
Success
Example response
{
"adjustment_amount": 10,
"adjustment_type": "percentage",
"applications_count": 22,
"code": "TENPERCENTOFF",
"ends_at": "2021-04-23T08:23:21Z",
"id": 8273,
"is_active": true,
"quantity": 100,
"starts_at": "2021-04-23T08:23:21Z",
"updated_at": "2021-04-23T10:25:03Z",
"campaign_id": 227362
}