采購單創建消息,采購下單完成異步返回的消息
Topic
Kafka topic | order |
消息類型 | 順序消息 |
消息分區鍵 |
消息體
重要
請注意,因采購單創建為異步任務,如分銷商調用CreatePurchaseOrder - 創建采購單接口返回異常時(如503錯誤碼),建議勿立即執行業務側的toC退款;請分銷商等待并消費本消息后正常判斷訂單狀態(如消費訂單狀態同步消息判斷訂單狀態)后再處理業務邏輯,以免造成資損。
名稱 | 類型 | 描述 | 示例值 | |
event | string | 消息類型 | PurchaseOrderCreate | |
body | distributorId | String | 分銷商ID | 12****01 |
purchaseId | String | 采購方ID | ||
outerPurchaseOrderId | String | 創建時傳入的外部采購單ID | outer009100 | |
purchaseOrderId | String | 采購單ID | 6696****5680 | |
purchaseOrderStatus | Integer | 采購單狀態 20=采購成功,待發貨 30=部分采購成功,待發貨 80=交易失敗 | 20 | |
orderList | List<Oder> | 主訂單列表訂單 | ||
failReason | String | 創建采購單失敗原因 | 商品不可售 |
示例
{
"event": "PurchaseOrderCreate",
"body": {
"distributorId": "12****01",
"purchaseId": "PID12****01",
"orderList": [
{
"createDate": "2023-09-11T12:22:24.000+08:00",
"logisticsStatus": "8",
"orderAmount": "1",
"orderId": "6696****8593",
"orderLineList": [
{
"number": "1",
"orderLineId": "6696****8594",
"orderLineStatus": 1,
"productId": "6600****6736",
"productPicUrl": "http://img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0DYLWA_!!2216003305543.jpg",
"productPriceList": [
{
"fundAmountMoney": "1"
}
],
"productTitle": "小蟻yh測試商品請勿下單(多sku111)888",
"skuId": "6600****6737",
"skuTitle": "淺灰色"
}
],
"orderStatus": "1"
}
],
"outerPurchaseOrderId": "outer009100",
"purchaseOrderId": "6696****5680",
"purchaseOrderStatus": 20
}
}
變更歷史
文檔內容是否對您有幫助?