Transfers

Transfers authentication

Authenticate every transfers request with your secret key and client identifier.

Share

Authenticate every transfers request with your secret key and client identifier.

Required headers

http
http
Authorization: Bearer <secret_key>
X-Travelandz-Id: <public_key>:<profile_code>

The profile code is persisted for your company and has the form dp_<12 alphanumeric>. You can copy the full X-Travelandz-Id value from your dashboard.

Keep the secret key on your server. Never ship it to a browser or a mobile app, and never write it to client logs.

Example

bash
bash
curl --request GET \
  --url "https://api.sandbox.travelandz.com/v1/transfers/amenities?currency=USD" \
  -H "Authorization: Bearer $TRAVELANDZ_SECRET_KEY" \
  -H "X-Travelandz-Id: $TRAVELANDZ_PUBLIC_KEY:$TRAVELANDZ_PROFILE_CODE"

Authentication errors

HTTPCodeMeaning
401invalid_credentialsAuthorization: Bearer is missing, malformed, or the profile code is invalid.
401missing_api_tokenBearer was sent without a token.
401missing_client_idX-Travelandz-Id is missing or is not in the public_key:profile_code form.
403invalid_credentialsThe profile or credential does not exist, is inactive, or the secret key is wrong.
403invalid_request_originThe request origin is not allowed by the credential.
503auth_service_unavailableCredentials could not be verified. Retry with backoff.