Authentication
API uses HTTP header-based authentication.
Required header
Authorization: Use HTTP Basic authentication. Set the header toBasic <base64-credentials>, where<base64-credentials>is the Base64 encoding ofusername:password.
Example
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Optional headers for localization
X-Client-Country-Code(optional): Two-letter ISO country code that overrides automatic country detection. Example:X-Client-Country-Code: US.X-Client-IP(optional): Client IP address used by the server to infer country whenX-Client-Country-Codeis not provided. Example:X-Client-IP: 203.0.113.5.
Behavior
- If
X-Client-Country-Codeis present and valid the API will use that country context for pricing, availability and localization. - If
X-Client-Country-Codeis not provided butX-Client-IPis provided, the server will attempt to resolve the IP to a country and use that. - If none of the optional headers are present the server will use default country settings based on the authenticated client's configuration.
If you need help with credentials or access, contact support@belugga.com.