TicketUserServices

<back to all web services

WebshopOrderSetStatusRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/Webshop/Order/SetStatus
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 LocalizedMessage
            Public Overridable Property [Is] As String
            Public Overridable Property En As String
        End Class

        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 WebshopOrderResult
            Public Overridable Property Success As Boolean
            Public Overridable Property Reason As String
            Public Overridable Property Message As LocalizedMessage
            Public Overridable Property OrderReference As String
            Public Overridable Property Order As WebshopOrderSummary
            Public Overridable Property StatusCode As Integer
        End Class

        Public Partial Class WebshopOrderSetStatusRequest
            Public Overridable Property OrderId As Nullable(Of Integer)
            Public Overridable Property OrderReference As String
            Public Overridable Property Status As String
            Public Overridable Property OwnerId As Nullable(Of Integer)
        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 WebshopOrderSetStatusRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Webshop/Order/SetStatus HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<WebshopOrderSetStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <OrderId>0</OrderId>
  <OrderReference>String</OrderReference>
  <OwnerId>0</OwnerId>
  <Status>String</Status>
</WebshopOrderSetStatusRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<WebshopOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>
    <En>String</En>
    <Is>String</Is>
  </Message>
  <Order>
    <Address>String</Address>
    <BuyerEmail>String</BuyerEmail>
    <BuyerName>String</BuyerName>
    <BuyerPhone>String</BuyerPhone>
    <City>String</City>
    <Country>String</Country>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <Currency>String</Currency>
    <DeliveryFeeMinor>0</DeliveryFeeMinor>
    <DeliveryType>String</DeliveryType>
    <DiscountCode>String</DiscountCode>
    <DroppLocationId>String</DroppLocationId>
    <DroppOrderId>String</DroppOrderId>
    <GiftPaidMinor>0</GiftPaidMinor>
    <ID>0</ID>
    <Lines>
      <WebshopOrderLineSummary>
        <Color>String</Color>
        <ID>0</ID>
        <LineTotalMinor>0</LineTotalMinor>
        <PayoutInfoId>0</PayoutInfoId>
        <PayoutTag>String</PayoutTag>
        <ProductId>0</ProductId>
        <ProductName>String</ProductName>
        <Quantity>0</Quantity>
        <Size>String</Size>
        <Status>String</Status>
        <UnitPriceMinor>0</UnitPriceMinor>
        <VariantId>0</VariantId>
      </WebshopOrderLineSummary>
    </Lines>
    <NeedsDeliveryAttention>false</NeedsDeliveryAttention>
    <OrderReference>String</OrderReference>
    <OwnerId>0</OwnerId>
    <PaymentId>String</PaymentId>
    <PaymentMethodId>String</PaymentMethodId>
    <PaymentReference>String</PaymentReference>
    <Status>String</Status>
    <TotalDiscountMinor>0</TotalDiscountMinor>
    <TotalMinor>0</TotalMinor>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
    <ZipCode>String</ZipCode>
  </Order>
  <OrderReference>String</OrderReference>
  <Reason>String</Reason>
  <StatusCode>0</StatusCode>
  <Success>false</Success>
</WebshopOrderResult>