Creates a daily reward.
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 daily reward.
required | (two-letter (object or null)) or (five-letter (object or null)) Object with localizations for item’s name. Accepts value in one of two formats: two-letter lowercase language codes (e.g., | ||||
One of: Two-letter lowercase language codes. | |||||
date_start required | string <date-time> Date when your daily reward starts. | ||||
required | Array of objects | ||||
is_enabled required | boolean | ||||
type required | string Type of daily reward which dictates when users can claim their rewards.
| ||||
order | integer Defines arrangement order. | ||||
(two-letter (object or null)) or (five-letter (object or null)) Object with localizations for item’s description. Accepts value in one of two formats: two-letter lowercase language codes (e.g., | |||||
One of: Two-letter lowercase language codes. | |||||
is_recurrent | boolean Default: false Whether the daily reward recurrent. If |
Daily reward was successfully created.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Incorrect daily reward configuration errors.
{- "name": {
- "en": "New daily reward",
- "ru": "Новая ежедневная награда"
}, - "description": {
- "en": "New daily reward short description"
}, - "order": 4,
- "date_start": "2023-04-15T18:16:00+05:00",
- "is_enabled": true,
- "steps": [
- {
- "step_number": 1,
- "items": [
- {
- "sku": "vg_enabled_shown_in_store_1",
- "quantity": 2
}
]
}, - {
- "step_number": 2,
- "items": [
- {
- "sku": "bundle_enabled_shown_in_store_with_2_enabled_shown_in_store_vg",
- "quantity": 2
}
]
}, - {
- "step_number": 3,
- "items": [
- {
- "sku": "vcp_enabled_shown_in_store_1_of_10_vc_enabled_shown_in_store_1",
- "quantity": 2
}
]
}, - {
- "step_number": 4,
- "items": [
- {
- "sku": "vg_enabled_shown_in_store_1",
- "quantity": 1
}
]
}, - {
- "step_number": 5,
- "items": [
- {
- "sku": "bundle_enabled_shown_in_store_with_2_enabled_shown_in_store_vg",
- "quantity": 1
}
]
}, - {
- "step_number": 6,
- "items": [
- {
- "sku": "vcp_enabled_shown_in_store_1_of_10_vc_enabled_shown_in_store_1",
- "quantity": 1
}
]
}
], - "type": "calendar_hard"
}
{- "daily_chain_id": 10
}