API

Dobijanje liste promocija

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

Ауторизација

api-token + language + role

Parametri upita

branch_idinteger

Филијала по којој се филтрира листа. Без ње у одговору су само филтери, без листе. Партнеру са једном филијалом сервер аутоматски поставља њу.

Пример: 8778

page_numberinteger

Пример: 1

Одговори

OK

object
statusstringобавезно

Vrednosti:successerror

Пример: success

dataobject
filtersobject
branch_idobject (FilterSelectInteger)
valueinteger

Пример: 8920

typestringобавезно

Пример: select

optionarray of object
valueintegerобавезно

Пример: 8920

namestringобавезно

Пример: Green Basket | Kaliningrad

modestring (FilterMode)

Как интерфейс обрађује филтер; обичан филтер нема mode. force_shown — увек је приказан, не може се сакрити. value_required — улазна тачка у одељак: увек је приказан, нема празну вредност (док вредност није изабрана, листа је празна; опција „све“ не постоји), општи ресет га не чисти.

Vrednosti:force_shownvalue_required

Пример: value_required

listarray of object
idintegerобавезно

Пример: 1

namestringобавезно

Пример: Free delivery

date_availablestring (DataTimeFormatSQL)

Пример: 2024-05-02 08:31:16

date_expirationstring (DataTimeFormatSQL)

Пример: 2024-05-02 08:31:16

operating_modestring (TypeOperatingMode) обавезно

Vrednosti:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Пример: informing

sortintegerобавезно

Пример: -1714739780

publishedbooleanобавезно

Пример: true

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
descriptionstring

Пример: informing description

imagestring

Пример: https://cdn.foodsoul.test/zones/ru/branches/8810/images/special_offers/medium/ec17cfe9697ff2e301cba7736a5d329b.jpg?v1726243373

branch_idinteger

Пример: 1

authorized_users_enabledbooleanобавезно

Пример: true

work_with_pay_bonuses_enabledbooleanобавезно

Пример: true

accrual_bonuses_enabledbooleanобавезно

Пример: true

first_purchase_enabledbooleanобавезно

Пример: true

first_purchase_platformstring (Platform)

Vrednosti:androidiosallmobile_appssitesocial_apps

Пример: all

subcategories_include_in_categories_enabledbooleanобавезно

Пример: true

reuse_enabledbooleanобавезно

Пример: true

delivery_methodstring (DeliveryMethodUpdate) обавезно

Vrednosti:allcourierpickup

days_of_weekarray of integer
time_periodsarray of array of string (TimePeriods)

Временски период

ignore_in_minimum_sum_enabledbooleanобавезно

Пример: true

from_sumnumber

Пример: 100

to_sumnumber

Пример: 1000

multiple_sumnumber

Пример: 100

from_to_sums_for_items_from_conditions_enabledbooleanобавезно

Пример: true

automatic_old_cost_for_items_enabledbooleanобавезно

Пример: true

push_titlestring

Пример: Free delivery

push_messagestring

Пример: Free delivery today from 18:00

platformstring (Platform) обавезно

Vrednosti:androidiosallmobile_appssitesocial_apps

Пример: all

typestring (TypeWorkOperatingMode)

Vrednosti: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

count_items_for_conditioninteger

Пример: 10

count_items_for_actioninteger

Пример: 10

one_item_from_conditions_enabledbooleanобавезно

Пример: true

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

Пример: 10

use_only_one_time_in_cart_enabledbooleanобавезно

Пример: true

use_only_in_birthday_enabledbooleanобавезно

Пример: true

birthday_validity_beforeinteger

Пример: 10

birthday_validity_afterinteger

Пример: 10

bonuses_sumnumber

Пример: 100

bonuses_validitynumber

Пример: 100

count_activate_offerintegerобавезно

Пример: 0

paginationobject (Pagination)
max_countintegerобавезно

Број ставки по страници

Пример: 30

page_numberintegerобавезно

Број тренутне странице; ограничено тако да померај не прелази 1000

Пример: 1

has_nextbooleanобавезно

Да ли postoji sledeća stranica

Пример: true

has_previousbooleanобавезно

Да ли постоји претходна страница

Пример: false

timezonestring

Пример: Europe/Kaliningrad