PurchaseInboundOrderExecuteBatch¶
Use this api to execute created purchase inbound orders in batches.
POST /openapi/warehouse-inventory/v1/purchase-inbound-order/execute/batch
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
data |
array(long) |
true |
Purchase inbound order's id |
Response Parameters¶
Name | Type | Description |
---|---|---|
itemList |
array(SuccessList) |
Successful list, please refer to SuccessList |
errorList |
array(ErrorList) |
Failed list, please refer to ErrorList |
SuccessList¶
Name | Type | Description |
---|---|---|
id |
long |
Purchase inbound order's id |
ErrorList¶
Name | Type | Description |
---|---|---|
id |
long |
Purchase inbound order's id |
message |
string |
Message |
Request Example¶
Example
curl --location --request POST '{Ginee Host}/openapi/warehouse-inventory/v1/purchase-inbound-order/execute/batch' \
--header 'Authorization: 2aedf7919e5e6cb4:S0sSLI9RSK/Vw6t3MpDm7pCgD+Vze0/9fu4W0PaX/iE=' \
--header 'X-Advai-Country: ID' \
--header 'Content-Type: application/json' \
--data-raw '[1,2,3,9000]
'
Success
{
"code": "SUCCESS",
"message": "成功",
"data": {
"itemList": [
{ "id":"2" }
],
"errorList": [
{
"id": 1,
"message": "[status:COMPLETE] can not execute"
},
{
"id": 3,
"message": "[status:COMPLETE] can not execute"
},
{
"id": 9000,
"message": " not find entity"
}
]
},
"extra": null,
"pricingStrategy": "PAY"
}