TicketUserServices

<back to all web services

WebshopOrderSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/Webshop/Order/Search
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class WebshopOrderLineSummary
            Public Overridable Property ID As Integer
            Public Overridable Property ProductId As Integer
            Public Overridable Property VariantId As Integer
            Public Overridable Property ProductName As String
            Public Overridable Property Size As String
            Public Overridable Property Color As String
            Public Overridable Property UnitPriceMinor As Integer
            Public Overridable Property Quantity As Integer
            Public Overridable Property LineTotalMinor As Integer
            Public Overridable Property Status As String
            Public Overridable Property PayoutInfoId As Nullable(Of Integer)
            Public Overridable Property PayoutTag As String
        End Class

        Public Partial Class WebshopOrderSearchRequest
            Public Overridable Property OwnerId As Nullable(Of Integer)
            Public Overridable Property Status As String
            Public Overridable Property From As Nullable(Of Date)
            Public Overridable Property To As Nullable(Of Date)
            Public Overridable Property Skip As Nullable(Of Integer)
            Public Overridable Property Take As Nullable(Of Integer)
        End Class

        Public Partial Class WebshopOrderSearchResult
            Public Sub New()
                Items = New List(Of WebshopOrderSummary)
            End Sub

            Public Overridable Property Items As List(Of WebshopOrderSummary)
            Public Overridable Property TotalCount As Integer
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class WebshopOrderSummary
            Public Sub New()
                Lines = New List(Of WebshopOrderLineSummary)
            End Sub

            Public Overridable Property ID As Integer
            Public Overridable Property OrderReference As String
            Public Overridable Property OwnerId As Integer
            Public Overridable Property Status As String
            Public Overridable Property TotalMinor As Integer
            Public Overridable Property DeliveryFeeMinor As Integer
            Public Overridable Property TotalDiscountMinor As Integer
            Public Overridable Property Currency As String
            Public Overridable Property BuyerName As String
            Public Overridable Property BuyerEmail As String
            Public Overridable Property BuyerPhone As String
            Public Overridable Property Address As String
            Public Overridable Property City As String
            Public Overridable Property ZipCode As String
            Public Overridable Property Country As String
            Public Overridable Property DeliveryType As String
            Public Overridable Property DroppOrderId As String
            Public Overridable Property DroppLocationId As String
            Public Overridable Property NeedsDeliveryAttention As Boolean
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property PaymentId As String
            Public Overridable Property PaymentReference As String
            Public Overridable Property DiscountCode As String
            Public Overridable Property GiftPaidMinor As Integer
            Public Overridable Property CreatedAt As Date
            Public Overridable Property UpdatedAt As Date
            Public Overridable Property Lines As List(Of WebshopOrderLineSummary)
        End Class
    End Namespace
End Namespace

VB.NET WebshopOrderSearchRequest DTOs

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 /Webshop/Order/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ownerId":0,"status":"String","from":"0001-01-01T00:00:00.0000000","to":"0001-01-01T00:00:00.0000000","skip":0,"take":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"items":[{"id":0,"orderReference":"String","ownerId":0,"status":"String","totalMinor":0,"deliveryFeeMinor":0,"totalDiscountMinor":0,"currency":"String","buyerName":"String","buyerEmail":"String","buyerPhone":"String","address":"String","city":"String","zipCode":"String","country":"String","deliveryType":"String","droppOrderId":"String","droppLocationId":"String","needsDeliveryAttention":false,"paymentMethodId":"String","paymentId":"String","paymentReference":"String","discountCode":"String","giftPaidMinor":0,"createdAt":"0001-01-01T00:00:00.0000000","updatedAt":"0001-01-01T00:00:00.0000000","lines":[{"id":0,"productId":0,"variantId":0,"productName":"String","size":"String","color":"String","unitPriceMinor":0,"quantity":0,"lineTotalMinor":0,"status":"String","payoutInfoId":0,"payoutTag":"String"}]}],"totalCount":0,"statusCode":0,"message":"String"}