PurchaseInboundOrder¶
Use this api to create the purchase inbound order.
POST /openapi/warehouse-inventory/v1/purchase-inbound-order
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
warehouseId |
string |
true |
Warehouse id |
no |
string |
false |
Warehouse no |
remark |
string |
false |
Remark, should be less than 300 |
purchaseOrderId |
string |
false |
Purchase inbound order id |
deliveryMethod |
DeliveryMethod |
true |
Please refer to DeliveryMethod for details |
waybillNumber |
string |
false |
Waybill number, should be less than 200 |
immediateExecute |
boolean |
true |
If the value is true, will execute directly, otherwise, need to invoke execute API |
needPushFulfillment |
boolean |
true |
If use the third party and the value is true, will push order to third party |
itemCreateList |
array(object) |
true |
Array of object, please refer to PurchaseInboundOrderItemCreateDTO for details |
PurchaseInboundOrderItemCreateDTO¶
Parameter | Type | Required | Description |
---|---|---|---|
shelfInventoryId |
string |
true |
Shelf inventory id |
planQuantity |
long |
true |
Plan quantity |
realQuantity |
long |
true |
Real quantity |
planPrice |
bigDecimal |
true |
Plan price |
realPrice |
bigDecimal |
true |
Real Price |
remark |
string |
false |
Remark |
Response Parameters¶
Name | Type | Description |
---|---|---|
data |
long |
Purchase inbound order id |
Request Example¶
Example
curl --location --request POST '{Ginee Host}/openapi/warehouse-inventory/v1/purchase-inbound-order' \
--header 'Content-Type: application/json' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:UH5nmZ7Qqd18Nr1sqLgDjA/1qjPfDR7/rzRvRtHTM8s=' \
--data-raw '{
"warehouseId": "WW61EA663F9B9717000127DAD5",
"deliveryMethod": "EXPRESS_DELIVERY",
"immediateExecute": true,
"needPushFulfillment": false,
"itemCreateList": [
{
"shelfInventoryId":"SI61EFA4357D560D0001A43BE4",
"planQuantity":98,
"realQuantity":99,
"planPrice":1.23,
"realPrice":1.22,
"remark":"remark"
}
]
}'
Success
{
"code": "SUCCESS",
"message": "成功",
"data": 2,
"extra": null,
"pricingStrategy": "PAY"
}