Skip to main content

Get country availability

List of countries where crypto purchases are supported.

HTTP request

get
/v1/available-countries

Request

Header parameters

Requires authentification.

Query parameters

NameTypeRequiredDescription
providerCodestringfalseThe provider code. Possible values.
If the provider code is not specified, the endpoint will return the supported currencies for all providers.
supportedFlowstringfalseEnum: buy/sell.
If the flow is not specified, the endpoint will return result for both cases (On-Ramp buy and Off-Ramp sell).
Sample cURL
curl --location --request GET
'https://fiat-api.changelly.com/v1/available-countries'
--header 'X-Api-Key: {{apiKey}}'
--header 'X-Api-Signature: {{signature}}'

Response

Response params

NameTypeRequiredDescription
codestringtrueCountry ISO 3166-1 code (Alpha-2).
namestringtrueCountry name.
statesarray of objectsfalseIs returned if the code of the country is US.
providersarray of objectstrueList of providers that support the country.

provider object schema:

NameTypeRequiredDescription
providerCodestringtrueThe On-Ramp or Off-Ramp provider code. Possible values.
If the provider code is not specified, the endpoint will return the supported countries of all providers.
supportedFlowarray of stringstrueEnum: buy/sell.
If the flow is not specified, the endpoint will return result for both cases (On-Ramp buy and Off-Ramp sell).

states object:

NameTypeDescription
codestringState ISO 3166-2 code.
namestringState name.
Sample response
application/json
{
"code": "FR",
"name": "France",
"providers": [
{
"providerCode": "wert",
"supportedFlows": [
"buy"
]
},
{
"providerCode": "moonpay",
"supportedFlows": [
"buy",
"sell"
]
},
{
"providerCode": "skrill_crypto",
"supportedFlows": [
"buy"
]
},
{
"providerCode": "banxa",
"supportedFlows": [
"buy"
]
},
{
"providerCode": "transak",
"supportedFlows": [
"buy"
]
}
]
}

Error response

Error response parameters

Check the error response schema.

Possible error types in the errorType item:

TypeDescription
validationValidation error.

The errorDetails item schema:

NameTypeRequiredDescription
causestringtrueError cause. For example, it can equal the missing request parameter for the validation error type.
valuestringtrueError value.

Error codes

CodeMessage
400BadRequest
401Unauthorized
429TooManyRequests
500InternalServerError
BadRequest
{
"errorType": "validation",
"errorMessage": "Validation error",
"errorDetails": [
{
"cause": "providerCode",
"value": "Incorrect provider code"
}
]
}