Basset Help

Help Basset

API Reservation (Booking) (Paso 4)

curl –location –request POST ‘https://api.basset.ws/reservations/async?site=AR&channel=API’ \

–header ‘x-client-id: ID’ \
–header ‘x-client-type: AGENCY’ \
–header ‘x-api-key: KEY’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{

“products”: [
{
“item_id”: “c3254029-1c21-435f-a473-2b7aba78443d|13918627881584194915_c3254029-1c21-435f-a473-2b7aba78443d|7040208058982863180“,
“type”: “FLIGHT”,
“passengers”: [
{
“birth”: “14/11/1979”,
“document”: {
“number”: “888888888”,
“type”: “PAS”,
“issuing_country”: “AR”,
“valid_thru”: “2025-01-01”
},
“firstname”: “jorge”,
“lastname”: “sanchez”,
“gender”: “M”,
“nationality”: “AR”,
“type”: “ADT”
}
],
“itinerary_info”: {
“origin”: “EZE”,
“destination”: “PTY”,
“departure_date”: “2023-08-26”,
“return_date”: “2023-08-31”,
“currency”: “ARS”,
“price”: “524598.34”
}

}
],
“contact”: {
“email”: “nombre@mail.com”,
“language”: “es”,
“telephone”: {
“area_code”: “11”,
“country_code”: “54”,
“number”: “555555555”,
“type”: “H”
}
},
“fiscal_data”: {
“address”: {
“city”: “AR”,
“country”: “AR”,
“door”: “”,
“floor”: “”,
“number”: “1122222222”,
“postal_code”: “1252”,
“state”: “”,
“street”: “”
},
“identification”: {
“fiscal_name”: “jorge sanchez”,
“number”: “112222222222”,
“tax_situation”: “”,
“type”: “DNI”
}
}
}’

Response OK:

{
“id”: “44b9ced7-4ced-493d-b14c-a59181fXXXXd”,
“status”: “BOOKING”,
“reservation_id”: “”
}

Importante para  “passengers”:

Tipos de pasajeros: 

ADT = Adulto, Adulto Mayor, Discapacitado –
CHD = Niño 0 – 2 En brazo y Asiento –
INF = Niño de 2 a 11

Documento AR:

PAS = Pasaporte 
CI = Documento Único DNI