SSR
POST
/json/ssr
Request
Body Params application/json
authentication
object (Authentication)
optional
partnerId
string
optional
Example:
y1hYW6AQv4QcCs95wsuMNSzHwc
sign
string
optional
Example:
0d83b8d315788029b979d10b67192b3
pricing
object (AncillaryPricing)
optional
journeys
object (MapListAgodaJourney)
optional
children
string
optional
Example:
2
adults
string
optional
Example:
2
ancillary
array[string]
optional
solutionId
string
optional
Example
{
"authentication": {
"partnerId": "y1hYW6AQv4QcCs95wsuMNSzHwc",
"sign": "0d83b8d315788029b979d10b67192b3"
},
"pricing": {
"journeys": {
"key": [
{
"airline": "AA",
"flightNum": "100",
"arrival": "JFK",
"arrivalDate": "2023-04-01",
"arrivalTime": "14:00",
"departure": "LAX",
"departureDate": "2023-04-01",
"departureTime": "12:00",
"bookingCode": "Y",
"segmentKey": "SEG123"
}
]
},
"children": "2",
"adults": "2",
"ancillary": [
"string"
],
"solutionId": "string"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/json/ssr' \
--header 'Content-Type: application/json' \
--data-raw '{
"authentication": {
"partnerId": "y1hYW6AQv4QcCs95wsuMNSzHwc",
"sign": "0d83b8d315788029b979d10b67192b3"
},
"pricing": {
"journeys": {
"key": [
{
"airline": "AA",
"flightNum": "100",
"arrival": "JFK",
"arrivalDate": "2023-04-01",
"arrivalTime": "14:00",
"departure": "LAX",
"departureDate": "2023-04-01",
"departureTime": "12:00",
"bookingCode": "Y",
"segmentKey": "SEG123"
}
]
},
"children": "2",
"adults": "2",
"ancillary": [
"string"
],
"solutionId": "string"
}
}'
Responses
🟢200Success
application/json
Body
java.lang.Object
errorCode
string
required
errorMsg
string
required
data
array [object {2}]
required
ancillaryType
integer
required
ancillary
object
required
Examples
{ "errorCode": "0", "errorMsg": "ok", "data": [ { "ancillaryType": 2, "ancillary": { "journeys": [ { "airline": "FD", "flightNum": "324", "arrival": "DMK", "arrivalDate": "2025-02-28", "arrivalTime": "15:05", "departure": "PEN", "departureDate": "2025-02-28", "departureTime": "14:15", "bookingCode": null, "segmentKey": "27c6f02a2ea54b2b93be623258eb796b" } ], "ancillaries": { "seat": [ { "ancillaryKey": null, "ancillaryType": 0, "ancillaryJourneys": null, "baggagePiece": 0, "payBaggageType": 0, "baggageWeight": null, "baggageCurrency": null, "baggagePrice": 0, "description": null, "segmentKey": "27c6f02a2ea54b2b93be623258eb796b", "seatMaps": [ { "ancillaryKey": "cQWjzN4ohrH4wJtEvLpQgLLSnhiOxO5uM7Qvx/TFya8=", "ancillaryType": 2, "seatName": "A1", "column": "A", "row": "1", "deck": 1, "available": true, "seatCurrency": "MYR", "seatPrice": 81, "characteristics": [ "window" ] }, { "ancillaryKey": "cQWjzN4ohrH4wJtEvLpQgAOeZQEVLfCIcTRnTypIVSM=", "ancillaryType": 2, "seatName": "A2", "column": "A", "row": "2", "deck": 1, "available": true, "seatCurrency": "MYR", "seatPrice": 66, "characteristics": [ "window" ] }, { "ancillaryKey": "cQWjzN4ohrH4wJtEvLpQgP8TJ3QP2yAVttskIeM6gJw=", "ancillaryType": 2, "seatName": "A3", "column": "A", "row": "3", "deck": 1, "available": true, "seatCurrency": "MYR", "seatPrice": 66, "characteristics": [ "window" ] }, { "ancillaryKey": "cQWjzN4ohrH4wJtEvLpQgJkwn3fC2gnwUc2DnGSBiLc=", "ancillaryType": 2, "seatName": "A4", "column": "A", "row": "4", "deck": 1, "available": true, "seatCurrency": "MYR", "seatPrice": 66, "characteristics": [ "window" ] }, { "ancillaryKey": "cQWjzN4ohrH4wJtEvLpQgKDToVPtDs349RBOt7wj/FA=", "ancillaryType": 2, "seatName": "A5", "column": "A", "row": "5", "deck": 1, "available": true, "seatCurrency": "MYR", "seatPrice": 66, "characteristics": [ "window"
Modified at 2025-02-13 14:00:53