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 return receipt lines
POST
https://api.pack.cloud/v1/warehouses/{warehouseId}/return-receipts/{returnReceiptId}/lines
This endpoint updates the existing receipt by adding the quantity to the existing line when there is already a line with the given condition and remarks
Request
Path parameters
warehouseIdstring
returnReceiptIdstring
Payload
conditionstringrequired
Condition of the receipt line
Allowed values:saleableunsalable
quantity_receivedintegerrequired
Quantity received of the receipt line
remarksstring
Remarks of the receipt line (required if condition = unsalable)
order_line_idstring
Order line id of the received good
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 return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the return receipt line
return_request_line_idstring
ID of the return request line
quantity_receivedinteger
Quantity that is received back
conditionstring
Condition of the received items
Allowed values:saleableunsalable
remarksstring
Remarks of the received items
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource