API

Pobierz listę promocji

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

Autoryzacja

api-token + language + role

Parametry zapytania

branch_idinteger

Filia, według której filtrowana jest lista. Bez niej w odpowiedzi znajdują się tylko filtry, bez listy. Partnerowi z jedną filią serwer podstawia ją automatycznie.

Przykład: 8778

page_numberinteger

Przykład: 1

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject
filtersobject
branch_idobject (FilterSelectInteger)
valueinteger

Przykład: 8920

typestringwymagane

Przykład: select

optionarray of object
valueintegerwymagane

Przykład: 8920

namestringwymagane

Przykład: Green Basket | Kaliningrad

modestring (FilterMode)

Jak interfejs obsługuje filtr; zwykły filtr nie ma mode. force_shown — zawsze widoczny, nie można ukryć. value_required — punkt wejścia do sekcji: zawsze widoczny, nie może mieć pustej wartości (dopóki wartość nie zostanie wybrana, lista jest pusta; nie ma opcji „wszystko”), ogólne resetowanie go nie czyści.

Wartości:force_shownvalue_required

Przykład: value_required

listarray of object
idintegerwymagane

Przykład: 1

namestringwymagane

Przykład: Free delivery

date_availablestring (DataTimeFormatSQL)

Przykład: 2024-05-02 08:31:16

date_expirationstring (DataTimeFormatSQL)

Przykład: 2024-05-02 08:31:16

operating_modestring (TypeOperatingMode) wymagane

Wartości:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Przykład: informing

sortintegerwymagane

Przykład: -1714739780

publishedbooleanwymagane

Przykład: true

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
descriptionstring

Przykład: informing description

imagestring

Przykład: https://cdn.foodsoul.test/zones/ru/branches/8810/images/special_offers/medium/ec17cfe9697ff2e301cba7736a5d329b.jpg?v1726243373

branch_idinteger

Przykład: 1

authorized_users_enabledbooleanwymagane

Przykład: true

work_with_pay_bonuses_enabledbooleanwymagane

Przykład: true

accrual_bonuses_enabledbooleanwymagane

Przykład: true

first_purchase_enabledbooleanwymagane

Przykład: true

first_purchase_platformstring (Platform)

Wartości:androidiosallmobile_appssitesocial_apps

Przykład: all

subcategories_include_in_categories_enabledbooleanwymagane

Przykład: true

reuse_enabledbooleanwymagane

Przykład: true

delivery_methodstring (DeliveryMethodUpdate) wymagane

Wartości:allcourierpickup

days_of_weekarray of integer
time_periodsarray of array of string (TimePeriods)

Okres czasu

ignore_in_minimum_sum_enabledbooleanwymagane

Przykład: true

from_sumnumber

Przykład: 100

to_sumnumber

Przykład: 1000

multiple_sumnumber

Przykład: 100

from_to_sums_for_items_from_conditions_enabledbooleanwymagane

Przykład: true

automatic_old_cost_for_items_enabledbooleanwymagane

Przykład: true

push_titlestring

Przykład: Free delivery

push_messagestring

Przykład: Free delivery today from 18:00

platformstring (Platform) wymagane

Wartości:androidiosallmobile_appssitesocial_apps

Przykład: all

typestring (TypeWorkOperatingMode)

Wartości: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

Przykład: free_delivery

count_items_for_conditioninteger

Przykład: 10

count_items_for_actioninteger

Przykład: 10

one_item_from_conditions_enabledbooleanwymagane

Przykład: true

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

Przykład: 10

use_only_one_time_in_cart_enabledbooleanwymagane

Przykład: true

use_only_in_birthday_enabledbooleanwymagane

Przykład: true

birthday_validity_beforeinteger

Przykład: 10

birthday_validity_afterinteger

Przykład: 10

bonuses_sumnumber

Przykład: 100

bonuses_validitynumber

Przykład: 100

count_activate_offerintegerwymagane

Przykład: 0

paginationobject (Pagination)
max_countintegerwymagane

Liczba elementów na stronie

Przykład: 30

page_numberintegerwymagane

Numer bieżącej strony; ograniczony tak, aby przesunięcie nie przekraczało 1000

Przykład: 1

has_nextbooleanwymagane

Czy istnieje następna strona

Przykład: true

has_previousbooleanwymagane

Czy istnieje poprzednia strona

Przykład: false

timezonestring

Przykład: Europe/Kaliningrad