updateVendorOrderStatus端点用于更新Zonos系统内订单的订单状态。这将用于以编程方式更新订单的配送状态或请求取消。
updateVendorOrderStatus
以下是订单可能具有的当前订单状态的列表。
注意 - Zonos可能随时添加更多状态;您的系统应该能够应对额外状态的出现。
生产环境中的状态将保留在生产环境中。Zonos永远不会删除现有状态。
当订单处于以下订单状态之一时,卖方不能更新vendorOrderStatus: IGLOBAL_LABELS_PROCESSINGIGLOBAL_ORDER_ON_HOLDIGLOBAL_FRAUD_REVIEWIGLOBAL_ORDER_CANCELLEDVENDOR_CANCELLATION_REQUESTVENDOR_END_OF_DAY_COMPLETE
当订单处于以下订单状态之一时,卖方不能更新vendorOrderStatus:
vendorOrderStatus
IGLOBAL_LABELS_PROCESSINGIGLOBAL_ORDER_ON_HOLDIGLOBAL_FRAUD_REVIEWIGLOBAL_ORDER_CANCELLEDVENDOR_CANCELLATION_REQUESTVENDOR_END_OF_DAY_COMPLETE
POST | https://api.iglobalstores.com/v1/updateVendorOrderStatus
https://api.iglobalstores.com/v1/updateVendorOrderStatus
消息格式:JSON
{
"store": "999",
"secret": "f5bde245-f55e-414d-b722-80b25161c12c",
"orderId": "999-9999",
"orderStatus": "VENDOR_END_OF_DAY_COMPLETE"
}
orderId
orderID
integer / string
orderStatus
VENDOR_PREPARING_ORDER
VENDOR_SHIPMENT_READY
VENDOR_LABELS_PRINTED
VENDOR_END_OF_DAY_COMPLETE
VENDOR_CANCELLATION_REQUEST``string
secret
string
store
integer
"success": "Updated Order: 99999 to new order status: VENDOR_PREPARING_ORDER"
success
error
更新订单状态
更新订单状态
了解更新订单状态端点的工作原理。updateVendorOrderStatus端点用于更新Zonos系统内订单的订单状态。这将用于以编程方式更新订单的配送状态或请求取消。当前订单状态值
以下是订单可能具有的当前订单状态的列表。
HTTPS请求
POST |
https://api.iglobalstores.com/v1/updateVendorOrderStatushttps://api.iglobalstores.com/v1/updateVendorOrderStatus请求体中的JSON键值对
消息格式:JSON
{"store": "999","secret": "f5bde245-f55e-414d-b722-80b25161c12c","orderId": "999-9999","orderStatus": "VENDOR_END_OF_DAY_COMPLETE"}请求JSON定义
orderId必需orderID,其中将包含此值。integer / stringorderStatus必需VENDOR_PREPARING_ORDERVENDOR_SHIPMENT_READYVENDOR_LABELS_PRINTEDVENDOR_END_OF_DAY_COMPLETEVENDOR_CANCELLATION_REQUEST``string| |secret必需 | Zonos提供的API秘密GUID。string| |store必需 | Zonos提供的商店ID。integer|HTTPS响应
消息格式:JSON
{"success": "Updated Order: 99999 to new order status: VENDOR_PREPARING_ORDER"}错误HTTP响应
响应JSON定义
successstringerrorstring这个页面有帮助吗?