Pricing & booking

Select ancillaries (baggage, seats, meals) for a trip item

post/v1/select_ancillaries

Request

  • Base URL
    https://api.gojinko.com
  • URL
    https://api.gojinko.com/v1/select_ancillaries
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Request body

trip_idstring required
item_idstring required

Example request

{
  "trip_id": "trip_1048576",
  "item_id": "itm_4b91c2",
  "selections": [
    {
      "offer_id": "anc_3f9a1c27e4b8d051",
      "traveler_ref": "pax_1",
      "quantity": 1
    },
    {
      "offer_id": "anc_9b04e7d2c6a1f835",
      "traveler_ref": "pax_1",
      "segment_ref_ids": [
        "seg_1"
      ],
      "seat_number": "14A"
    }
  ]
}

Response

Updated ancillary selection

trip_idstring
item_idstring

The trip item the selection applied to — items[].item_id on the trip.

quoted_item_idnumber

Deprecated: use item_id instead. An internal number for the priced item.

Example response

{
  "trip_id": "trip_1048576",
  "item_id": "itm_4b91c2",
  "quoted_item_id": 8810231,
  "selected_ancillaries": [
    {
      "offer_id": "anc_3f9a1c27e4b8d051",
      "traveler_ref": "pax_1",
      "pax_ref_id": "pax_1",
      "quantity": 1,
      "type": "seat",
      "seat_number": "14A",
      "segment_ref_ids": [
        "seg_1"
      ],
      "price": {
        "value": 41250,
        "currency": "USD",
        "decimal_places": 2,
        "display": "USD 412.50"
      },
      "price_money": {
        "value": 41250,
        "currency": "USD",
        "decimal_places": 2,
        "display": "USD 412.50"
      }
    }
  ],
  "total_with_ancillaries": {
    "value": 41250,
    "currency": "USD",
    "decimal_places": 2,
    "display": "USD 412.50"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.