{"openapi":"3.1.0","info":{"title":"Private transfer search and checkout","version":"1.0.0","description":"Resolve origin and destination IDs, quote configured transfer fares and hand off to the normal checkout. An available quote is eligible to request and remains subject to the operator's confirmation. The customer enters contact and flight details, checks the updated price, accepts the terms and submits the booking on the website. This API creates neither bookings nor payments."},"paths":{"\/destinations":{"get":{"operationId":"searchTransferDestinations","summary":"Resolve a place name or an IATA code such as AGP.","description":"Ask the traveller to select a result when the status is ambiguous.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":80}},{"name":"language","in":"query","schema":{"type":"string","pattern":"^[a-z]{2,3}(-[a-z]{2,4})?$","description":"Published checkout language. Omit to use the default. MarbeTaxi supports en, es, de, nl, no and sv."}}],"responses":{"200":{"description":"Matching destinations and canonical IDs","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DestinationResults"}}}},"400":{"description":"Invalid request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Request limit reached","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds before retrying."}}},"503":{"description":"Temporarily unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/quotes":{"post":{"operationId":"quoteTransfer","summary":"Get available published vehicle fares and eligible extras for each leg.","description":"Query without vehicle_id to compare vehicles. The response includes per-vehicle fares and an indication when the operator must quote manually. Prices are rechecked when opening checkout.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Journey"}}}},"responses":{"200":{"description":"Online fare options or manual quote required","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Quote"}}}},"415":{"description":"Request must contain a JSON payload no larger than 8 KiB","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"400":{"description":"Invalid request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Request limit reached","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds before retrying."}}},"503":{"description":"Temporarily unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/checkout-links":{"post":{"operationId":"createTransferCheckoutLink","summary":"Create a 20-minute link to checkout for the selected vehicles and extras.","description":"Specify a vehicle_id for each leg. Present the link so the traveller can finish on the website. Do not include their personal or payment details in the API request.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Journey"}}}},"responses":{"201":{"description":"Temporary checkout link","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CheckoutLink"}}}},"409":{"description":"Manual quote required","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Quote"}}}},"415":{"description":"Request must contain a JSON payload no larger than 8 KiB","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"400":{"description":"Invalid request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Request limit reached","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds before retrying."}}},"503":{"description":"Temporarily unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"data":{"type":"object"}},"required":["code","message"]},"Destination":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"type":{"type":"string"},"iata":{"type":["string","null"],"description":"IATA code for a configured airport."}},"required":["id","name","type","iata"]},"DestinationResults":{"type":"object","properties":{"status":{"type":"string","enum":["matched","ambiguous","not_found"]},"match_count":{"type":"integer","minimum":0},"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/Destination"},"maxItems":10}},"required":["status","match_count","results"]},"ExtraSelection":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"quantity":{"type":"integer","minimum":1,"maximum":50}},"required":["id","quantity"],"additionalProperties":false},"Extra":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"maximum":{"type":"integer","minimum":1},"unit_price":{"type":"number","description":"Amount in EUR."}},"required":["id","name","maximum","unit_price"]},"Leg":{"type":"object","properties":{"origin_id":{"type":"integer","minimum":1,"description":"Canonical ID from destination search."},"destination_id":{"type":"integer","minimum":1,"description":"Canonical ID from destination search."},"date":{"type":"string","format":"date"},"time":{"type":"string","pattern":"^(?:[01][0-9]|2[0-3]):(?:00|30)$","description":"Local time in Europe\/Madrid."},"passengers":{"type":"integer","minimum":1,"maximum":50,"description":"Total number of passengers, including any children and infants."},"children":{"type":"integer","minimum":0,"maximum":49,"default":0},"infants":{"type":"integer","minimum":0,"maximum":49,"default":0},"stroller":{"type":"boolean","default":false},"wheelchair":{"type":"string","enum":["","folding","ramp"],"default":""},"extras":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExtraSelection"},"maxItems":10,"description":"Choose IDs and quantities from the vehicle's extras list. Assign child seats in checkout."},"vehicle_id":{"type":"integer","minimum":1,"description":"Optional filter for quotes. Required for checkout links."}},"required":["origin_id","destination_id","date","time","passengers"],"additionalProperties":false},"Journey":{"type":"object","properties":{"language":{"type":"string","pattern":"^[a-z]{2,3}(-[a-z]{2,4})?$","description":"Published checkout language. Omit to use the default. MarbeTaxi supports en, es, de, nl, no and sv."},"legs":{"type":"array","items":{"$ref":"#\/components\/schemas\/Leg"},"minItems":1,"maxItems":2,"description":"Departure first. Include a second leg with its own origin, destination, date, time and passenger count for a return."}},"required":["legs"],"additionalProperties":false},"Vehicle":{"type":"object","properties":{"vehicle_id":{"type":"integer","minimum":1},"name":{"type":"string"},"passenger_capacity":{"type":"integer","minimum":1},"suitcase_capacity":{"type":"integer","minimum":0},"duration_minutes":{"type":"integer","minimum":0},"distance_km":{"type":"number"},"transfer_price":{"type":"number","description":"Per-vehicle fare, including the applicable toll road charge."},"toll_road":{"oneOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Amount in EUR."},"included":{"const":true}},"required":["amount","included"]},{"type":"null"}]},"extras":{"type":"array","items":{"$ref":"#\/components\/schemas\/Extra"},"description":"The eligible add-ons and quantity limits for this vehicle and passenger count, including special luggage."},"selected_extras":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"quantity":{"type":"integer","minimum":1},"amount":{"type":"number","description":"Amount in EUR."}},"required":["id","name","quantity","amount"]}},"child_seats":{"type":"array","items":{"$ref":"#\/components\/schemas\/Extra"},"description":"Individual seat type limits; combined selections and suitability for each child are checked in checkout."},"child_seat_assignment_required":{"type":"boolean","description":"The customer completes the seat selection in checkout before submitting."},"total":{"type":"number","description":"Fare with toll and the selected extras. Child seats chosen later may change the total."}},"required":["vehicle_id","name","passenger_capacity","suitcase_capacity","duration_minutes","distance_km","transfer_price","toll_road","extras","selected_extras","child_seats","child_seat_assignment_required","total"]},"LegQuote":{"type":"object","properties":{"direction":{"type":"string","enum":["departure","return"]},"origin_id":{"type":"integer","minimum":1},"destination_id":{"type":"integer","minimum":1},"date":{"type":"string","format":"date"},"time":{"type":"string"},"passengers":{"type":"integer","minimum":1},"children":{"type":"integer","minimum":0},"infants":{"type":"integer","minimum":0},"reason":{"enum":[null,"accessibility_confirmation","large_group","family_confirmation","no_matching_vehicle","no_online_tariff"]},"vehicles":{"type":"array","items":{"$ref":"#\/components\/schemas\/Vehicle"}}},"required":["direction","origin_id","destination_id","date","time","passengers","children","infants","reason","vehicles"]},"Quote":{"type":"object","properties":{"status":{"type":"string","enum":["available_to_request","manual_quote"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[a-z]{2,4})?$","description":"Published checkout language. Omit to use the default. MarbeTaxi supports en, es, de, nl, no and sv."},"timezone":{"const":"Europe\/Madrid"},"currency":{"const":"EUR"},"minimum_total":{"type":["number","null"],"description":"Sum of the lowest matching offers across legs, including requested extras and applicable tolls."},"operator_confirmation_required":{"const":true},"contact_url":{"type":["string","null"],"format":"uri"},"legs":{"type":"array","items":{"$ref":"#\/components\/schemas\/LegQuote"},"minItems":1,"maxItems":2}},"required":["status","language","timezone","currency","minimum_total","operator_confirmation_required","contact_url","legs"]},"CheckoutLink":{"type":"object","properties":{"status":{"const":"checkout_link"},"url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"},"quote":{"$ref":"#\/components\/schemas\/Quote"}},"required":["status","url","expires_at","quote"]}}},"servers":[{"url":"https:\/\/marbetaxi.com\/sv\/wp-json\/transfer-agent\/v1"}]}