Retour API publiquev1
ERREURS

Format des erreurs

Toutes les erreurs partagent une forme commune. Le champ code est stable et peut être utilisé pour brancher de la logique côté client.

Format de réponse

En cas de validation, message est un tableau de violations ; sinon une chaîne. Le champ statusCode reflète le statut HTTP. Le champ path est utile pour la corrélation côté client.

HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "code": "VALIDATION_FAILED",
  "message": [
    "pickup must be a string",
    "scheduledAt must be a valid ISO 8601 date string"
  ],
  "statusCode": 400,
  "timestamp": "2026-04-29T08:21:14.512Z",
  "path": "/v1/trips"
}

Catalogue des codes

CodeHTTPDescription
UNAUTHORIZED401API key is missing, malformed, expired, or revoked. Check your Authorization header.
RATE_LIMITED429Tier rate limit exceeded. The Retry-After header tells you how many seconds to wait.
IDEMPOTENCY_KEY_REQUIRED400POST /v1/trips requires an Idempotency-Key header.
IDEMPOTENCY_KEY_INVALID400The header value is not 8-200 chars matching [A-Za-z0-9_-:.].
IDEMPOTENCY_KEY_CONFLICT409Same Idempotency-Key reused with a different request body. Generate a fresh key for new requests.
IDEMPOTENCY_KEY_IN_PROGRESS409A request with this Idempotency-Key is currently being processed. Retry shortly.
VALIDATION_FAILED400Request body or query string failed schema validation. The "message" field lists each violation.
CLIENT_REQUIRED400POST /v1/trips needs either "client" (new rider) or "clientId" (existing).
VEHICLE_NOT_FOUND400vehicleId does not belong to the caller.
PRICING_SCHEME_NOT_FOUND400pricingSchemeId does not belong to the caller.
PRICING_SCHEME_REQUIRED400No default pricing scheme is set on the user account. Configure one in the dashboard or pass pricingSchemeId.
PRICING_SCHEME_NOT_QUOTE_CAPABLE400Pricing scheme must be of type STANDARD for the public API quote endpoint.
SERVICE_TIER_NOT_FOUND400serviceTierId does not exist.
TRIP_NOT_FOUND404Trip id does not exist or does not belong to the caller.
TRIP_ALREADY_CANCELLED400The trip is already in CANCELLED state.