CenResService

<back to all web services

SetupCodePost

The following routes are available for this service:
POST/setupcode/{SubscriptionId}/{CendynPropertyId}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CenResSS.ServiceModel
Imports Cendyn.CenRes.DataLib.Models

Namespace Global

    Namespace Cendyn.CenRes.DataLib.Models

        Public Partial Class Response
            Public Overridable Property StatusCode As String
            Public Overridable Property RecordCount As Integer
            Public Overridable Property ErrorCount As Integer
        End Class

        Public Partial Class SetupCode
            Public Overridable Property CendynPropertyID As String
            Public Overridable Property HotelCode As String
            Public Overridable Property CodeId As String
            Public Overridable Property CodeGroup As String
            Public Overridable Property LanguageCode As String
            Public Overridable Property NameValue As String
            Public Overridable Property CodeValue As String
            Public Overridable Property Description As String
            Public Overridable Property AlternativeName As String
            Public Overridable Property AlternativeCode As String
            Public Overridable Property AlternativeDescription As String
            Public Overridable Property DisplaySequence As Integer
            Public Overridable Property Comments As String
            Public Overridable Property CodeSource As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property SourceDateCreated As Nullable(Of Date)
            Public Overridable Property SourceCreateUser As String
            Public Overridable Property SourceDateUpdated As Nullable(Of Date)
            Public Overridable Property SourceUpdateUser As String
        End Class
    End Namespace

    Namespace CenResSS.ServiceModel

        Public Partial Class SetupCodePost
            Public Sub New()
                SetupCodes = New List(Of SetupCode)
            End Sub

            Public Overridable Property SetupCodes As List(Of SetupCode)
            Public Overridable Property SubscriptionId As String
            Public Overridable Property CendynPropertyId As String
        End Class
    End Namespace
End Namespace

VB.NET SetupCodePost DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /setupcode/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"setupCodes":[{"cendynPropertyID":"String","hotelCode":"String","codeId":"String","codeGroup":"String","languageCode":"String","nameValue":"String","codeValue":"String","description":"String","alternativeName":"String","alternativeCode":"String","alternativeDescription":"String","displaySequence":0,"comments":"String","codeSource":"String","isActive":false,"sourceDateCreated":"0001-01-01T00:00:00.0000000","sourceCreateUser":"String","sourceDateUpdated":"0001-01-01T00:00:00.0000000","sourceUpdateUser":"String"}],"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":"String","recordCount":0,"errorCount":0}