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