GET | /pendingOrders/{BeeNumber}/{Days} | ||
---|---|---|---|
GET | /pendingOrders/{BeeNumber}/{Days}/{Status} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports NAV.ServiceModel
Namespace Global
Namespace NAV.ServiceModel
Public Partial Class GetListResponse(Of TEntity)
Public Sub New()
Items = New List(Of TEntity)
End Sub
Public Overridable Property Items As List(Of TEntity)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class NAVOpenOrderGetList
Implements IGet
Public Overridable Property BeeNumber As Decimal
Public Overridable Property Days As Integer
Public Overridable Property Status As String
End Class
Public Partial Class NAVOpenOrderGetListResponse
Inherits GetListResponse(Of NAVOpenOrderViewModel)
End Class
Public Partial Class NAVOpenOrderViewModel
Public Overridable Property OrderNumber As String
Public Overridable Property OrderId As Integer
Public Overridable Property OrderStatusId As Integer
Public Overridable Property OrderStatus As String
Public Overridable Property Created As Date
Public Overridable Property OrderType As String
Public Overridable Property Subtotal As Decimal
Public Overridable Property ShippingCost As Decimal
Public Overridable Property FinalTax As Decimal
Public Overridable Property CommissionableValueEarned As Decimal
Public Overridable Property QualifyingValueEarned As Decimal
Public Overridable Property CampaignOfOrder As String
End Class
End Namespace
End Namespace
VB.NET NAVOpenOrderGetList DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /pendingOrders/{BeeNumber}/{Days} HTTP/1.1 Host: extensions.avon.ca Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"items":[{"orderNumber":"String","orderId":0,"orderStatusId":0,"orderStatus":"String","created":"0001-01-01T00:00:00.0000000","orderType":"String","subtotal":0,"shippingCost":0,"finalTax":0,"commissionableValueEarned":0,"qualifyingValueEarned":0,"campaignOfOrder":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}