Sign Contract

This endpoint is used to sign contract details of Agoda channel.


Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/contract/create
app-id: c2l0****20=
Authorization: Basic M0****W0
Header
Type
Required
Description

app-id

string

Yes

Your application ID. Required for authentication.

Authorization

string

Yes

Your API key. for authorization. Required for authentication.

Content-Type

string

Yes

Must be set to application/json.


Attributes

hotel_id alphanumeric (Required)

The unique property ID as assigned by the provider upon creation of the property.


channel_hotel_id string (Required)

The existing Agoda channel hotel ID for the property to be updated.


contract_code string (Required)

Specifies the contract code which is get through get contract API.


Sample Request

{
    "hotel_id": "AWSTEST",
    "channel_hotel_id": "77048595",
    "contract_code":"89"
}

Response

{
    "Status": "Success",
    "Data": [],
    "Message": "Contract signed successfully",
    "Ruid": "4ba57339-823f-11f0-9723-21938e81cb20"
}

Response Body Element

Status string

Indicates the result of the API call.

Will be "Success" for successful operations.

Will be always "Fail" in case of an error response.


Data object

The response data, the root element.


Message string

The message in the response.


Code string

Specific error code that helps identify the type of error.

For example: "400" indicates a bad request.


ShortText string

A short description of the error.

Indicates channel room id and rate id.


Status string

Indicates the result of the API call.

Will be "Success" for successful operations.

Last updated

Was this helpful?