Create goods receipt line

POST

https://api.pack.cloud/v1/warehouses/{warehouseId}/goods-receipts/{goodsReceiptId}/lines

This endpoint updates the existing receipt by adding the quantity to the existing line when there is already a line with the given product and goods receipt piece

Request

Path parameters

warehouseIdstring
goodsReceiptIdstring

Payload

goods_receipt_piece_idstringrequired
ID of the goods receipt piece
product_idstringrequired
ID of the product
quantity_receivedintegerrequired
Quantity received of the receipt line
Stock information for restock
locatable_idstringnullrequired
ID of the locatable
locatable_typestringnullrequired
Type of the locatable
Allowed values:binstock_location
expiry_datestringnull
Expire date of perishable products
lot_numberstringnull
Lot number perishable products
Serial numbers

Response

OK

Body

idstring
ID of the goods receipt piece line
goods_receipt_piece_idstring
ID of the goods receipt piece
product_idstring
ID of the product
quantity_receivedinteger
Quantity that is received back
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource

Meld je aan voor onze nieuwsbrief

Blijf op de hoogte van de laatste ontwikkelingen en trends op het gebied van logistiek en ecommerce.