✈
    TravelmodeDevelopers
    🔎/
    🔑Manage API Keys
    Feature
    🌦️Weather🛂Visa🧩Platform🧭Trips🤝Partner Trips🤖Agent Runs📅Events

    Partner Trips API · v1

    📖Overview🧪API Reference (Try It)
    Guides
    🚀Getting Started🔐Authentication & Scopes🔗The Claim Flow🔔Description Sync & Webhooks⚠️Errors
    ⬇️Download openapi.yaml
    Developers / Partner Trips / Errors

    Errors

    Every error uses the flat platform envelope:

    {
      "error": {
        "code": "not_found",
        "message": "Resource not found",
        "details": null
      },
      "meta": {
        "request_id": "req_abc123",
        "environment": "production",
        "billing_units": 0
      }
    }
    

    Include meta.request_id when contacting support.

    Codes you will encounter

    HTTPCodeCause
    400bad_requestMalformed JSON, invalid payload (details carry the field errors), unknown claim_status filter, or unknown supplier reference.
    401api_key_missing / api_key_invalidNo bearer token, wrong prefix, or unknown/failed-hash key.
    401api_key_revoked / api_key_expiredThe key was rotated/revoked or passed its expiry.
    402account_suspendedYour organization is suspended — contact support.
    403scope_requiredThe key lacks the scope named in details.required.
    404not_foundUnknown supplier/trip, or a trip that exists but is not linked to your organization.
    409—Duplicate supplier external_id, or re-issuing a claim token for an already-claimed trip.
    429rate_limitedMonthly plan quota exhausted; check the X-RateLimit-* headers.
    500internal_errorUnexpected server error — safe to retry with backoff.

    Idempotency notes

    • Starting a trip is not idempotent — use your external_ref plus GET /v1/partner/trips?external_ref=... to detect a duplicate before retrying a timed-out create.
    • PATCH is last-write-wins on the fields you send; unsent fields are untouched.
    Previous
    ← Description Sync & Webhooks