AmountPerBooking
|
Name |
Description |
Schema |
|
@Value |
Discount
amount per booking value. (Between 0.0 - 99999999.0) |
number
(double) |
AmountPerNight
|
Name |
Description |
Schema |
|
@NightType |
Required
one of night types as follows: EveryNight, SpecificNight, SpecificDOW,
FirstNight, and LastNight. |
enum
(EVERY_NIGHT, SPECIFIC_NIGHT, SPECIFIC_DOW, FIRST_NIGHT, LAST_NIGHT) |
|
Value |
List of
discount amount per night value. (Between 0.0 - 99999999.0) |
<
number (double) > array |
CancellationPolicy
|
Name |
Description |
Schema |
|
@Id |
Cancellation
policy ID See: Get
a list of supported cancel policies |
integer
(int32) |
ChannelType
|
Name |
Description |
Schema |
|
@Id |
Channel
ID See: Get list of
supported channels |
integer
(int64) |
Channels
|
Name |
Description |
Schema |
|
Channel |
Channel
of a promotion. This specifies that this channel is applicable to the
promotion. |
< ChannelType >
array |
CustomerSegmentsType
|
Name |
Description |
Schema |
|
@Id |
Customer
Segment Group ID See: Get
a list of supported Customer Segment Groups |
integer
(int64) |
CustomerSegments
|
Name |
Description |
Schema |
|
CustomerSegment |
Customer
segment of a promotion. This specifies that this customer segment is
applicable to the promotion. |
< CustomerSegmentType >
array |
DateRange
|
Name |
Description |
Schema |
|
DateRange |
This
encloses one or more date ranges. |
< DateRangeMandatory >
array |
DateRangeMandatory
|
Name |
Description |
Schema |
|
@End |
End
datetime. |
string
(date-time) |
|
@Start |
Start
datetime. |
string
(date-time) |
DateRangeType
|
Name |
Description |
Schema |
|
@End |
End
datetime. If not passed, there will not be an end date. |
string
(date-time) |
|
@Start |
Start
datetime. |
string
(date-time) |
DayType
|
Name |
Description |
Schema |
|
Day |
Day of
the week |
<
string > array |
Discount
|
Name |
Description |
Schema |
|
AmountPerBooking |
AmountPerBooking
discount type. |
|
|
AmountPerNight |
AmountPerNight
discount type. |
|
|
ExpressTonight |
ExpressTonight
discount type. |
|
|
FreeNights |
FreeNights
discount type. |
|
|
PercentPerNight |
PercentPerNight
discount type. |
EarlyBird
|
Name |
Description |
Schema |
|
@MinAdvPurchase |
Minimum
advance purchase day. |
integer
(int32) |
ErrorCode
|
Name |
Description |
Schema |
|
@Code |
Code of
an Agoda error message. |
integer
(int32) |
|
@Description |
Description
of an Agoda error message. |
string |
ErrorCodes
|
Name |
Description |
Schema |
|
ErrorCode |
List of
error codes |
< ErrorCode >
array |
ErrorResponse
|
Name |
Description |
Schema |
|
@CorrelationID |
Allows
end-to-end correlation of log messages with the corresponding Web service
message throughout the processing of the Web service message. |
string |
|
@Endpoint |
Endpoint
name |
string |
|
Errors |
A
collection of errors that occurred during the processing of a message. |
|
|
Warnings |
A
collection of warnings that occurred during the processing of a message. |
ErrorType
|
Name |
Description |
Schema |
|
@Code |
This
refers to a table of coded values exchanged between applications to identify
errors or warnings. Refer to OpenTravel Code List Error Codes (ERR). |
string |
|
@ShortText |
An
abbreviated version of the error in textual format. |
string |
|
@Status |
Recommended
values are those enumerated in the OTA_ErrorRS, (NotProcessed | Incomplete |
Complete | Unknown) however, the data type is designated as string data,
recognizing that trading partners may identify additional status conditions
not included in the enumeration. |
string |
ErrorsType
|
Name |
Description |
Schema |
|
Error |
An
error that occurred during the processing of a message. |
< ErrorType >
array |
ExpressTonight
|
Name |
Description |
Schema |
|
@ChannelDiscount |
ChannelDiscount
flag. |
boolean |
|
@Value |
Amount
of ExpressTonight discount type value. (Between 0.0 - 99999999.0) |
number
(double) |
FreeNights
|
Name |
Description |
Schema |
|
@IsRecurring |
IsRecurring
flag. |
boolean |
|
@Value |
Free
nights value. |
integer
(int32) |
HotelPromotion
|
Name |
Description |
Schema |
|
@IsActive |
Active
Status of a promotion. |
boolean |
|
BlackoutDateRange |
Blackout
date ranges of a promotion. |
|
|
BookOn |
Book on
days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
|
|
BookingTime |
Booking
time range condition of a promotion. |
|
|
CancellationPolicy |
Cancellation
policy of a promotion. |
|
|
Channels |
Channels
of a promotion. By default, the promotion will be applied to all channels. |
|
|
CheckinOn |
Check-in
on days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
|
|
CustomerSegments |
CustomerSegments
of a promotion. By default, the promotion will be applied to all customer
segments. |
|
|
Discount |
Discount
detail of a promotion. (required one of discount type as follows:
AmountPerBooking, AmountPerNight, PercentPerNight, FreeNights, and
ExpressTonight) |
|
|
EarlyBird |
For
EarlyBird promotion type only. |
|
|
IsStackable |
This
specifies if this promotion can be combined with other active promotions.
(e.g., if you have an existing active promotion of 20% and load this
promotion for 10%, the total discount will be 30%). It will also combine with
existing active stackable promotions. |
boolean |
|
LastMinute |
For
LastMinute promotion type only. |
|
|
LengthOfStay |
Length
of stay condition of a promotion. |
|
|
MinNoOfRooms |
Minimum
number of rooms condition of a promotion. (between 1 - 5) |
integer
(int32) |
|
Promotion |
Promotion
of a hotel. |
|
|
PromotionPerformance |
Promotion’s
Performance. |
|
|
RatePlans |
RatePlans
of a promotion. By default, the promotion will be applied to all rate plans. |
|
|
RoomIds |
Rooms
of a promotion. This specifies that the Agoda Rooms are applicable to the
promotion. By default, the promotion will be applied to all rooms. |
|
|
SaleDateRange |
Range
of promotion’s sale dates. |
|
|
StayDateRange |
Range
of promotion’s stay dates. |
|
|
StayOn |
Stay on
days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
HotelPromotionGet_RQ
|
Name |
Description |
Schema |
|
@HotelId |
Hotel
ID of Promotions. |
integer
(int32) |
|
@IsActive |
Active
status of a promotion. |
boolean |
|
@PromotionId |
Promotion’s
ID. |
integer
(int64) |
|
@Timestamp |
Request
unix timestamp |
integer
(int64) |
HotelPromotionGet_RS
|
Name |
Description |
Schema |
|
@Tuid |
TUID of
a promotion. |
string |
|
Errors |
A
collection of errors that occurred during the processing of a message. |
|
|
HotelPromotion |
Promotions
of a hotel. |
< HotelPromotion >
array |
|
Success |
Returning
an empty element of this type indicates the successful processing of a
message. |
HotelPromotionToggle_RQ
|
Name |
Description |
Schema |
|
@HotelId |
Hotel
ID of Promotions. |
integer
(int32) |
|
@IsActive |
Active
Status of a promotion. |
boolean |
|
@PromotionId |
Promotion’s
ID. |
integer
(int64) |
|
@Timestamp |
Request
unix timestamp |
integer
(int64) |
HotelPromotionToggle_RS
|
Name |
Description |
Schema |
|
@PromotionId |
ID of
toggled promotion. |
integer
(int32) |
|
@Tuid |
TUID of
toggled promotion. |
string |
|
Errors |
A
collection of errors that occurred during the processing of a message. |
|
|
Success |
Returning
an empty element of this type indicates the successful processing of a
message. |
HotelPromotion_RQ
|
Name |
Description |
Schema |
|
@Timestamp |
Request
unix timestamp |
integer
(int64) |
|
BlackoutDateRange |
Blackout
date ranges of a promotion. |
|
|
BookOn |
Book on
days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
|
|
BookingTime |
Booking
time range condition of a promotion. |
|
|
CancellationPolicy |
Cancellation
policy of a promotion. |
|
|
Channels |
Channels
of a promotion. By default, the promotion will be applied to all channels. |
|
|
CheckinOn |
Check-in
on days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
|
|
CustomerSegments |
CustomerSegments
of a promotion. By default, the promotion will be applied to all customer
segments. |
|
|
Discount |
Discount
detail of a promotion. (required one of discount type as follows:
AmountPerBooking, AmountPerNight, PercentPerNight, FreeNights, and
ExpressTonight) |
|
|
EarlyBird |
Required
for EarlyBird promotion type only. |
|
|
IsStackable |
This
specifies if this promotion can be combined with other active promotions.
(e.g., if you have an existing active promotion of 20% and load this
promotion for 10%, the total discount will be 30%). It will also combine with
existing active stackable promotions. (not applicable for Express Tonight
Promotion) |
boolean |
|
LastMinute |
Required
for LastMinute promotion type only. |
|
|
LengthOfStay |
Length
of stay condition of a promotion. |
|
|
MinNoOfRooms |
Minimum
number of rooms condition of a promotion. (between 1 - 5) |
integer
(int32) |
|
Promotion |
Promotion
of a hotel. |
|
|
RatePlans |
RatePlans
of a promotion. By default, the promotion will be applied to all rate plans. |
|
|
RoomIds |
Rooms
of a promotion. This specifies that the Agoda Rooms are applicable to the
promotion. By default, the promotion will be applied to all rooms. |
|
|
SaleDateRange |
Range
of promotion’s sale dates. |
|
|
StayDateRange |
Range
of promotion’s stay dates. |
|
|
StayOn |
Stay on
days of week condition of a promotion. The day will be applicable if
included. By default, every day of the week is applicable. |
HotelPromotion_RS
|
Name |
Description |
Schema |
|
@PromotionId |
ID of
created/updated promotion. |
integer
(int32) |
|
@Tuid |
TUID of
created/updated promotion. |
string |
|
Errors |
A
collection of errors that occurred during the processing of a message. |
|
|
Success |
Returning
an empty element of this type indicates the successful processing of a
message. |
LastMinute
|
Name |
Description |
Schema |
|
@MaxAdvPurchase |
Maximum
advance purchase day. |
integer
(int32) |
PercentPerNight
|
Name |
Description |
Schema |
|
@NightType |
Required
one of night types as follows: EveryNight, SpecificNight, SpecificDOW,
FirstNight, and LastNight. |
enum
(EVERY_NIGHT, SPECIFIC_NIGHT, SPECIFIC_DOW, FIRST_NIGHT, LAST_NIGHT) |
|
Value |
List of
percent per night value. (Between 0.0 - 90.0) |
<
number (double) > array |
Promotion
|
Name |
Description |
Schema |
|
@HotelId |
Hotel’s
ID. |
integer
(int32) |
|
@PromotionExternalId |
Promotion’s
external ID. |
string |
|
@PromotionId |
Internal
Agoda promotion’s ID. (required for update only) |
integer
(int32) |
|
@PromotionName |
Promotion’s
name. |
string |
|
@PromotionType |
Promotion’s
type. (required one of promotion types as follows: Customized, EarlyBird,
LastMinute, SeventyTwoHours, ExpressTonight, LongStay, and SpecialOffer) |
enum
(CUSTOMIZED, EARLY_BIRD, LAST_MINUTE, SEVENTY_TWO_HOURS, EXPRESS_TONIGHT,
LONG_STAY, SPECIAL_OFFER) |
PromotionPerformance
|
Name |
Description |
Schema |
|
@Bookings |
Number
of bookings via this promotion. |
integer
(int32) |
|
@NightsAvgPerBooking |
Nights
average per booking of this promotion. |
integer
(int32) |
|
@Revenue |
Revenue
of this promotion. |
number
(double) |
RangeType
|
Name |
Description |
Schema |
|
@Max |
Maximum
value. |
integer
(int32) |
|
@Min |
Minimum
value. |
integer
(int32) |
RatePlanType
|
Name |
Description |
Schema |
|
@Id |
Rate
Plan ID See: Get
list of rate plans |
integer
(int64) |
RatePlans
|
Name |
Description |
Schema |
|
RatePlan |
Rate
plan of a promotion. This specifies that this rate plan is applicable to the
promotion. |
< RatePlanType >
array |
RoomType
|
Name |
Description |
Schema |
|
@Id |
Room ID See: Get
list of rooms |
integer
(int64) |
Rooms
|
Name |
Description |
Schema |
|
Room |
Room of
a promotion. This specifies that this room is applicable to the promotion. |
< RoomType >
array |
SuccessType
Type : object
TimeRangeType
|
Name |
Description |
Schema |
|
@From |
Time
from. |
string |
|
@To |
Time
to. |
string |
WarningType
|
Name |
Description |
Schema |
|
@Code |
This
refers to a table of coded values exchanged between applications to identify
errors or warnings. Refer to OpenTravel Code List Error Codes (ERR). |
string |
|
@ShortText |
An
abbreviated version of the warning in textual format. |
string |
|
@Status |
Recommended
values are those enumerated in the OTA_ErrorRS, (NotProcessed | Incomplete |
Complete | Unknown) however, the data type is designated as string data,
recognizing that trading partners may identify additional status conditions
not included in the enumeration. |
string |
WarningsType
|
Name |
Description |
Schema |
|
Warning |
Optionally
used to indicate that the recipient of the request message identified one or
more business-level warnings. |
< WarningType >
array |
