CenResService

<back to all web services

MessageAcknowledgement

The following routes are available for this service:
POST/acknowlegement/{SubscriptionId}/{CendynPropertyId}
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class MessageAcknowledgement
{
    var acknowledgement:Acknowledgement? = null
    var subscriptionId:String? = null
    var cendynPropertyId:String? = null
}

open class Acknowledgement
{
    var cendynPropertyID:String? = null
    var hotelCode:String? = null
    var success:Boolean? = null
    var echoToken:String? = null
    var uniqueIDs:ArrayList<UniqueIDType> = ArrayList<UniqueIDType>()
    var messages:ArrayList<StatusMessage> = ArrayList<StatusMessage>()
}

open class UniqueIDType
{
    var id:String? = null
    @SerializedName("type") var Type:String? = null
    var context:String? = null
}

open class StatusMessage
{
    var messageType:StatusMessageType? = null
    var code:String? = null
    var message:String? = null
    var target:String? = null
}

enum class StatusMessageType
{
    Info,
    Warning,
    Error,
}

open class Response
{
    var statusCode:String? = null
    var recordCount:Int? = null
    var errorCount:Int? = null
}

Kotlin MessageAcknowledgement 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 /acknowlegement/{SubscriptionId}/{CendynPropertyId} HTTP/1.1 
Host: cert.cendyn.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"acknowledgement":{"cendynPropertyID":"String","hotelCode":"String","success":false,"echoToken":"String","uniqueIDs":[{"id":"String","type":"String","context":"String"}],"messages":[{"messageType":"Info","code":"String","message":"String","target":"String"}]},"subscriptionId":"String","cendynPropertyId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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