anixe travel itinerary exchange Json format

Hotel + Supplements

{
"ref_anixe" : "PNR0AB",
"ref_castor" : "56001153",               //booking reference in Castor anixe booking management system
"ref_customer" : "Customer",             //Customer reference
"contract" : "test.Test",                //Path to contract
"request_id" : "111"
"agency" : "141249",
"user" : "userName", 
"product" : "HOTEL",                     //HOTEL|DPK|AIR
"status" : "pre_book",
"date_booked" : "2011-01-26T08:54:51Z",  //all date-time values must be passed in ZULU-time (GMT)
"language_code" : "pl",
"remote_ip" : "251.25.6.85",
"server_ip" : "127.0.0.1",  //server ip on which json was created
"description" : "Howard Johnson Enchanted Land, Orlando, MCO, TOURICO",  //hotel name, city, city_code, provider
"price" : [{
    "type" : "Consumer",
    "currency" : "EUR",
    "value" : 967.00,
    "net" : 887.00,
    "markups" : [
        {
            "name" : "YIELD1",
            "value" : 39.68 
        },
        {
            "name" : "YIELD2",
            "value" : 40.32 
        } 
    ]
}],
"billing" : {
    "first" : "Sebastian",
    "last" : "Styka",
    "street" : "Test",
    "postal" : "1345",
    "city" : "Test",
    "country_code" : "PL",
    "email" : "ss@anixe.pl",
    "phone" : "3456789",
    "state" : "ds",                  //required for USA and Canada
    "vat_number" : "123456-123-123", //VAT payer identification number, required in Romania
    "tax_id" : "225369",             //tax payer identification number, requried for invoice
    "company" : "anixe" 
},
"passengers" : [
    {
        "num" : 1,
        "first" : "Sebastian",
        "last" : "Styka",
        "title" : "MR",
        "type" : "ADT"
    },
    {
        "num" : 2,
        "first" : "Kasia",
        "last" : "Laska",
        "title" : "MRS",
        "type" : "ADT"
    },
    {
        "num" : 3,
        "first" : "Mala",
        "last" : "Niunia",
        "type" : "CHD",
        "age" : 5
    },
    {
        "num" : 4,
        "first" : "Asia",
        "last" : "Zapas",
        "title" : "MRS",
        "type" : "ADT"
    } 
],
"services" : [
    {
        "num" : 1,
        "ref_provider" : "7987346ab",
        "product" : "HOTEL",
        "provider" : "TOURICO",
        "booking_message" : "transaction: 123456, status: OK",
        "date_from" : "2011-04-20T00:00:00Z",
        "date_to" : "2011-04-23T00:00:00Z",
        "hotel" : {
            "name" : "Howard Johnson Enchanted Land",
            "category" : 2,
            "mh" : "MC000001",       //master hotel code  
            "pid" : 277733,
            "provider_code" : "1934",
            "provider_city_code" : "MCO",
            "country_code" : "US",
            "city" : "Orlando",
            "location" : "Maingate East",
            "geo" : [
                28.3337634662645,
                -81.4823073148728 
            ],
            "address" : [
                "4985 West Highway 192",
                "34746 Kissimmee"
            ],
            "phone": "34-91-7445000",
            "images": [
                {
                    "label" : "THUMBNAIL",
                    "url" : "http://image1.urlforimages.com/1934/FitnessCJS.jpg",
                    "description" : "Desc",
                    "description_code" : "GEN"
                } 
            ],
            "descriptions": [
                {
                    "section" : "Hotel facilities",
                    "text" : "Wheel Chair Access, Pool Bar, Restaurant(s), Cafe, Bar/Lounge, Parking, Jacuzzi, Non Smoking Rooms, Laundry/Valet, Outdoor Pool, Picnic Area"
                },
                {
                    "section" : "Room facilities",
                    "text" : "Air Condition, Cable/Satellite TV, Hairdryer, Iron and Ironing Board, Telephone + Voice Mail, Clock-Radio, Private Bath, In Room Safe, Coffee/Tea Making Facilities"
                },
                {
                    "section" : "General",
                    "text" : "General DescriptionAccessible to many local attractionsClose proximity to shopping districtDesigned to meet families needsIdeal accommodations for a vacation getawayClose proximity to major     attractionsRecreationHeated swimming poolRelaxing spa/hot tubFully equipped fitness centerKidsKids activitiesTailor-made fun for kids of all ages means your children receive extra attention when staying at Howard Johnson Enchanted LandRestaurants and LoungesOnsite restaurantCoffee Shop on propertyPoolside snack bar availableNearby restaurantServices24 hr front desk serviceBusiness services available at front deskValet dry cleaning and laundry servicesMeeting FacilitiesFully equipped business centerAccommodation158 guestroomsComfortable roomsParkingOn site parking availablePoliciesThere is a resort fee payable by the guestNote: All guests are required to present a credit card or a cash deposit for the convenience fee and any incidentals charges"
                },
                {
                    "section" : "Short description",
                    "text" : "Families and friends can gather and enjoy amazing views, many attractions and superior service at  Howard Johnson Enchanted Land"
                } 
            ],
            "facilities": {
                "ac" : 0,
                "parking" : 1,
                "pool_in" : 1,
                "pool_out" : 1,
                "spa" : 0,
                "wlan" : 0 
            },
        },
        "segments" : [
            {
                "num" : 1,
                "mhr" : "MC00000101",                          // master hotel rate code
                "room_occupancy" : "DR",
                "room_description" : "Standard",               // description as provided by the supplier
                "meal_type" : "BB",
                "meal_description" : "Continental Breakfast",  // description as provided by the supplier
                "package_only": false,  // true if segment must be sold as package only, otherwise false
                "prices" : [ 
                             {
                               "type" : "NetNet",
                               "currency" : "USD",
                               "value" : 100.00,
                               "net" : 100.00,
                               "markups" : [ ]
                             },
                             {
                               "type" : "Reseller",
                               "currency" : "EUR",
                               "value" : 86.00,
                               "net" : 86.00,
                               "markups" : [ ]
                             },
                             {
                               "type" : "Consumer",
                               "currency" : "EUR",
                               "value" : 126.00,
                               "net" : 86.00,
                               "markups: [
                                          {
                                            "name" : "YIELD1",
                                            "value" : 19.84
                                          },
                                          {
                                            "name" : "YIELD2",
                                            "value" : 20.16
                                          }
                                        ]
                             }
                           ],
                "passenger_refs" : [
                    1,
                    2,
                    3 
                ]
            },
            {
                "num" : 2,
                "mhr" : "MC00000101",                          // master hotel rate code
                "room_occupancy" : "SR",
                "room_description" : "Standard",
                "meal_type" : "SC",
                "package_only": false,
                "prices" : [ 
                             {
                               "type" : "NetNet",
                               "currency" : "USD",
                               "value" : 100.00,
                               "net" : 100.00,
                               "markups" : [ ]
                             },
                             {
                               "type" : "Reseller",
                               "currency" : "EUR",
                               "value" : 86.00,
                               "net" : 86.00,
                               "markups" : [ ]
                             },
                             {
                               "type" : "Consumer",
                               "currency" : "EUR",
                               "value" : 126.00,
                               "net" : 86.00,
                               "markups: [
                                          {
                                            "name" : "YIELD1",
                                            "value" : 19.84
                                          },
                                          {
                                            "name" : "YIELD2",
                                            "value" : 20.16
                                          }
                                        ]
                             }
                           ],
                "passenger_refs" : [
                    4 
                ]
            } 
        ],
        "specials": {
            "promoted" : 1,
            "recommended" : 1,
            "discount" : 0 
        },
        "remarks" : [
            {
                 "text": "Meal is not included for the child and should be purchased directly from the hotel."
            }
        ],
        "passenger_refs" : [
            1,
            2,
            3,
            4 
        ]
    },
    {
        "num" : 2,
        "depends_on" : 1,
        "ref_provider" : "7987346ab",
        "product" : "SUPPLEMENTS",
        "provider" : "TOURICO",
        "booking_message" : "transaction: 123456, status: OK",
        "segments" : [
            {
                "num" : 1,
                "name" : "Resort Fee",
                "charge_type" : "Addition",
                "paid_per" : "Room",
                "id" : "5",
                "mandatory" : 1,
                "price" : {
                    "type" : "NETNET",
                    "currency" : "EUR",
                    "value" : 22.00,
                    "net" : 15.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 3.48 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 3.52 
                        } 
                    ]
                },
                "passenger_refs" : [
                    1,
                    2,
                    3 
                ]
            },
            {
                "num" : 2,
                "name" : "Private Transfer MCO to/from Disney Resort Area",
                "charge_type" : "Addition",
                "paid_per" : "Room",
                "id" : "1000069",
                "mandatory" : 0,
                "price" : {
                    "type" : "RESELLER",
                    "currency" : "EUR",
                    "value" : 100.00,
                    "net" : 68.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 16.00 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 16.00 
                        } 
                    ]
                },
                "passenger_refs" : [
                    1,
                    2,
                    3 
                ]
            },
            {
                "num" : 3,
                "name" : "Mauiva - Orlando Flight Sightseeing ",
                "charge_type" : "Addition",
                "paid_per" : "Pax",
                "id" : "1000065",
                "mandatory" : 0,
                "price" : {
                    "type" : "CONSUMER",
                    "currency" : "EUR",
                    "value" : 234.00,
                    "net" : 160.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 36.56 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 37.44 
                        } 
                    ]
                },
                "passenger_refs" : [
                    1,
                    2 
                ]
            },
            {
                "num" : 4,
                "name" : "Arabian Nights Dinner Show",
                "charge_type" : "Addition",
                "paid_per" : "Pax",
                "id" : "1000067",
                "mandatory" : 0,
                "price" : {
                    "type" : "UNDEFINIED",
                    "currency" : "EUR",
                    "value" : 120.00,
                    "net" : 81.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 19.80 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 19.20 
                        } 
                    ]
                },
                "passenger_refs" : [
                    1,
                    2,
                    3 
                ]
            },
            {
                "num" : 5,
                "name" : "Resort Fee",
                "charge_type" : "Addition",
                "paid_per" : "Room",
                "id" : "5",
                "mandatory" : 1,
                "price" : {
                    "type" : "UNDEFINIED",
                    "currency" : "EUR",
                    "value" : 22.00,
                    "net" : 15.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 3.48 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 3.52 
                        } 
                    ]
                },
                "passenger_refs" : [
                    4 
                ]
            },
            {
                "num" : 6,
                "name" : "Private Transfer MCO to/from Disney Resort Area",
                "charge_type" : "Addition",
                "paid_per" : "Room",
                "id" : "1000069",
                "mandatory" : 0,
                "price" : {
                    "type" : "UNDEFINIED",
                    "currency" : "EUR",
                    "value" : 100.00,
                    "net" : 68.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 16.00 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 16.00 
                        } 
                    ]
                },
                "passenger_refs" : [
                    4 
                ]
            },
            {
                "num" : 7,
                "name" : "Mauiva - Orlando Flight Sightseeing ",
                "charge_type" : "Addition",
                "paid_per" : "Pax",
                "id" : "1000065",
                "mandatory" : 0,
                "price" : {
                    "type" : "UNDEFINIED",
                    "currency" : "EUR",
                    "value" : 117.00,
                    "net" : 80.00,
                    "markups" : [
                        {
                            "name" : "YIELD1",
                            "value" : 18.28 
                        },
                        {
                            "name" : "YIELD2",
                            "value" : 18.72 
                        } 
                    ]
                },
                "passenger_refs" : [
                    4 
                ]
            } 
        ]
    } 
],
"payment" : {
    "id" : "4325",
    "fop" : "CC",
    "credit_card" : {
        "issuer" : "VI",
        "number" : "WHzkKOxKaVLPhX1u4M9J+s9aRptnBa9TaGvimR4CwWKjMWJCEuCE+quYpoj0wJMlPkFyxcz/yqjT22XdYN6U4oBCTsJNlhurygbPAR/lQG3Mf5nNoci6fi0WK9aVSvFLif38U9SD36sx9vZ03xSDScljPDVY+30ZW5tB2pw42b4=",
        "valid_to" : "2012/12",
        "security_type" : "Encrypted",
        "owner" : "styka sebastian"
    },
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},
"cancellation_fees" : [
    {
        "type" : "CONSUMER",
        "value" : 43.00,
        "currency" : "EUR",
        "days_before_from" : 2,
        "days_before_to" : 3,
        "service_type" : "DR", 
        "markups" : [
            {
                "name" : "YIELD1",
                "value" : 39.68 
            },
            {
                "name" : "YIELD2",
                "value" : 40.32 
            } 
        ]
    },
    {
        "value" : 126.00,
        "currency" : "EUR",
        "days_before_from" : 0,
        "days_before_to" : 1,
        "service_type" : "DR" 
    },
    {
        "type" : "CONSUMER",
        "value" : 43.00,
        "currency" : "EUR",
        "days_before_from" : 2,
        "days_before_to" : 3,
        "service_type" : "SR", 
        "markups" : [
            {
                "name" : "YIELD1",
                "value" : 39.68 
            },
            {
                "name" : "YIELD2",
                "value" : 40.32 
            } 
        ] 
    },
    {
        "type" : "CONSUMER",
        "value" : 126.00,
        "currency" : "EUR",
        "days_before_from" : 0,
        "days_before_to" : 1,
        "service_type" : "SR", 
        "markups" : [
            {
                "name" : "YIELD1",
                "value" : 39.68 
            },
            {
                "name" : "YIELD2",
                "value" : 40.32 
            } 
        ] 
    },
    {
        "type" : "CONSUMER",
        "value" : 0.00,
        "days_before_from" : 0,
        "days_before_to" : 0,
        "service_type" : "SUPPLEMENT", 
        "markups" : [
            {
                "name" : "YIELD1",
                "value" : 39.68 
            },
            {
                "name" : "YIELD2",
                "value" : 40.32 
            } 
        ] 
    },
    {
        "type" : "RESELLER",
        "value" : 43.00,
        "currency" : "EUR",
        "days_before_from" : 2,
        "days_before_to" : 3,
        "service_type" : "SR" 
    },
    {
        "type" : "RESELLER",
        "value" : 126.00,
        "currency" : "EUR",
        "days_before_from" : 0,
        "days_before_to" : 1,
        "service_type" : "SR" 
    }
]
}

Payment types

"payment" : {
    "id" : "325",
    "fop" : "CA",
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},


"payment" : {
    "id" : "2345",
    "fop" : "BC",
    "account_number" : "12345678912345678"
    "account_owner" : "John Smith"
    "bank" : {
        "name" : "National Tresure",
        "number" : "125622",
        "location" : "Geneve",
    },
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},

"payment" : {
    "id" : "545",
    "fop" : "DD",
    "account_number" : "12345678912345678"
    "account_owner" : "John Smith"
    "bank" : {
        "name" : "National Tresure",
        "number" : "125622",
        "location" : "Geneve",
    },
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},


"payment" : {
    "id" : "523",
    "fop" : "CC",
    "credit_card" : {
        "issuer" : "VI",
        "number" : "WHzkKOxKaVLPhX1u4M9J+s9aRptnBa9TaGvimR4CwWKjMWJCEuCE+quYpoj0wJMlPkFyxcz/yqjT22XdYN6U4oBCTsJNlhurygbPAR/lQG3Mf5nNoci6fi0WK9aVSvFLif38U9SD36sx9vZ03xSDScljPDVY+30ZW5tB2pw42b4=",
        "valid_to" : "2012/12",
        "security_type" : "Encrypted",
        "owner" : "styka sebastian"
    },
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},


"payment" : {
    "id" : "5",
    "fop" : "OP",
    "status" : "not_started" 
    "provider" : "ECARD",
    "eCardId" : "100010",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},


"payment" : {
    "id" : "123",
    "fop" : "PP",
    "status" : "unknown",
    "provider" : "OFFLINE",
    "price" : {
        "currency" : "EUR",
        "value" : 967.00
    }
},

Flight service

{
"services" : [
    {
        "num" : 1,
        "ref_provider" : "7987346ab",
        "product" : "AIR",
        "provider" : "FLIGHTCONEX",
        "booking_message" : "transaction: 123456, status: OK",
        "date_from" : "2011-04-20T00:00:00Z",
        "date_to" : "2011-04-23T00:00:00Z",
        "ticketing_carrier" : "AB",
        "passenger_refs" : [
            {
                "ref" : 1,
                "loyalty_program" : {
                    "type" : "mil",
                    "value" : 1000 
                } 
            } 
        ],
        "promotions" : {
            "promotion_code" : "XXXX",
            "congress_code" : "XXXX",
            "agent_code" : "XXXX" 
        },
        "price" : {
            "currency" : "EUR",
            "value" : 126.00,
            "net" : 86.00,
            "origin" : {
                "currency" : "GBP",
                "value" : 100.00 
            },
            "markups" : [
                {
                    "name" : "YIELD1",
                    "value" : 19.84 
                },
                {
                    "name" : "YIELD2",
                    "value" : 20.16 
                } 
            ],
            "taxes" : [
                {
                    "type" : "QW",
                    "description" : "Fuel tax",
                    "value" : 70.10,
                    "currency" : "EUR" 
                } 
            ] 
        },
        "segments" : [
            {
                "num" : 1,
                "leg_num" : 1,
                "status" : "HK",
                "flight": {
                    "operating" : "AB",
                    "marketing" : "AB",
                    "number" : "9172",
                    "equipment" : "763" 
                },
                "origin" : {
                    "code" : "PMI",
                    "name" : "Pallma de mallorca" 
                },
                "destination" : {
                    "code" : "MAD",
                    "name" : "Madrid" 
                },
                "date_from" : "2011-04-20T00:00:00Z",
                "date_to" : "2011-04-23T00:00:00Z",
                "passenger_assignment" : [
                    {
                        "pax_ref" : 1,
                        "fare_ref" : 1 
                    } 
                ] 
            } 
        ],
        "fares" : [
            {
                "num" : 1,
                "cabin_class" : "Y",
                "booking_class" : "L",
                "farebasis_code" : "LGREY",
                "extended_farebasis_code" : "EXLGREY",
                "farefamily_code" : "GREY",
                "not_valid_after" : "12.03.2555",
                "not_valid_before" : "12.03.1000",
                "baggage_allowance" : {
                    "value" : "10",
                    "unit" : "KG" 
                },
                "price" : {
                    "currency" : "EUR",
                    "value" : 50.00 
                } 
            } 
        ] 
    }
]
}

Products/BookingManagementSystem/Json (last edited 2011-07-19 07:13:24 by PawelKloc)

UA-140066296-2