| POST, OPTIONS | /v1/OrderLinesToMulti |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class OrderLine
Public Overridable Property ID As Integer
Public Overridable Property OrderHeaderID As Guid
Public Overridable Property OrderLineNumber As Short
Public Overridable Property ProductID As Short
Public Overridable Property StripeProductId As String
Public Overridable Property ProductCategory As Short
Public Overridable Property ProductSubCategory As Short
Public Overridable Property Quantity As Short
Public Overridable Property TotalOrderLineCost As Decimal
Public Overridable Property ProductCost As Decimal
Public Overridable Property PerUnitProductCost As Decimal
Public Overridable Property OrderLineTax As Decimal
Public Overridable Property OrderLineShippingCost As Decimal
Public Overridable Property PerUnitShippingCost As Decimal
Public Overridable Property OrderLineStatusID As Byte
Public Overridable Property ShipMethodID As Byte
Public Overridable Property EstimatedShipDate As Date
Public Overridable Property EstimatedDeliveryDate As Date
Public Overridable Property ActualShipDate As Date
Public Overridable Property ActualDeliveryDate As Date
Public Overridable Property OrderLineCreatedDate As Date
Public Overridable Property OrderLineModifiedDate As Date
Public Overridable Property UID As Guid
Public Overridable Property ProductName As String
Public Overridable Property AgentId As Integer
Public Overridable Property Street As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Zip As String
Public Overridable Property PhoneNumber As String
Public Overridable Property AddressId As Integer
Public Overridable Property ShippingAddress As String
Public Overridable Property FullName As String
End Class
Public Partial Class OrderLinesResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property OrderLines As List(Of OrderLine) = New List(Of OrderLine)
End Class
Public Partial Class OrderLinesToMultiRequest
Public Overridable Property OrderHeaderUID As Guid
Public Overridable Property OrderLines As List(Of OrderLine) = New List(Of OrderLine)
End Class
End Namespace
End Namespace
VB.NET OrderLinesToMultiRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/OrderLinesToMulti HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
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/jsonl
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"}]}