Promotions
Authorizations
Body
start_datenumberRequired
When the promotion becomes active, in epoch seconds.
titlestringRequired
Title of the promotion.
descriptionstringOptional
Description of the reward.
end_datenumberOptional
When the promotion is no longer active, in epoch seconds.
image_urlstringOptional
URL of the promotion image.
Responses
200
Successful response
application/json
post
POST /partner-api/v2/admin/promotions HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 84
"start_date=1&title='text'&description='text'&end_date=1&image_url='text'"
200
Successful response
{
"promotion": {
"id": "text",
"title": "text",
"description": "text",
"reward_id": 1,
"start_date": 1,
"end_date": 1
}
}
Authorizations
Path parameters
promotion_idnumberRequired
Body
start_datenumberRequired
When the promotion becomes active, in epoch seconds.
titlestringRequired
Title of the promotion.
descriptionstringOptional
Description of the reward.
end_datenumberOptional
When the promotion is no longer active, in epoch seconds.
image_urlstringOptional
URL of the promotion image.
Responses
200
Successful response
application/json
patch
PATCH /partner-api/v2/admin/promotions/{promotion_id} HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 84
"start_date=1&title='text'&description='text'&end_date=1&image_url='text'"
200
Successful response
{
"promotion": {
"id": "text",
"title": "text",
"description": "text",
"reward_id": 1,
"start_date": 1,
"end_date": 1
}
}