Loading…

Dine-in-pre-meal/after-meal payment & merchant order-taking process

# Configure store/merchant order receiving mode ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598662912533-bf255704-f85c-4ea0-9dc5-a9a9b3c81e67.png) + Pay before meal After the user scans the code to order and pays, the kitchen printer prints the order and cooks it. Front-end development can be based on this field information of store details (tablePayMod: 0 means to pay before the meal; 1 means to pay after the meal) to determine the order-taking mode and guide users to interact accordingly. + Pay after meal After users scan the QR code to order, they can place the order without paying. After finishing the meal, they can pay the bill in a unified manner. In this case, after the user places an order, the merchant needs to confirm it before the kitchen printer prints the order and cooks it. # The merchant pulls the dishes to be confirmed ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598671095824-8459bb7f-c9f6-4436-b728-d3a29b4d77cd.png)Please note that this is a backend interface and requires the administrator (store/merchant administrator) to log in and obtain the X-TOKEN before it can be called.You can pull the dishes to be confirmed by passing in the following combination of parameters: +shopId current store/merchant ID + type order type is 2 (scan the QR code to order) + status status is 0 (unpaid) + cyTableStatus status is 0 (pending confirmation) After the data is returned, it is recommended that the returned data betableCode (table code)Display in groups/blocks, and dishes ordered from the same table are displayed together; it is also recommended to add a multi-select (selected by default) one-click confirmation menu function on the front-end interface. # Merchant confirmation menu ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598671123670-2c1d2e7e-bd31-48e4-9c57-3ad20404a636.png)Please note that this is a backend interface and requires the administrator (store/merchant administrator) to log in and obtain the X-TOKEN before it can be called. Input the order ID that needs to be confirmed and call this interface to confirm the order. For stores/merchant that pay after the meal, after the merchant confirms, the kitchen printer will be triggered to print out the order. # Configure printer When a user orders and pays/the merchant confirms that the order has been made, the kitchen printer should be able to automatically print out the information on the items that the current user has ordered/newly ordered. The specific configuration is as follows: ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598665542993-1708432b-2cdf-445c-991c-9797152c0f1e.png) Select "ordering mode" as the printing mode. In this mode, the printer will only print the dishes confirmed by the merchant. It is generally used to configure kitchen printers. # The merchant marks the dish as being served ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598671138505-18cf1892-0a8e-42ef-89f0-69af9caa3d5b.png)Please note that this is a backend interface and requires the administrator (store/merchant administrator) to log in and obtain the X-TOKEN before it can be called. + orderGoodsId order detail record table record ID # Merchants place orders & add or remove dishes ## Place an order & add dishes Please call the front-end API interface, obtain the table token, and use the table token to order food. ## Withdrawal ![](https://dcdn.it120.cc/yuque/0/2020/png/572726/1598674614187-1946f193-9616-4c4a-9d68-95540defc7eb.png)Please note that this is a backend interface and requires the administrator (store/merchant administrator) to log in and obtain the X-TOKEN before it can be called. + orderGoodsId order detail record table record ID