Skip to main content
GET
List rails

Authorizations

API-KEY
string
header
required

Your partner API key.

Headers

Api-Version
string
default:2026-09.1
required

The API version this request targets. Required on every /api/v0/* call. Format YYYY-MM.<release>; 2026-09.1 is the latest. The version that served the request is echoed back on the response. Missing, malformed or unsupported values are rejected with 400.

Pattern: ^\d{4}-\d{2}\.\d+$

Query Parameters

userId
string
required

The customer. Must be a cus_… reference id. Missing → 400 ERRREF_1000 (userId is required). Any userId that doesn't resolve — malformed, unknown, deleted or another partner's — is 404 ERRREF_1001.

countryId
integer

Optional. Restrict results to one destination country; omitted returns every country. A plain numeric id rather than a reference id, which is why an unusable value answers 400 ERRCORE_1001 (countryId must be a number) and not an ERRREF_ code.

Response

The rails, by country and currency. Unwrapped.

countries
object[]