API

Aksiyaların siyahısını əldə et

GET/api/crm/v2/special_offers_listv2
operationId: specialOffersList.default

Avtorizasiya

api-token + language + role

Sorğu parametrləri

branch_idinteger

Filial üzrə siyahının filtrasiyası üçün istifadə olunur. Olmadıqda, cavabda yalnız filtrlər qaytarılır, siyahı olmur. Bir filialı olan partnyor üçün server onu avtomatik təyin edir.

Nümunə: 8778

page_numberinteger

Nümunə: 1

Cavablar

OK

object
statusstringmütləq

Dəyərlər:successerror

Nümunə: success

dataobject
filtersobject
branch_idobject (FilterSelectInteger)
valueinteger

Nümunə: 8920

typestringmütləq

Nümunə: select

optionarray of object
valueintegermütləq

Nümunə: 8920

namestringmütləq

Nümunə: Green Basket | Kaliningrad

modestring (FilterMode)

İnterfeys filtrin işlənməsini belə idarə edir: adi filtrdə mode yoxdur. force_shown — həmişə göstərilir, gizlədilə bilməz. value_required — bölməyə giriş nöqtəsidir: həmişə göstərilir, boş dəyəri olmur (dəyər seçilməyənə qədər siyahı boşdur; "hamısı" seçimi yoxdur), ümumi sıfırlama onu təmizləmir.

Dəyərlər:force_shownvalue_required

Nümunə: value_required

listarray of object
idintegermütləq

Nümunə: 1

namestringmütləq

Nümunə: Free delivery

date_availablestring (DataTimeFormatSQL)

Nümunə: 2024-05-02 08:31:16

date_expirationstring (DataTimeFormatSQL)

Nümunə: 2024-05-02 08:31:16

operating_modestring (TypeOperatingMode) mütləq

Dəyərlər:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Nümunə: informing

sortintegermütləq

Nümunə: -1714739780

publishedbooleanmütləq

Nümunə: true

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
descriptionstring

Nümunə: informing description

imagestring

Nümunə: https://cdn.foodsoul.test/zones/ru/branches/8810/images/special_offers/medium/ec17cfe9697ff2e301cba7736a5d329b.jpg?v1726243373

branch_idinteger

Nümunə: 1

authorized_users_enabledbooleanmütləq

Nümunə: true

work_with_pay_bonuses_enabledbooleanmütləq

Nümunə: true

accrual_bonuses_enabledbooleanmütləq

Nümunə: true

first_purchase_enabledbooleanmütləq

Nümunə: true

first_purchase_platformstring (Platform)

Dəyərlər:androidiosallmobile_appssitesocial_apps

Nümunə: all

subcategories_include_in_categories_enabledbooleanmütləq

Nümunə: true

reuse_enabledbooleanmütləq

Nümunə: true

delivery_methodstring (DeliveryMethodUpdate) mütləq

Dəyərlər:allcourierpickup

days_of_weekarray of integer
time_periodsarray of array of string (TimePeriods)

Zaman dövrü

ignore_in_minimum_sum_enabledbooleanmütləq

Nümunə: true

from_sumnumber

Nümunə: 100

to_sumnumber

Nümunə: 1000

multiple_sumnumber

Nümunə: 100

from_to_sums_for_items_from_conditions_enabledbooleanmütləq

Nümunə: true

automatic_old_cost_for_items_enabledbooleanmütləq

Nümunə: true

push_titlestring

Nümunə: Free delivery

push_messagestring

Nümunə: Free delivery today from 18:00

platformstring (Platform) mütləq

Dəyərlər:androidiosallmobile_appssitesocial_apps

Nümunə: all

typestring (TypeWorkOperatingMode)

Dəyərlər: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

Nümunə: free_delivery

count_items_for_conditioninteger

Nümunə: 10

count_items_for_actioninteger

Nümunə: 10

one_item_from_conditions_enabledbooleanmütləq

Nümunə: true

actions_itemsarray of integer
conditions_itemsarray of integer
actions_categoriesarray of integer
conditions_categoriesarray of integer
discountnumber

Nümunə: 10

use_only_one_time_in_cart_enabledbooleanmütləq

Nümunə: true

use_only_in_birthday_enabledbooleanmütləq

Nümunə: true

birthday_validity_beforeinteger

Nümunə: 10

birthday_validity_afterinteger

Nümunə: 10

bonuses_sumnumber

Nümunə: 100

bonuses_validitynumber

Nümunə: 100

count_activate_offerintegermütləq

Nümunə: 0

paginationobject (Pagination)
max_countintegermütləq

Səhifədəki elementlərin sayı

Nümunə: 30

page_numberintegermütləq

Cari səhifənin nömrəsi; offset 1000-dən çox olmamaqla məhdudlaşdırılıb

Nümunə: 1

has_nextbooleanmütləq

Növbəti səhifə varmı

Nümunə: true

has_previousbooleanmütləq

Əvvəlki səhifə mövcuddurmu

Nümunə: false

timezonestring

Nümunə: Europe/Kaliningrad