Purchase Order Receipts

A purchase order can have multiple receipts. Each receipt can contain 1 or more products.

Get all receipts from a purchase order

GET https://example.picqer.com/api/v1/purchaseorders/{idpurchaseorder}/receipts
HTTP/1.1 200 OK [ { "idpurchaseorder_receipt": 2933, "idpurchaseorder": 18393, "iduser": 424, "purchaseorder_receiptid": "PO2016-1005-1", "remarks": null, "received_at": "2016-07-25 12:01:28", "products": [ { "idpurchaseorder_product": 18287, "idproduct": 1105248, "amount": 2 } ] } ]

Get single receipt

GET https://example.picqer.com/api/v1/purchaseorders/{idpurchaseorder}/receipts/{idpurchaseorder_receipt}
HTTP/1.1 200 OK { "idpurchaseorder_receipt": 2933, "idpurchaseorder": 18393, "iduser": 424, "purchaseorder_receiptid": "PO2016-1005-1", "remarks": null, "received_at": "2016-07-25 12:01:28", "products": [ { "idpurchaseorder_product": 18287, "idproduct": 1105248, "amount": 2 } ] }

Create a new receipt

POST https://example.picqer.com/api/v1/purchaseorders/{idpurchaseorder}/receipts
{ "remarks": "We got some extra flyers with this delivery", "received_at": "2016-07-25 12:01:28", "products": [ { "idpurchaseorder_product": 18287, "idproduct": 1105248, "amount": 2 } ] }
HTTP/1.1 201 Created { "idpurchaseorder_receipt": 2934, "idpurchaseorder": 18393, "iduser": 424, "purchaseorder_receiptid": "PO2016-1005-2", "remarks": null, "received_at": "2016-07-25 13:21:28", "products": [ { "idpurchaseorder_product": 18287, "idproduct": 1105248, "amount": 2 } ] }