API

აქციის შექმნა

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

ავტორიზაცია

api-token + language + role

მოთხოვნის პარამეტრები

branch_idinteger

ფილიალი, რომელშიც სრულდება მოთხოვნა. პარტნიორმა მრავალი ფილიალით ვალდებულია გადასცეს ეს პარამეტრი, წინააღმდეგ შემთხვევაში მოთხოვნა დასრულდება შეცდომით. პარტნიორისთვის ერთი ფილიალით სერვერი ავტომატურად მიუთითებს მას.

მაგალითი: 8778

მოთხოვნის სხეული multipart/form-data

object

წესები იფარება, თუ operating_mode = informing

namestringსავალდებულო

მაგალითი: Free delivery

operating_modestring (TypeOperatingMode) სავალდებულო

მნიშვნელობები:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

მაგალითი: informing

platformstring (Platform) სავალდებულო

მნიშვნელობები:androidiosallmobile_appssitesocial_apps

მაგალითი: all

descriptionstring

გამოჩნდება და სავალდებულოა, თუ operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

მაგალითი: informing description

imageobject (ImageSource)

გამოჩნდება და სავალდებულოა, თუ operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

სურათის მოჭრის კოორდინატები

offsetsobject
xintegerსავალდებულო

მაგალითი: 100

yintegerსავალდებულო

მაგალითი: 50

sizesobject
widthintegerსავალდებულო

მაგალითი: 800

heightintegerსავალდებულო

მაგალითი: 600

push_titlestring

გამოჩნდება, თუ operating_mode არის: informing, informing_and_promo_code, informing_and_automatic_action

მაგალითი: the push title

push_messagestring

გამოჩნდება, თუ operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

მაგალითი: the push message

date_availablestring (DataTimeFormat)

მაგალითი: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

მაგალითი: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

კვირის დღეები

time_periodsarray of array of string (TimePeriods)

დროის პერიოდი

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

მნიშვნელობები: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

მაგალითი: free_delivery

subcategories_include_in_categories_enabledboolean

გამოჩნდება მაშინ, როდესაც 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

მაგალითი: true

authorized_users_enabledboolean

გამოჩნდება შემდეგი მნიშვნელობებისთვის 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

მაგალითი: true

work_with_pay_bonuses_enabledboolean

გამოჩნდება შემდეგი მნიშვნელობებისთვის 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

მაგალითი: true

accrual_bonuses_enabledboolean

გამოჩნდება შემდეგი მნიშვნელობებისთვის 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

მაგალითი: true

first_purchase_enabledboolean

ყველა ტიპისთვის ჩანს

მაგალითი: true

first_purchase_platformstring (Platform)

მნიშვნელობები:androidiosallmobile_appssitesocial_apps

მაგალითი: all

reuse_enabledboolean

ყველა ტიპისთვის ჩანს

მაგალითი: true

use_only_in_birthday_enabledboolean

ყველა ტიპისთვის ჩანს

მაგალითი: true

birthday_validity_beforeinteger

ყველა ტიპისთვის ნაჩვენებია, თუ ჩართულია use_only_in_birthday_enabled

მაგალითი: 10

birthday_validity_afterinteger

ყველა ტიპისთვის ნაჩვენებია, თუ ჩართულია use_only_in_birthday_enabled

მაგალითი: 10

ignore_in_minimum_sum_enabledboolean

გამოჩნდება, როდესაც 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

მაგალითი: true

delivery_methodstring (DeliveryMethodUpdate)

მნიშვნელობები:allcourierpickup

from_sumnumber

გამოჩნდება შემდეგი მნიშვნელობებისთვის 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

მაგალითი: 100

to_sumnumber

გამოჩნდება შემდეგი მნიშვნელობებისთვის 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

მაგალითი: 1000

multiple_sumnumber

გამოჩნდება როდესაც type: free_item_to_choose

მაგალითი: 100

from_to_sums_for_items_from_conditions_enabledboolean

გამოჩნდება, თუ type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

მაგალითი: true

discountnumber

გამოჩნდება როცა 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

მაგალითი: 10

count_items_for_conditioninteger

გამოჩნდება როდესაც 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

მაგალითი: 10

count_items_for_actioninteger

გამოჩნდება, როდესაც type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

მაგალითი: 10

one_item_from_conditions_enabledboolean

გამოჩნდება, როდესაც 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

მაგალითი: true

use_only_one_time_in_cart_enabledboolean

გამოჩნდება მხოლოდ მაშინ, როდესაც 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

მაგალითი: true

automatic_old_cost_for_items_enabledboolean

გამოჩნდება, როდესაც type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

მაგალითი: true

bonuses_sumnumber

გამოჩნდება და სავალდებულოა, თუ type: bonuses

მაგალითი: 100

bonuses_validitynumber

გამოჩნდება, როდესაც type: bonuses

მაგალითი: 100

actions_itemsarray of integer

გამოჩნდება და სავალდებულოა, თუ 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

გამოჩნდება და სავალდებულოა, თუ type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

გამოჩნდება და სავალდებულოა, თუ 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

გამოჩნდება და სავალდებულოა, თუ type არის: free_item_to_choose_if_buy_items_from_categories

პასუხები

OK

object
statusstringსავალდებულო

მნიშვნელობები:successerror

მაგალითი: success

dataobject