同步订单状态
商家接单之后,主动将订单履约状态同步给平台,核心履约状态包括「商家备餐中」、「骑手已取餐」、「骑手已送达」。
基本信息
HTTP URL | ||||
HTTP Method | POST | |||
请求参数
Header:
参数名称 | 参数类型 | 必须参数 | 备注 |
» content-type | string | 必填 | application/json |
» access-token | string | 必填 | |
Body:
参数名称 | 参数类型 | 必须参数 | 备注 |
» order_id | string | 必填 | |
» order_out_status | enum(trade/biz_openapi/biz_openapi_common.RetailOrderStatusEnum) | 必填 | 配送场景:备货中(50),已备货(51),待呼叫骑手(60),待骑手接单(61),骑手已接单(62)、骑手已到店(63)、骑手配送中(64)、骑手已送达(65) 自提场景:备货中(50)、待自提(51)、已自提(52) |
account_id | string | 必填 | 账户id |
json示例
{ "order_id": "GDhINlPI6l", "order_out_status": 1 }
返回参数
Body:
参数名称 | 参数类型 | 必须参数 | 备注 |
» data | object(trade/biz_openapi/biz_openapi.DeliveryOrderSyncStatusResponseData) | 选填 | |
»» success | bool | 必填 | |
»» order_id | string | 必填 | |
» Extra | object(common/openapi_common.ExtraBody) | 选填 | |
»» now | int | 必填 | |
»» error_code | int | 必填 | |
»» description | string | 必填 | |
»» sub_error_code | int | 必填 | |
»» sub_description | string | 必填 | |
»» logid | string | 必填 | |
json示例
{ "data": { "order_id": "iUjrXTZPqQ", "success": true }, "Extra": { "logid": "kkCDd3DGMW", "now": 711933083719236306, "error_code": 868375820, "description": "uHANjAvod5", "sub_error_code": 2002751404, "sub_description": "4w00CEj9d4" } }
