API

Criar uma oferta especial

POST/api/crm/v2/special_offers_list.addv2
operationId: specialOffersList.add

Autorização

api-token + language + role

Parâmetros de consulta

branch_idinteger

Filial no qual a solicitação é executada. Parceiros com múltiplos filiais devem fornecê-lo, caso contrário, a solicitação resultará em erro. Para parceiros com um único filial, o servidor o define automaticamente.

Exemplo: 8778

Corpo da solicitação multipart/form-data

object

As regras de funcionamento são ocultadas quando operating_mode = informing

namestringobrigatório

Exemplo: Free delivery

operating_modestring (TypeOperatingMode) obrigatório

Valores:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Exemplo: informing

platformstring (Platform) obrigatório

Valores:androidiosallmobile_appssitesocial_apps

Exemplo: all

descriptionstring

Exibido e obrigatório para operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Exemplo: informing description

imageobject (ImageSource)

Exibido e obrigatório quando operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Coordenadas de corte da imagem

offsetsobject
xintegerobrigatório

Exemplo: 100

yintegerobrigatório

Exemplo: 50

sizesobject
widthintegerobrigatório

Exemplo: 800

heightintegerobrigatório

Exemplo: 600

push_titlestring

Exibido quando operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Exemplo: the push title

push_messagestring

Exibido quando operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Exemplo: the push message

date_availablestring (DataTimeFormat)

Exemplo: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Exemplo: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Dias da semana

time_periodsarray of array of string (TimePeriods)

Período de tempo

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Valores:fixed_discount_on_all_orderpercent_discount_on_all_orderfixed_discount_on_items_from_categoriespercent_discount_on_items_from_categoriesfixed_discount_on_itemspercent_discount_on_itemsfree_item_to_choose_if_buy_itemsfree_item_to_choose_if_buy_items_from_categoriesfixed_discount_on_next_itempercent_discount_on_next_itemfixed_discount_on_next_item_from_categoriespercent_discount_on_next_item_from_categoriesfree_item_to_choosepercent_discount_on_item_with_minimum_cost_in_cartfixed_discount_on_item_with_minimum_cost_in_cartpercent_discount_on_item_with_minimum_cost_from_itemsfixed_discount_on_item_with_minimum_cost_from_itemspercent_discount_on_item_with_minimum_cost_from_categoriesfixed_discount_on_item_with_minimum_cost_from_categoriesbonusesfree_delivery

Exemplo: free_delivery

subcategories_include_in_categories_enabledboolean

Exibido quando type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, free_item_to_choose_if_buy_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

authorized_users_enabledboolean

Exibido quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

work_with_pay_bonuses_enabledboolean

Exibido quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

accrual_bonuses_enabledboolean

Exibido quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

first_purchase_enabledboolean

Exibido para todos os tipos

Exemplo: true

first_purchase_platformstring (Platform)

Valores:androidiosallmobile_appssitesocial_apps

Exemplo: all

reuse_enabledboolean

Exibido para todos os tipos

Exemplo: true

use_only_in_birthday_enabledboolean

Exibido para todos os tipos

Exemplo: true

birthday_validity_beforeinteger

Exibido para todos os tipos quando use_only_in_birthday_enabled está ativado

Exemplo: 10

birthday_validity_afterinteger

Exibido para todos os tipos quando use_only_in_birthday_enabled está ativado

Exemplo: 10

ignore_in_minimum_sum_enabledboolean

Exibido quando type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

delivery_methodstring (DeliveryMethodUpdate)

Valores:allcourierpickup

from_sumnumber

Exibido quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: 100

to_sumnumber

Mostrado quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: 1000

multiple_sumnumber

Exibido quando type: free_item_to_choose

Exemplo: 100

from_to_sums_for_items_from_conditions_enabledboolean

Exibido quando type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Exemplo: true

discountnumber

Exibido quando type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: 10

count_items_for_conditioninteger

Mostrado quando type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: 10

count_items_for_actioninteger

Exibido quando type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Exemplo: 10

one_item_from_conditions_enabledboolean

Mostrado quando type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

use_only_one_time_in_cart_enabledboolean

Exibido quando type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Exemplo: true

automatic_old_cost_for_items_enabledboolean

Exibido quando type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Exemplo: true

bonuses_sumnumber

Exibido e obrigatório quando type: bonuses

Exemplo: 100

bonuses_validitynumber

Exibido quando type: bonuses

Exemplo: 100

actions_itemsarray of integer

Exibido e obrigatório para type: percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_next_item, fixed_discount_on_next_item, percent_discount_on_items, fixed_discount_on_items, free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

conditions_itemsarray of integer

Exibido e obrigatório para type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Exibido e obrigatório para type: percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories

conditions_categoriesarray of integer

Exibido e obrigatório quando type: free_item_to_choose_if_buy_items_from_categories

Respostas

OK

object
statusstringobrigatório

Valores:successerror

Exemplo: success

dataobject