T
T
Toga API
Search…
⌃K

Errors

Get familiar with errors you might encounter
HTTP status codes do not always provide sufficient information about the cause of an error. For more detailed programmatic handling of errors, responses contain additional JSON fields that describe the error.

Error format

Whenever an API request results in an error, the response will contain a high-level error class specified by the code and a human-readable summary in the message.
{
"code": XXXX,
"message":"Invalid wallet address."
}

List of API Error Codes

The table below shows the list of error codes that may be returned in an API error response.
Code
Message
0001
Unknown Error
5001
Additional parameters required to initiate payout
5002
Invalid rate
5003
Rate already used
5023
Invalid wallet address
5004
Insufficient funds
5045
Invalid payout type
5005
Payout type not supported
5100
Additional query parameters required to generate rates
5199
Unsupported token
5200
Unsupported Country
5299
Unsupported currency
5050
Additional query parameters required to get banks
5059
Invalid country code
5099
Invalid currency code
5159
Invalid transaction id
5189
Additional recipient details needed
5999
Additional sender details needed
5190
Invalid NUBAN
5191
Invalid wire routing number
5192
Invalid IBAN
5193
IBAN country mismatch
5195
Invalid bank account number
5196
Invalid bank code