API

Získat kartu objednávky

GET/api/crm/v2/orders.editv2
operationId: orders.edit

Vrací košík s přepočítanými slevami a modifikátory.

Autorizace

api-token + language + role

Parametry dotazu

idintegerpovinné

Odpovědi

OK

object
statusstringpovinné

Hodnoty:successerror

Příklad: success

dataobject (OrderCard)

Karta objednávky: košík s přepočítanými slevami a modifikátory, poznámky a transakce

idintegerpovinné

Příklad: 12863367

meta_authorized_clientboolean

Příklad: true

meta_sitestring

Příklad: shop.foodsoul.pro

meta_utm_sourcestring

Příklad: shop.foodsoul.pro

meta_utm_mediumstring

Příklad: shop.foodsoul.pro

meta_utm_campaignstring

Příklad: shop.foodsoul.pro

meta_utm_contentstring

Příklad: shop.foodsoul.pro

meta_utm_termstring

Příklad: shop.foodsoul.pro

cart_bodyobject
delivery_feeinteger

Příklad: 100

courier_feenumber

Příklad: 100

service_feenumber

Příklad: 100

itemsarray of objectpovinné
idintegerpovinné

Příklad: 94060278

item_namestring

Příklad: Item 100

item_parameter_measurestring

Příklad: 1 pc

countintegerpovinné

Příklad: 1

amountnumber

Příklad: 1000

new_costnumber

Příklad: 1000

category_namestring

Příklad: Sushi rolls

imagestring

Příklad: https://cdn.crm.git.foodsoul.dev/zones/ru/branches/8920/images/items/medium/fda311c7e13e4abf049a271cb885c11e.jpg?v1735116559

settingsobjectpovinné
discountboolean

Příklad: true

free_deliveryboolean

Příklad: true

minimum_sumboolean

Příklad: true

modifiers_multiplierboolean

Příklad: true

stock_balanceboolean

Příklad: true

offersarray of object
idstringpovinné

Příklad: 152366

namestringpovinné

Příklad: 15%

typestring (TypeWorkOperatingMode) povinné

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

Příklad: free_delivery

promoobject
idintegerpovinné

Příklad: 27642

codestringpovinné

Příklad: DISCOUNT16

discountobject
amountinteger

Příklad: 15

typestring

Příklad: percent

countinteger

Příklad: 1

use_in_old_costboolean

Příklad: true

use_in_minimum_sumboolean

Příklad: true

record_idstring

Příklad: 1115346

modestring

Příklad: percent_discount_on_all_order

modifiersarray of object
idintegerpovinné

Příklad: 31369618

namestringpovinné

Příklad: Modifier without a group

amountintegerpovinné

Příklad: 0

new_costinteger

Příklad: 0

sum_one_modifier_with_countnumber

Příklad: 0

countintegerpovinné

Příklad: 1

integerinteger

Příklad: 1

item_contentarray of object
additional_modifiersarray of string
total_sum_modifiersstring

Příklad: 5

total_sum_itemstring

Příklad: 100 + 5 = 105

special_offerstring

Příklad: -10% on pickup

discountstring

Příklad: 10% (items: 4)

sum_one_itemnumber

Příklad: 105

finish_sumnumber

Příklad: 378

total_modifiersnumber

Příklad: 100

sum_one_item_with_countnumber

Příklad: 100

sum_one_item_with_modifiersnumber

Příklad: 100

formulanumber

Příklad: 100

has_modifiers_multiplierboolean

Příklad: true

sum_discount_for_itemnumber

Příklad: 100

sum_item_finish_mathnumber

Příklad: 252.24

bonusesobject
accrualobject
sumnumber

Příklad: 0.05

withdrawobject
sumnumber

Příklad: 0.05

pickup_namestring

Příklad: Voronezh-Center

pickup_addressstring

Příklad: Voronezh

operator_phonestring

Příklad: +7 (999) 999-95-95

courier_service_enabledbooleanpovinné

Příklad: true

courier_button_showedbooleanpovinné

Příklad: true

payment_namestring

Příklad: IOKassa: Visa / MasterCard / MIR

email_settingsobject
format_addressboolean

Příklad: true

lite_versionboolean

Příklad: true

include_photoboolean

Příklad: true

permanent_clientboolean

Příklad: true

client_account_idinteger

Příklad: 4211394

client_branch_profile_idinteger

Příklad: 49000070

api_versioninteger

Příklad: 1

authorized_clientboolean

Příklad: true

synchronization_idstring

Příklad: f6bb7673-ad2d-4b46-9545-2b0a8b37fd29

meta_user_agentstring

Příklad: FSShop v8.1.2, iOS v18.5, Device: iPad8,6

application_uuidstring

Příklad: 03addc0d-1051-4534-9ba8-792b763a274b

additional_contactless_serviceboolean

Příklad: true

additional_cutleryboolean

Příklad: true

additional_not_callbackboolean

Příklad: true

additional_expedited_deliveryboolean

Příklad: true

sum_in_cartnumber

Příklad: 100

notesarray of object
datestring (DataTimeFormatSQL)

Příklad: 2024-05-02 08:31:16

textstring

Příklad: Status set to confirmed by the automatic order confirmation system

transactionsarray of object
statusstring

Hodnoty:confirmedrefunded

Příklad: confirmed

datestring (DataTimeFormatSQL)

Příklad: 2024-05-02 08:31:16

sumnumber

Příklad: 500

order_statusstring (OrderStatus) povinné

Stav objednávky: na cestě, dokončeno, kompletace, v kuchyni, nezpracováno, připraveno k odeslání, čeká na odeslání do kuchyně, čeká na přepracování, zrušeno, potvrzeno, připraveno

Hodnoty:in_transitdoneassemblyin_kitchennot_processedready_to_transitwait_to_kitchenwait_remadecanceledconfirmedcooked

Příklad: confirmed

minutes_to_doneinteger

Příklad: 60

date_preorderstring (DataTimeFormatSQL)

Příklad: 2024-05-02 08:31:16

timestamp_countdownintegerpovinné

Příklad: 1718625496

branch_idintegerpovinné

Příklad: 9054

sms_statusstring (OrderSmsStatus) povinné

Stav SMS

Hodnoty:errorsuccessempty_fieldswrong_phonewrong_api_fieldsserver_not_availablenot_enough_moneywaitingneed_phoneoperators_not_connected_to_botssend_via_bots_failedsending_via_botssent_via_botssent_via_maxsent_via_telegramunsupported_sms_serviceapi_disabledwrong_sender_name

email_statusstring (OrderEmailStatus) povinné

Stav e-mailu

Hodnoty:errorwaitingsuccessneed_email

cart_totalnumberpovinné

Příklad: 100.55

order_numberinteger

Příklad: 1

date_creationstring (DataTimeFormatSQL) povinné

Příklad: 2024-05-02 08:31:16

payment_statusstring (OrderPayment) povinné

Stav platby: nezaplaceno, čeká, zaplaceno

Hodnoty:not_paidwaitingpaid

payment_methodstring (OrderPaymentMethod)

Způsob platby

Hodnoty:cashonlinecard_upon_receipt

platformstring (Platform) povinné

Hodnoty:androidiosallmobile_appssitesocial_apps

Příklad: all

operator_phone_format_idinteger (PhoneFormatId)

Kód země: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Příklad: 1

operator_phone_numberstring

Příklad: 9114579423

operator_emailstring

Příklad: email@example.com

percent_rateintegerpovinné

Příklad: 4

sender_namestring

Příklad: John Doe

sender_phone_format_idinteger (PhoneFormatId)

Kód země: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Příklad: 1

sender_phone_numberstring

Příklad: 9114579423

sender_emailstring

Příklad: email@example.com

recipient_namestring

Příklad: John Doe

recipient_phone_format_idinteger (PhoneFormatId)

Kód země: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Příklad: 1

recipient_phone_numberstring

Příklad: 9114579423

address_zip_codestring

Příklad: 236039

address_line_1string

Příklad: Korablestroiteley st. 9 bld. 2

address_line_2string

Příklad: Korablestroiteley st. 9 bld. 2

address_streetstring

Příklad: Partizanskaya street

address_housestring

Příklad: 20

address_buildingstring

Příklad: 20

address_entrance_numberstring

Příklad: 20

address_entrance_codestring

Příklad: 1234

address_floorstring

Příklad: 10

address_apartmentstring

Příklad: 10

additional_changestring

Příklad: 100

additional_personsstring

Příklad: 2

additional_commentstring

Příklad: Test order, remove

additional_greeting_cardstring

Příklad: example

additional_discountstring

Příklad: example

tokenstring

Příklad: 72901fbe661d3e142ea9af5248856f20

delivery_methodstring (DeliveryMethod) povinné

Způsob doručení: no — žádný, all — všechny, courier — kurýr, pickup — osobní odběr

Hodnoty:noallcourierpickup

phone_settingsobject
mask_enableboolean

Příklad: true

formatboolean

Příklad: true

internationalboolean

Příklad: true

branch_namestring

Příklad: Green Basket | Main

chain_namestringpovinné

Příklad: Green Basket

city_namestringpovinné

Příklad: Voronezh

district_namestring

Příklad: Voronezh-Uh

district_idinteger

Příklad: 55329