The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

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