Receive goods to a purchase order
In this example we will update a purchase order in order to indicate that items were received from the vendor.
First we will submit the following updated Purchase Order JSON string in a PUT request to tell Spire that we have received the quantity of goods. Note that we have removed some of the fields since we are only going to include what was updated, but we have also included the created id values for each of the objects.
{ "id":197, "number":"0000700058", "vendor":{ "id":1, "vendorNo":"ACMSYS" }, "items":[ { "id":986, "inventory":{ "id":193, "whse":"VA", "partNo":"ABMAT" }, "orderQty":"12", "receiveQty":"12" }, { "id":989, "inventory":{ "id":33, "whse":"VA", "partNo":"SPAB" }, "orderQty":"15", "receiveQty":"15" } ] }
We can check the response data to confirm that we have updated the received quantities for each item on the PO to reflect that we have some quantity received on this purchase order.