Successful requests will be a HTTP 200 after any successful call. The body of successful requests depend on the endpoint.
Whenever a problem occurs, Wyre will respond to the client using a 4xx or 5xx status code. In this case, the body of the response will be an exception object which describes the problem.
|ValidationException||The action failed due to problems with the request.||400|
|UnknownException||Oops, our bad. A problem with our services internally. This should rarely happen.||500|
|InsufficientFundsException||You requested the use of more funds in the specified currency than were available.||400|
|RateLimitException||Your requests have exceeded your usage restrictions. Please contact us if you need this increased.||429|
|AccessDeniedException||You lack sufficient privilege to perform the requested action.||401|
|TransferException||There was a problem completing your transfer request.||400|
|NotFoundException||You requested something that couldn't be located.||400|
|ValidationException||There was a problem validating the input you supplied.||400|
|CustomerSupportException||Please contact us at [email protected] to resolve this!||400|
|MFARequiredException||An MFA action is required to complete the request. In general you should not get this exception while using API keys.||400|
All exceptions will carry a subType parameter which exposes more information about the problem. Additionally, some ValidationException errors will carry with them two fields, problematicField and problematicValue, denoting the field which caused the failure.
A few typical ValidationException subtypes: