Accept supplier delivery¶
POST
*base*/supplier-deliveries/*supplierDeliveryId*
POST
*base*/supplier-deliveries/*supplierDeliveryId*/sku
Will accept the delivery with the proper quantities in the physical delivery. This will be inserted into the preferred warehouse.
Note
This can only be done once per supplier delivery.
It is possible to over deliver or under deliver when accepting the delivery. This will be visible inside Centra when delivery was accepted.
In case of under delivery a new delivery containing the undelivered products will be created.
Parameters¶
object
required
|
Key is from the Get supplier delivery and value is the
|
||||
boolean
optional
|
Default
|
||||
boolean
optional
|
Response in xml format instead of json. |
Request example¶
Both id
and deliveryId
from List supplier deliveries can be used to accept a supplier delivery.
1 2 3 4 5 6 7 8 9 10 | POST <base>/supplier-delivery/364 HTTP/1.1
Content-type: application/json
{
"products": {
"73213213123": 32,
"73213213124": 12,
},
"insertStock": false
}
|
Accept using SKU instead of EAN¶
Append /sku to the URL and switch from EAN to SKU for the product keys.
1 2 3 4 5 6 7 8 9 | POST <base>/supplier-delivery/364/sku HTTP/1.1
Content-type: application/json
{
"products": {
"PRODSKUVARIANTSKUSIZESKU": 32,
"PRODSKUVARIANTSKUSIZESKU2": 12,
}
}
|
Response¶
200
Content-type: application/json
string
required
|
ok if success, else no . |
||||||||||||||||
object
optional
|
If not all products from the supplier order delivery was accepted, this is the new created delivery for the remaining products of the supplier order delivery.
|
Response example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"status":"ok",
"additionalDelivery": {
"id": "365",
"orderId": "957",
"deliveryId": "957-2",
"supplierName": "Falca",
"supplierCountry": "ES",
"created": "2019-01-28 01:15",
"ETD": "2019-03-31 15:15",
"ETA": "2019-04-05 20:15",
"message": "Text entered by centra admin",
"productsQty": 19891
}
}
|