Appendix

Response Codes

For response JSON root element or response object that have a ‘status’ field as an attribute will be identified the general response type from Agoda’s API servers.

Success Status

Status CodeStatus MeaningStatus Definition
200AcceptedRequest has been accepted and processed
202OkayRequest is queued up for processing
204No contentThe request does not return any valid data
206Partial contentThe request has been successfully processed and there is content returned but this is not the complete set / Asynchronous search
3023DS RedirectThis is a success response and sent in case of 3DS redirect

Search and Book Error Status

Status CodeStatus MeaningStatus Definition
400Bad RequestThe request could not be understood by the system, malformed syntax.
401UnauthorizedIf ApiKey not found or IP address restrictions violated
403ForbiddenYou have violated our terms of use and exceed the quota of requests
404FileNotFoundService or file not found.
429Too Many requestsThe user has sent too many requests in a given amount of time.
500Internal Server ErrorWe have encountered and unrecoverable problem in the processing of the API call
503Service UnavailableDue to maintenance is that either planned or ad-hoc, service is temporary unavailable
506PartialConfirmCannot process the entire request, need to contact customer service.

Precheck Error Status

Status CodeStatus MeaningStatus Definition
429Too Many requestsThe user has sent too many requests in a given amount of time.
501Price ChangeRoom has allotment still available but the rate has changed"
502Price Change with RecommendationThe room rate has changed but the other room has the rate match
503Room not AvailableRoom no longer has allotment
504Room not Available with RecommendationRoom no longer has allotment but the other room is still available

Retryable HTTP status codes for PostBooking APIs

HTTP status codesStatus Meaning
500Internal Server Error
429Too Many Requests / Rate Limit

Response Body

Success responses

In case you received a success response status, the response body will, if applicable for the request, contain the response object as defined in the conversation specification.

Error responses

In case you receive an error response, the response body will contain an "errorMessage" that identify as best as we can identify the exact problems or validation problems that we have encountered while processing your request.

{
    "status": "400",
    "errorMessage": {
        "id": "909",
        "subId": "7110",
        "message": "Sorry, there are no available rooms for your chosen dates"
    }
}
ErrorMessage idErrorMessage subidErrorMessageCategory
101
Site ID 0 is invalidAll
102

API key 0 is invalid

All
108

Site ID or API key is invalid or missing in the header

All
901

Authentication failed

All
906
Invalid request format:0All
907
Invalid data:0All
9091Internal errorAll
9092Sorry, there are no available rooms for your chosen dates.Booking
909100Technical ErrorBooking, Cancellation, Confirm Cancel
909101Invalid User IDBooking, Cancellation
909104Booking has been cancelledCancellation
909109Checkin date passedCancellation
909114Cancellation request is pendingCancellation
909115Booking is currently being processed by the systemCancellation
909116Invalid cancellation reason IDCancellation
909120Refund validation failureCancellation
909121Not be able to process temporarilyCancellation
909125Validation failed for input requestCancellation
909126Booking ID mismatched with Site IDCancellation
909128Booking can not be cancelledCancellation
909129Booking not foundConfirm Cancel
909130Booking Not EligibleConfirm Cancel
909131Whitelabel data not compatibleConfirm Cancel
909212Pre authorization failBooking
909219Invalid credit card informationBooking
909222Booking is non-refundable and non-amendableCancellation
909301Invalid booking requestBooking
909302Duplicated bookingBooking
909305Booking info is not completeBooking
909401CreditCard Type is requiredBooking
909402Invalid credit card numberBooking
909403Invalid credit card expire dateBooking
909404Invalid credit card security codeBooking
909405Invalid credit card holder nameBooking
909406Invalid credit card country of issueBooking
909407Invalid credit card of issue bankBooking
909409Invalid Card ClassBooking
909410Credit card expire date mismatchBooking
909411Credit card expire date wrong formatBooking
909412Credit card security code wrong formatBooking
909413Credit card number wrong digitBooking
909414Credit card are not AmexBooking
909415Credit card are not MasterCardBooking
909416Credit card are not VisaBooking
909417Credit card are not JCBBooking
909418Credit card number wrong formatBooking
909419Pre authorization failBooking
909420Invalid gateway idBooking
909421Invalid card statusBooking
909422Payment Currency is emptyBooking
909423Payment Amount mismatchBooking
909424Exchange rate or Uplift exchange rate or Site exchange rate is zeroBooking
909425Settlement FailedBooking
909426Invalid card holder phone numberBooking
909427Invalid Transaction IDBooking
909428Invalid Customer Identification CardBooking
909429Invalid One Time PasswordBooking
909430CC Id is less than zeroBooking
909431Invalid customer informationBooking
909432Invalid customer firstnameBooking
909433Invalid customer lastnameBooking
909434Invalid customer emailBooking
909435Invalid customer country idBooking
909436Invalid credit card typeBooking
909441Invalid guest informationBooking
909442Invalid guest primaryBooking
909444Invalid guest firstnameBooking
909445Invalid guest lastnameBooking
909446Guest are duplicatedBooking
909447Guest nationality restrictionBooking
909448Guest nationality restriction by hotelBooking
909449Invalid guest nationality idBooking
909451Invalid hotel informationBooking
909452Invalid check in informationBooking
909453Invalid check out informationBooking
909454Invalid Hotel IDBooking
909455Invalid DMC IDBooking
909456Invalid Booking PeriodBooking
909457No of adults or No of childrens mismatchBooking
909461Invalid room informationBooking
909462Invalid room no in chargeBooking
909463Invalid room type nameBooking
909464Room no mismatchBooking
909471Invalid charge informationBooking
909473Invalid booking amountBooking
909521Invalid Expiry YearBooking
909522Invalid Expiry MonthBooking
909523Required CCId or CardNumberBooking
909524Invalid Card Number FormatBooking
909525Invalid Card ExpiryBooking
909601Invalid cancellation policy codeBooking
909602Get fully charge date errorBooking
909603Credit card expire before fully charge dateBooking
909604Book now pay later not support BE3Booking
909605Book now pay later not support agency bookingBooking
909606Book now pay later not support B2BBooking
909607Book now pay later not support multiple bookingsBooking
909608Book now pay later not support redirect cardBooking
909609Book now pay later not support debit cardBooking
909610Book now pay later not support this payment methodBooking
909611Technical error while validate BNPLBooking
909612Book now pay later not support Carte BleueBooking
909613Booking date or amendment date is invalidBooking
909614Booking date or amendment date passed book now pay later periodBooking
909615Invalid fully charge dateBooking
909616This booking is not support pay laterBooking
909617Booking is non-refundable.Booking
909618Invalid fully auth dateBooking
909619This function is not available.Booking
909703Invalid guest first name format.Booking
909706Customer firstname must be English only.Booking
909707Customer lastname must be English only.Booking
909708Require customer email.Booking
909709Invalid customer email format.Booking
909710Require customer phoneno.Booking
909711Reward Saving Amount is not greater than payment amount.Booking
909712Exchange rate must greater than 0.Booking
909713The currency is not offered.Booking
909714Incorrect RoundingBooking
909715Invalid Phone No format.Booking
909720The creditcard type is not enable for this language.Booking
909721Country is restricted.Booking
909724Hotel is in restricted country.Booking
909725Nationality is restricted.Booking
909726First name cannot be blank or white spaceBooking
909727Invalid guest last name format.Booking
909728Last name cannot be blank or white spaceBooking
909729YCS Rate Plan is required.Booking
9097110Sorry, there are no available rooms for your chosen dates.Booking
909419Preauthorize FailBooking
90911212Sorry, booking was not confirmed, process timeoutBooking
911
No search resultSearch
912
Search ID 0 has expired

Booking

913
Service Unavailable: API Key SuspendedSearch and Booking
914
Invalid data: 0Booking, Cancellation
917

Invalid currency request

Search
919

Wrong rate configuration

Search
920

BNPL Invalid: Booking room with BNPL support but no have BNPL in search

Booking
926

Too many requests

Search and Content
940

Room price has changed

Booking

Language

The list of valid languages Agoda supports which use to communicate with us are:
Note: If available, otherwise defaulting to en-us

Language IDLanguage CodeLanguage Definition
1en-usEnglish
2fr-frFrench
3de-deGerman
4it-itItalian
5es-esSpanish
6ja-jpJapanese
7zh-hkT.Chinese / Hongkong
8zh-cnS.Chinese / Mainland
9ko-krKorean
10el-grGreek
11ru-ruRussian
12pt-ptPortugese
13nl-nlDutch, Belgium
14en-caEnglish / Canada
15en-inEnglish / India
16en-gbEnglish / United Kingdom
17en-zaEnglish / South-Africa
18en-auEnglish / Australia
19en-sgEnglish / Singapore
20zh-twT. Chinese / Taiwan
21en-nzEnglish / New Zealand
22th-thThai
23ms-myMalay
24vi-vnVietnamese
25sv-seSwedish
26id-idIndonesian
27pl-plPolish
28nb-noNorwegian
29da-dkDanish
30fi-fiFinnish
31cs-czCzech
32tr-trTurkish
33ca-esCatalan
34hu-huHungarian
36bg-bgBulgarian
37ro-roRomanian
38sl-siSlovenian
39he-ilHebrew
40ar-aeArabic
41nl-beDutch / Belgium
42en-ieEnglish / Ireland
43pt-brPortuguese / Brazil
44es-arpanish / Argentina
45es-mxSpanish / Mexico
46lt-ltLithuanian
47lv-lvLatvian
48hr-hrCroatian
49et-eeEstonian
50uk-uaUkrainian
51tl-phFilipino

Currency

The list of valid currencies Agoda supports which you use to communicate with us are:

Currency CodeCurrency Definition
EUREuro
GBPBritish Pound
HKDHong Kong Dollar
MYRMalaysian Ringgit
SGDSingapore Dollar
THBThai Baht
USDUS Dollar
NZDNew Zealand Dollar
AUDAustralian Dollar
JPYJapanese Yen
ZARSouth African Rand
CADCanadian Dollar
AEDArab Emirates Dirham
CNYChinese Yuan
PHPPhilippine Peso
CHFSwiss Franc
DKKDanish Krone
SEKSwedish Krona
CZKCzech Koruna
PLNPolish Zloty
IDRIndonesian Rupiah
KRWKorean Won
INRIndian Rupee
TWDTaiwan Dollar
NOKNorwegian Krone
OMROmani Rial
FJDFiji Dollar
BHDBahrain Dinar
XPFCFP Franc
VNDVietnamese Dong
HUFHungarian Forint
UAHUkrainian Grivna
JODJordanian Dinar
KWDKuwaiti Dinar
MXNMexican Peso
NGNNigerian Naira
ILSNew Israeli Sheqel
PKRPakistan Rupee
QARQatari Rial
RUBRussian Ruble
SARSaudi Riyal
KZTKazakh Tenge
TRYTurkish Lira
BGNBulgarian Lev
RONRomanian Leu
KHRCambodian Riel
LAKLaotian Kip
LKRSri Lankan Rupee
MVRMaldivian Rufiyaa
EGPEgyptian Pounds
BRLBrazilian Real
AFNAfghan Afghani
COPColombian Peso
BDTBangladeshi Taka

Accepted currencies per payment card

The following table lists the valid currencies per payment card.

Card typeAccepted Currency
VisaAED,AUD,BAM,BDT,BGN,BHD,BOB,BYR,CAD,CHF,CLP,CNY,COP,CYP,CZK,DKK,DZD,EEK,EGP,EUR,FJD,GBP,HKD,HUF,IDR,ILS,INR,IRR,ISK,JOD,JPY,KES,KRW,KWD,KZT,LAK,LBP,LKR,LTL,LVL,LYD,MAD,MNT,MOP,MRO,MTL,MXN,MYR,NAD,NGN,NOK,NPR,NZD,OMR,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,SAR,SCR,SEK,SGD,THB,TND,TRY,TWD,TZS,UAH,USD,UYU,VND,VUV,XPF,ZAR
MasterCardAED,AUD,BAM,BDT,BGN,BHD,BOB,BYR,CAD,CHF,CLP,CNY,COP,CYP,CZK,DKK,DZD,EEK,EGP,EUR,FJD,GBP,HKD,HUF,IDR,ILS,INR,IRR,ISK,JOD,JPY,KES,KRW,KWD,KZT,LAK,LBP,LKR,LTL,LVL,LYD,MAD,MNT,MOP,MRO,MTL,MXN,MYR,NAD,NGN,NOK,NPR,NZD,OMR,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,SAR,SCR,SEK,SGD,THB,TND,TRY,TWD,TZS,UAH,USD,UYU,VND,VUV,XPF,ZAR
JCBAUD,BHD,CNY,EUR,GBP,HKD,IDR,JPY,KRW,MYR,PHP,SGD,THB,TWD,USD,VND,INR
American ExpressAED,AUD,BAM,BGN,BHD,CHF,CNY,CZK,DKK,EGP,EUR,GBP,HKD,HRK,HUF,ILS,ISK,JPY,JOD,KES,KRW,KWD,KZT,LBP,MUR,MYR,NOK,NZD,OMR,PKR,PLN,QAR,RON,SAR,SEK,SGD,THB,TND,TRY,TWD,UAH,USD,IDR,CAD,PHP,VND,INR
DinersSGD,JPY,USD,KRW,TWD,PHP
UnionPay - Debit CardCNY,IDR,KHR,MYR,SGD,KRW,AUD,CAD,JPY,LAK,PKR,PHP,VND,USD
DiscoverSGD,JPY,USD,KRW,TWD,PHP
ShinhanKRW
UnionPay - CreditcardCNY,KHR,HKD,MOP,IDR,MYR,SGD,KRW,THB,AUD,CAD,JPY,LAK,PKR,PHP,VND,USD
Samsung CardKRW
NH CardKRW
Lotte CardKRW
KB CardKRW
Hyundai CardKRW
Hana CardKRW
BC CardKRW
EftposAUD

Note: Discover card is not available for all partners. Please get confirmation from Agoda

Country

The list of valid countries Agoda supports which you use to communicate with us are:

Country CodeCountry Name
ADAndorra
AEUnited Arab Emirates
AFAfghanistan
AGAntigua & Barbuda
AIAnguilla
ALAlbania
AMArmenia
AOAngola
ARArgentina
ASAmerican Samoa
ATAustria
AUAustralia
AWAruba
AZAzerbaijan
BABosnia Herzegovina
BBBarbados
BDBangladesh
BEBelgium
BFBurkina Faso
BGBulgaria
BHBahrain
BIBurundi
BJBenin
BLSaint Barthelemy
BMBermuda
BNBrunei Darussalam
BOBolivia
BQBonaire Sint Eustatius and Saba
BRBrazil
BSBahamas
BTBhutan
BVBouvet Island
BWBotswana
BYBelarus
BZBelize
CACanada
CCCocos (Keeling) Islands
CDCongo, Democratic Republic of the
CFCentral African Republic
CGCongo
CHSwitzerland
CICote D’ivoire
CKCook Islands
CLChile
CMCameroon
CNChina
COColombia
CRCosta Rica
CVCape Verde
CWCuracao
CXChristmas Island
CYCyprus
CZCzech Republic
DEGermany
DJDjibouti
DKDenmark
DMDominica
DODominican Republic
DZAlgeria
ECEcuador
EEEstonia
EGEgypt
EHWestern Sahara
EREritrea
ESSpain
ETEthiopia
FIFinland
FJFiji
FKFalkland Islands
FMMicronesia
FOFaroe Islands
FRFrance
GAGabon
GBUnited Kingdom
GDGrenada
GEGeorgia
GFFrench Guiana
GHGhana
GIGibraltar
GLGreenland
GMGambia
GNGuinea Republic
GPGuadeloupe
GQEquatorial Guinea
GRGreece
GSSouth Georgia Islands
GTGuatemala
GUGuam
GWGuinea-Bissau
GYGuyana
HKHong Kong
HNHonduras
HRCroatia
HTHaiti
HUHungary
IDIndonesia
IEIreland
ILIsrael
INIndia
IOBritish Indian Ocean Territory
IQIraq
ISIceland
ITItaly
JMJamaica
JOJordan
JPJapan
KEKenya
KGKyrgyzstan
KHCambodia
KIKiribati
KMComoros
KNSaint Kitts And Nevis
KRSouth Korea
KWKuwait
KYCayman Islands
KZKazakhstan
LALaos
LBLebanon
LCSaint Lucia
LILiechtenstein
LKSri Lanka
LRLiberia
LSLesotho
LTLithuania
LULuxembourg
LVLatvia
LYLibya
MAMorocco
MCMonaco
MDMoldova
MEMontenegro
MFSaint Martin (France)
MGMadagascar
MHMarshall Islands
MKMacedonia
MLMali
MMMyanmar
MNMongolia
MOMacau
MPNorthern Mariana Islands
MQMartinique
MRMauritania
MSMontserrat
MTMalta
MUMauritius
MVMaldives
MWMalawi
MXMexico
MYMalaysia
MZMozambique
NANamibia
NCNew Caledonia
NENiger
NFNorfolk Island
NGNigeria
NINicaragua
NLNetherlands
NONorway
NPNepal
NRNauru
NUNiue
NZNew Zealand
OMOman
PAPanama
PEPeru
PFFrench Polynesia
PGPapua New Guinea
PHPhilippines
PKPakistan
PLPoland
PMSaint Pierre and Miquelon
PNPitcairn Islands
PRPuerto Rico
PSPalestinian Territory
PTPortugal
PWPalau
PYParaguay
QAQatar
REReunion Island
RORomania
RSSerbia
RURussia
RWRwanda
SASaudi Arabia
SBSolomon Islands
SCSeychelles
SESweden
SGSingapore
SHSaint Helena
SISlovenia
SKSlovakia
SLSierra Leone
SMSan Marino
SNSenegal
SOSomalia
SRSuriname
SSSouth Sudan
STSao Tome and Principe
SVEl Salvador
SXSint Maarten ( Netherlands)
SZSwaziland
TCTurks & Caicos Islands
TDChad
TFFrench Southern and Antarctic Lands
TGTogo
THThailand
TJTajikistan
TKTokelau
TLTimor-Leste
TMTurkmenistan
TNTunisia
TOTonga
TRTurkey
TTTrinidad & Tobago
TVTuvalu
TWTaiwan
TZTanzania
UAUkraine
UGUganda
USUnited States
UYUruguay
UZUzbekistan
VAVatican
VCSt. Vincent & Grenadines
VEVenezuela
VGVirgin Islands (British)
VIVirgin Islands (U.S.)
VNVietnam
VUVanuatu
WFWallis and Futuna
WSSamoa
XKKosovo
YEYemen
YTMayotte
ZASouth Africa
ZMZambia
ZWZimbabwe

Fee Waiver Status

The list of valid Fee Waiver status Agoda supports which you use to communicate with us are:

Fee Waiver StatusDescription

Pending

Fee waiver is waiting for a response from the hotel

Accept

Fee waiver accepted by the hotel

Reject

Fee waiver rejected by the hotel

Cancelled

Booking has been cancelled

Timeout

We didn't get any response for Fee waiver request from hotel and time is over.


Fee Waiver Reason

The list of valid Fee Waiver reason Agoda supports which you use to communicate with us are:

Fee Waiver Reason number

Description

1

FoundDifferentAccommodationOption

2

ChangeNumberOfTravelers

3

TripCalledOff

4

Covid19

5

ChangeDateOrDestination

6

BookOnSameDate

7

Other



Did this page help you?