Creates reward chain.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
A reward chain.
required | object Object with localizations for item's name. Two-letter lowercase language code. | ||||||||||||||
required | object | ||||||||||||||
date_start required | string <date-time> Date when your reward chain starts. | ||||||||||||||
required | Array of objects | ||||||||||||||
Array
| |||||||||||||||
is_enabled required | boolean | ||||||||||||||
object Object with localizations for item's description. Two-letter lowercase language code. | |||||||||||||||
object Object with localizations for long description of item. Two-letter lowercase language code. | |||||||||||||||
image_url | string or null Image URL. | ||||||||||||||
order | integer Defines arrangement order. | ||||||||||||||
date_end | string or null <date-time> Date when your reward chain promotion ends. Can be | ||||||||||||||
(interval_type = weekly (object or null)) or (interval_type = monthly (object or null)) Recurrent reset period of the reward chain. | |||||||||||||||
One of: Weekly type of reward chain refresh. |
Reward chain was successfully created.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid request.
{- "name": {
- "en": "Reward chain"
}, - "description": {
- "en": "Reward chain description."
}, - "long_description": {
- "en": "Reward chain long description."
}, - "is_enabled": true,
- "order": 1,
- "date_start": "2020-04-15T18:16:00+05:00",
- "date_end": "2021-04-15T18:16:00+05:00",
- "value_point": {
- "sku": "value_point_sku"
}, - "steps": [
- {
- "name": {
- "en": "First step of the reward chain"
}, - "reward": [
- {
- "sku": "item_sku_1",
- "quantity": 5
}, - {
- "sku": "item_sku_2",
- "quantity": 1
}
], - "price": {
- "amount": 10
}
}, - {
- "name": {
- "en": "Second step of the reward chain"
}, - "reward": [
- {
- "sku": "item_sku_3",
- "quantity": 5
}, - {
- "sku": "item_sku_4",
- "quantity": 1
}
], - "price": {
- "amount": 15
}
}
], - "recurrent_schedule": {
- "interval_type": "weekly",
- "day_of_week": 1,
- "time": "01:00:00+08:00"
}
}
{- "reward_chain_id": 10
}