info@yesgo.co.nz

Developer API

Xtrip TOS · REST API v1

Build on the Xtrip travel platform

The Xtrip API connects the systems inside our travel group — including the YesRentals self-drive fleet network — and approved distribution partners. Tours, departure dates and pricing flow between systems automatically, so self-drive packages and guided tours stay in sync. Responses are JSON, CORS-enabled and cached at the edge.

Edge-served

Low-latency responses from a global serverless runtime.

Ecosystem integration

Links Xtrip tours with the YesRentals fleet for self-drive packages.

Privacy by design

Only public product data — never customer records.

Real-time data

Price or availability changes in the operations console appear instantly.

Endpoints

GET/api/public/v1/tours

List all on-sale tours with bilingual titles, prices (NZD), duration, destinations and departure dates.

ParameterRequiredDescription
slugoptionalReturn a single tour by its slug
GET/api/public/v1/rates

Exchange rates with NZD as base (AUD, USD, CNY), refreshed hourly.

Quick start

cURL
curl -s "https://xtrip.co.nz/api/public/v1/tours?slug=north-island-3-day"
JavaScript
const res = await fetch("https://xtrip.co.nz/api/public/v1/tours");
const { count, data } = await res.json();
data.forEach(t => console.log(t.title, t.price));

Response codes

200OK — request succeeded
204No Content — CORS preflight
404Not Found — unknown endpoint
500Service unavailable — retry later

Partner access & rate limits

Public endpoints are free for reasonable use and every request is monitored. For higher volumes, webhooks or booking-write access, contact info@yesgo.co.nz.