Skip to content

Instantly share code, notes, and snippets.

@leszarna
Last active March 20, 2019 11:38
Show Gist options
  • Save leszarna/feae9f4c84a2c68c18956ee5aa3d9ef7 to your computer and use it in GitHub Desktop.
Save leszarna/feae9f4c84a2c68c18956ee5aa3d9ef7 to your computer and use it in GitHub Desktop.
Dynamic Pricing Request
{
"query": {
"od_pairs": [
{
"origin": {
"airports": [
"SFO"
],
"date": "2019-08-30"
},
"destination": {
"airports": [
"JFK"
]
}
}
],
"travelers": [
{
"type": "ADT",
"frequent_flyer": [
{
"airline": "B6",
"number": "1234567",
"program_id": "p_id",
"tier_status": "basic"
}
]
},
{
"type": "ADT"
}
]
},
"info": {
"business": true,
"account_code": "acc_code123",
"channel": {
"id": 35,
"agent_code": 98417900,
"selling_country": "us"
},
"user": {
"locale": "es_US",
"currency": "USD"
},
"device": {
"locale": "en_US"
}
},
"itineraries": {
"legs": [
{
"id": "SFOJFK_B616_2019-08-30",
"flight": "B616",
"departure": {
"airport": "SFO",
"time": "2019-08-30T06:40"
},
"destination": {
"airport": "JFK",
"time": "2019-08-30T15:26"
}
},
{
"id": "SFOJFK_B6416_2019-08-30",
"flight": "B6416",
"departure": {
"airport": "SFO",
"time": "2019-08-30T11:18"
},
"destination": {
"airport": "JFK",
"time": "2019-08-30T20:16"
}
},
{
"id": "SFOJFK_B6516_2019-08-30",
"flight": "B6516",
"departure": {
"airport": "SFO",
"time": "2019-08-30T12:47"
},
"destination": {
"airport": "JFK",
"time": "2019-08-30T21:40"
}
}
],
"od_pairs": [
[
{
"id": "a16667dd-ab48-436d-9530-ae457cfc6f0a",
"origin": "SFO",
"destination": "JFK",
"leg_refs": [
"SFOJFK_B616_2019-08-30"
],
"services": [
{
"id": "SFOJFK_B616_2019-08-30_Y",
"type": "FLIGHT",
"cabin_class": "Y",
"leg_id": "SFOJFK_B616_2019-08-30"
}
]
},
{
"id": "e87a1b66-a815-4674-a7fd-2a41ab862c7e",
"origin": "SFO",
"destination": "JFK",
"leg_refs": [
"SFOJFK_B6416_2019-08-30"
],
"services": [
{
"id": "SFOJFK_B6416_2019-08-30_Y",
"type": "FLIGHT",
"cabin_class": "Y",
"leg_id": "SFOJFK_B6416_2019-08-30"
}
]
},
{
"id": "b47fb438-5f7a-437e-b936-bf5ba68775aa",
"origin": "SFO",
"destination": "JFK",
"leg_refs": [
"SFOJFK_B6516_2019-08-30"
],
"services": [
{
"id": "SFOJFK_B6516_2019-08-30_Y",
"type": "FLIGHT",
"cabin_class": "Y",
"leg_id": "SFOJFK_B6516_2019-08-30"
}
]
}
]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment