Skip to main content

Errors

Error response schema

The error response schema is the same for each API method.

NameTypeRequiredDescription
jsonrpcstringtrueJSON-RPC version.
idstringtrueClient's custom ID.
errorobjecttruePossible errors.

The error object schema:

NameTypeRequiredDescription
codeintegerTrueError code.
messagestringTrueError message.
dataobjectFalseObject with additional error data.
Sample error response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"error": {
"code": -32602,
"message": "Invalid amount for pair btc->ltc. Maximum amount is 1.02533854 btc",
"data": {
"limits": {
"max": {
"from": "1.02533854",
"to": "1300.00000000"
},
"min": {
"from": "0.00113160",
"to": "1.43472023"
}
}
}
}
}

Error codes

Each API method contains a list of all possible errors in the Error codes section.