To override the Content-type in your clients 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.
POST /json/reply/OrderLinesRequest HTTP/1.1
Host: testapi3.teamifg.com
Content-Type: application/json
Content-Length: length
{"OrderHeaderUID":"00000000000000000000000000000000","OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"Quantity":0,"TotalOrderLineCost":0,"ProductCost":0,"PerUnitProductCost":0,"OrderLineTax":0,"OrderLineShippingCost":0,"PerUnitShippingCost":0,"OrderLineStatusID":0,"ShipMethodID":0,"EstimatedShipDate":"0001-01-01T00:00:00.0000000","EstimatedDeliveryDate":"0001-01-01T00:00:00.0000000","ActualShipDate":"0001-01-01T00:00:00.0000000","ActualDeliveryDate":"0001-01-01T00:00:00.0000000","OrderLineCreatedDate":"0001-01-01T00:00:00.0000000","OrderLineModifiedDate":"0001-01-01T00:00:00.0000000","UID":"00000000000000000000000000000000","ProductName":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"Quantity":0,"TotalOrderLineCost":0,"ProductCost":0,"PerUnitProductCost":0,"OrderLineTax":0,"OrderLineShippingCost":0,"PerUnitShippingCost":0,"OrderLineStatusID":0,"ShipMethodID":0,"EstimatedShipDate":"0001-01-01T00:00:00.0000000","EstimatedDeliveryDate":"0001-01-01T00:00:00.0000000","ActualShipDate":"0001-01-01T00:00:00.0000000","ActualDeliveryDate":"0001-01-01T00:00:00.0000000","OrderLineCreatedDate":"0001-01-01T00:00:00.0000000","OrderLineModifiedDate":"0001-01-01T00:00:00.0000000","UID":"00000000000000000000000000000000","ProductName":"String"}]}