To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PATCH /WarehouseTransfersIn/{WarehouseTransferInID}/Lines/{WarehouseTransferInLineID} HTTP/1.1
Host: api.jiwa.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"WarehouseTransferInID":"String","WarehouseTransferInLineID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","DecimalPlaces":0,"QuantityWanted":0,"QuantityTransferred":0,"QuantityBackOrdered":0,"QuantityReceived":0,"Cost":0,"Ref":"String","BackOrderID":"String","PurchaseOrderID":"String","PurchaseOrderLineID":"String","TotalCostTransferred":0,"TotalCostReceived":0,"AddedCostLedger1RecID":"String","AddedCostLedger1AccountNo":"String","AddedCostLedger1Description":"String","AddedCostLedger2RecID":"String","AddedCostLedger2AccountNo":"String","AddedCostLedger2Description":"String","AddedCostLedger3RecID":"String","AddedCostLedger3AccountNo":"String","AddedCostLedger3Description":"String","LineDetails":[{"TransferLineDetailsID":"String","Quantity":0,"Cost":0,"SourceSerialNo":"String","SourceBinLocation":"String","SourceExpiryDate":"0001-01-01T00:00:00.0000000","SourceDateIn":"0001-01-01T00:00:00.0000000","SourceSpecialPrice":0,"Source_IN_SOHID":"String","InTransit_IN_SOHID":"String","Destination_IN_SOHID":"String","QuantityReceived":0,"CostReceived":0,"DestinationSerialNo":"String","DestinationBinLocation":"String","DestinationExpiryDate":"0001-01-01T00:00:00.0000000","AddedCost":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"WarehouseTransferInLineID":"String","ItemNo":0,"InventoryID":"String","PartNo":"String","Description":"String","DecimalPlaces":0,"QuantityWanted":0,"QuantityTransferred":0,"QuantityBackOrdered":0,"QuantityReceived":0,"Cost":0,"Ref":"String","BackOrderID":"String","PurchaseOrderID":"String","PurchaseOrderLineID":"String","TotalCostTransferred":0,"TotalCostReceived":0,"AddedCostLedger1RecID":"String","AddedCostLedger1AccountNo":"String","AddedCostLedger1Description":"String","AddedCostLedger2RecID":"String","AddedCostLedger2AccountNo":"String","AddedCostLedger2Description":"String","AddedCostLedger3RecID":"String","AddedCostLedger3AccountNo":"String","AddedCostLedger3Description":"String","LineDetails":[{"TransferLineDetailsID":"String","Quantity":0,"Cost":0,"SourceSerialNo":"String","SourceBinLocation":"String","SourceExpiryDate":"0001-01-01T00:00:00.0000000","SourceDateIn":"0001-01-01T00:00:00.0000000","SourceSpecialPrice":0,"Source_IN_SOHID":"String","InTransit_IN_SOHID":"String","Destination_IN_SOHID":"String","QuantityReceived":0,"CostReceived":0,"DestinationSerialNo":"String","DestinationBinLocation":"String","DestinationExpiryDate":"0001-01-01T00:00:00.0000000","AddedCost":0}]}