Skip to content

点餐订单信息同步(渠道商/服务商)

当点餐订单状态发生变化时,都上传全量的订单明细。1、用户在扫码点餐小程序/h5页面中下单时,上报用户的下单信息,此时status为CREATE_DEAL;2、确定支付成功后上报用户的支付信息,此时status为PAY_SUCCESS 官方文档

js
wxpay
.
v3
.
catering
.
orders
.
syncStatus
.
post
({
sp_mchid
,
sp_appid
,
channel_id
,
sub_mchid
,
sub_appid
,
out_shop_no
,
sub_openid
,
login_token
,
order_entry
,
total_amount
,
discount_amount
,
user_amount
,
status
,
action_time
,
pay_time
,
transaction_id
,
out_trade_no
,
out_order_no
,
out_table_no
,
people_count
,
dish_list
,
}) .
then
(({
status
}) =>
status
=== 204)

Released under the MIT License. (SITEMAP)