Trendsic Platform Service

<back to all web services

OrderLinesRequest

The following routes are available for this service:
POST,PUT,DELETE,OPTIONS/v1/OrderLines
GET/v1/OrderLines/OrderHeaders/{OrderHeaderUID}
OrderLinesRequest Parameters:
NameParameterData TypeRequiredDescription
OrderHeaderUIDpathGuidNo
OrderLinesbodyList<OrderLine>No
OrderLine Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
OrderHeaderIDformGuidNo
OrderLineNumberformshortNo
ProductIDformshortNo
StripeProductIdformstringNo
ProductCategoryformshortNo
ProductSubCategoryformshortNo
QuantityformshortNo
TotalOrderLineCostformdecimalNo
ProductCostformdecimalNo
PerUnitProductCostformdecimalNo
OrderLineTaxformdecimalNo
OrderLineShippingCostformdecimalNo
PerUnitShippingCostformdecimalNo
OrderLineStatusIDformbyteNo
ShipMethodIDformbyteNo
EstimatedShipDateformDateTimeNo
EstimatedDeliveryDateformDateTimeNo
ActualShipDateformDateTimeNo
ActualDeliveryDateformDateTimeNo
OrderLineCreatedDateformDateTimeNo
OrderLineModifiedDateformDateTimeNo
UIDformGuidNo
ProductNameformstringNo
AgentIdformintNo
StreetformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
PhoneNumberformstringNo
AddressIdformintNo
ShippingAddressformstringNo
FullNameformstringNo
OrderLinesResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
OrderLinesformList<OrderLine>No

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 /v1/OrderLines HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"OrderHeaderUID":"00000000000000000000000000000000","OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"StripeProductId":"String","ProductCategory":0,"ProductSubCategory":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","AgentId":0,"Street":"String","City":"String","State":"String","Zip":"String","PhoneNumber":"String","AddressId":0,"ShippingAddress":"String","FullName":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"StripeProductId":"String","ProductCategory":0,"ProductSubCategory":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","AgentId":0,"Street":"String","City":"String","State":"String","Zip":"String","PhoneNumber":"String","AddressId":0,"ShippingAddress":"String","FullName":"String"}]}