JiwaAPI

<back to all web services

PurchaseOrderReceiveStockCREATEFromPOLinesRequest

Requires Authentication
The following routes are available for this service:
POST/PurchaseOrders/FromPurchaseOrderLinesCreates a landed cost book in if the purchase order is on a shipment, otherwise creates a goods received note from the supplied list of ReceivedPOLineQuantity.
PurchaseOrderReceiveStockCREATEFromPOLinesRequest Parameters:
NameParameterData TypeRequiredDescription
ReceivedPOLineQuantitiesbodyList<ReceivedPOLineQuantity>No
ReceivedDatebodyDateTime?No
ReceivedPOLineQuantity Parameters:
NameParameterData TypeRequiredDescription
OrderLineIDformstringNo
Quantityformdecimal?No
DetailsformList<ReceivedPOLineQuantityDetail>No
ReceivedPOLineQuantityDetail Parameters:
NameParameterData TypeRequiredDescription
ExpiryDateformDateTime?No
SerialNoformstringNo
Quantityformdecimal?No
BinLocationformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PurchaseOrders/FromPurchaseOrderLines HTTP/1.1 
Host: api.jiwa.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ReceivedPOLineQuantities":[{"OrderLineID":"String","Quantity":0,"Details":[{"ExpiryDate":"0001-01-01T00:00:00.0000000","SerialNo":"String","Quantity":0,"BinLocation":"String"}]}],"ReceivedDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"DocumentNo":"String","DocumentID":"String","IsGoodsReceivedNote":false,"IsLandedCostBookIn":false,"ReceivalDate":"0001-01-01T00:00:00.0000000"}]