TicketUserServices

<back to all web services

OutboundEnqueueRequest

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/Outbound/Enqueue
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 OutboundEnqueueRequest
            Public Overridable Property Channel As String
            Public Overridable Property Lane As String
            Public Overridable Property Priority As Integer
            Public Overridable Property Address As String
            Public Overridable Property Platform As String
            Public Overridable Property RecipientKey As String
            Public Overridable Property TemplateKey As String
            Public Overridable Property Language As String
            Public Overridable Property PayloadJson As String
            Public Overridable Property DedupKey As String
            Public Overridable Property CampaignId As Nullable(Of Integer)
            Public Overridable Property OwnerId As Nullable(Of Integer)
            Public Overridable Property GuardKey As String
            Public Overridable Property GuardSubject As String
            Public Overridable Property NotBefore As Nullable(Of Date)
            Public Overridable Property ExpiresAt As Nullable(Of Date)
        End Class

        Public Partial Class OutboundEnqueueResult
            Public Overridable Property Status As String
            Public Overridable Property MessageId As Nullable(Of Long)
            Public Overridable Property Reason As String
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET OutboundEnqueueRequest 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 /Outbound/Enqueue HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OutboundEnqueueRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Address>String</Address>
  <CampaignId>0</CampaignId>
  <Channel>String</Channel>
  <DedupKey>String</DedupKey>
  <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
  <GuardKey>String</GuardKey>
  <GuardSubject>String</GuardSubject>
  <Lane>String</Lane>
  <Language>String</Language>
  <NotBefore>0001-01-01T00:00:00</NotBefore>
  <OwnerId>0</OwnerId>
  <PayloadJson>String</PayloadJson>
  <Platform>String</Platform>
  <Priority>0</Priority>
  <RecipientKey>String</RecipientKey>
  <TemplateKey>String</TemplateKey>
</OutboundEnqueueRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OutboundEnqueueResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <MessageId>0</MessageId>
  <Reason>String</Reason>
  <Status>String</Status>
  <StatusCode>0</StatusCode>
</OutboundEnqueueResult>