Campaigns
Create a campaign
Create a new campaign. A campaign is a planned sequence of activities that promotes a product or service. After creating a campaign, use POST /campaign-products to attach discounted products to it. See Campaigns for details.
post/campaigns
Headers
Accept-Languagestring
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"campaign": {
"idcampaign": "8bed991c68a470e7aaeffbf048",
"campaign_id": "8bed991c68a470e7aaeffbf048",
"external_id": "CAMP-EXT-001",
"name": "Standard campaign",
"last_change": "2021-04-16 18:22:35.052987",
"state": 1
}
}Response
Created
Example response
{
"data": {
"campaign_id": "8ad8b2b701199684f1222961d6"
}
}