API

Izveidot akciju

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

Autorizācija

api-token + language + role

Vaicājuma parametri

branch_idinteger

Filiale, kurā tiek izpildīts pieprasījums. Partnerim ar vairākām filiālēm šis parametrs ir obligāts, pretējā gadījumā pieprasījums tiks noraidīts ar kļūdu. Partnerim ar vienu filiāli serveris šo vērtību iestata automātiski.

Piemērs: 8778

Pieprasījuma saturs multipart/form-data

object

Noteikumi tiek paslēpti, ja operating_mode = informing

namestringobligāts

Piemērs: Free delivery

operating_modestring (TypeOperatingMode) obligāts

Vērtības:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Piemērs: informing

platformstring (Platform) obligāts

Vērtības:androidiosallmobile_appssitesocial_apps

Piemērs: all

descriptionstring

Tiek rādīts un ir obligāts, ja operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Piemērs: informing description

imageobject (ImageSource)

Tiek rādīts un ir obligāts, ja operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Attēla apgriešanas koordinātas

offsetsobject
xintegerobligāts

Piemērs: 100

yintegerobligāts

Piemērs: 50

sizesobject
widthintegerobligāts

Piemērs: 800

heightintegerobligāts

Piemērs: 600

push_titlestring

Parādās, ja operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Piemērs: the push title

push_messagestring

Parādās, ja operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Piemērs: the push message

date_availablestring (DataTimeFormat)

Piemērs: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Piemērs: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Nedēļas dienas

time_periodsarray of array of string (TimePeriods)

Laika periods

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Vērtības: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

Piemērs: free_delivery

subcategories_include_in_categories_enabledboolean

Parādās, ja 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

Piemērs: true

authorized_users_enabledboolean

Parādās, ja 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

Piemērs: true

work_with_pay_bonuses_enabledboolean

Parādās, ja 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

Piemērs: true

accrual_bonuses_enabledboolean

Rādās, ja 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

Piemērs: true

first_purchase_enabledboolean

Rādās visiem veidiem

Piemērs: true

first_purchase_platformstring (Platform)

Vērtības:androidiosallmobile_appssitesocial_apps

Piemērs: all

reuse_enabledboolean

Rādās visiem veidiem

Piemērs: true

use_only_in_birthday_enabledboolean

Rādās visiem veidiem

Piemērs: true

birthday_validity_beforeinteger

Rādās visiem veidiem, ja ir ieslēgts use_only_in_birthday_enabled

Piemērs: 10

birthday_validity_afterinteger

Tiek rādīts visiem veidiem, ja ir ieslēgts use_only_in_birthday_enabled

Piemērs: 10

ignore_in_minimum_sum_enabledboolean

Rādās, ja 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

Piemērs: true

delivery_methodstring (DeliveryMethodUpdate)

Vērtības:allcourierpickup

from_sumnumber

Rādās, ja 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

Piemērs: 100

to_sumnumber

Rādās, ja 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

Piemērs: 1000

multiple_sumnumber

Rādās, ja type: free_item_to_choose

Piemērs: 100

from_to_sums_for_items_from_conditions_enabledboolean

Rādās, ja type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Piemērs: true

discountnumber

Parādās, ja 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

Piemērs: 10

count_items_for_conditioninteger

Rādās, ja 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

Piemērs: 10

count_items_for_actioninteger

Parādās, ja type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Piemērs: 10

one_item_from_conditions_enabledboolean

Parādās, ja 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

Piemērs: true

use_only_one_time_in_cart_enabledboolean

Rādās, ja 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

Piemērs: true

automatic_old_cost_for_items_enabledboolean

Tiek rādīts, ja type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Piemērs: true

bonuses_sumnumber

Tiek rādīts un ir obligāts, ja type: bonuses

Piemērs: 100

bonuses_validitynumber

Rādās, ja type: bonuses

Piemērs: 100

actions_itemsarray of integer

Parādās un ir obligāts, ja 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

Tiek rādīts un ir obligāts, ja type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Tiek rādīts un ir obligāts, ja 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

Tiek rādīts un obligāts, ja type: free_item_to_choose_if_buy_items_from_categories

Atbildes

OK

object
statusstringobligāts

Vērtības:successerror

Piemērs: success

dataobject