2 augustus 2024
- Get goods receipt piecesGET
- Create goods receipt piecePOST
- Get goods receipt piece by idGET
- Update goods receipt piecePUT
- Get goods receiptsGET
- Create goods receiptPOST
- Get goods receipt by idGET
- Get goods receipt linesGET
- Create goods receipt linePOST
- Get goods receipt line by idGET
- Get goods receipt purchase ordersGET
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
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
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
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
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
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
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