Creates an offer 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 |
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 the offer chain starts. | ||||||||
required | Array of objects | ||||||||
Array
| |||||||||
| is_enabled required | boolean | ||||||||
| 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. | |||||||||
| date_end | string or null <date-time> Date when the offer chain ends. Can be | ||||||||
(interval_type = weekly (object or null)) or (interval_type = monthly (object or null)) or (interval_type = hourly (object or null)) Reset period of the offer chain. | |||||||||
One of: Weekly reset of the offer chain. | |||||||||
| is_always_visible | boolean Default: true Whether the chain is visible to all users:
Applies only in the context of personalized chains and is used if the | ||||||||
Array of type = string (object) or type = number (object) or type = date (object) [ 1 .. 100 ] items Conditions for validating user attributes. Determine chain availability based on whether user attributes match all specified conditions. | |||||||||
Array ([ 1 .. 100 ] items) One of: | |||||||||
The offer chain was successfully created.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid offer chain configuration.
{- "name": {
- "en": "New offer chain",
- "ru": "Новая цепочка предложений",
- "de": "Neue Angebotskette",
- "fr": "Nouvelle chaîne d'offres",
- "it": "Nuova catena di offerte"
}, - "description": {
- "en": "A short description of a regular offer chain",
- "ru": "Краткое описание обычной цепочки предложений",
- "de": "Eine kurze Beschreibung einer regulären Angebotskette",
- "fr": "Une brève description d'une chaîne d'offres régulière",
- "it": "Una breve descrizione di una catena di offerte regolare"
}, - "order": 4,
- "date_start": "2023-04-15T18:16:00+05:00",
- "date_end": null,
- "recurrent_schedule": null,
- "is_enabled": true,
- "steps": [
- {
- "step_number": 1,
- "is_free": false,
- "items": [
- {
- "sku": "chain_step_1_paid_bundle_sku",
- "quantity": 2
}
]
}, - {
- "step_number": 2,
- "is_free": true,
- "items": [
- {
- "sku": "chain_step_2_free_virtual_good_sku",
- "quantity": 1
}
]
}, - {
- "step_number": 3,
- "is_free": false,
- "items": [
- {
- "sku": "chain_step_3_paid_virtual_currency_package_sku",
- "quantity": 5
}
]
}, - {
- "step_number": 4,
- "is_free": true,
- "items": [
- {
- "sku": "chain_step_4_free_bundle_sku",
- "quantity": 1
}
]
}
], - "is_always_visible": true
}{- "offer_chain_id": 10
}