Handling Errors

Xfers will use conventional HTTP response codes to indicate success or failure of an API request.

  • Codes in the 2xx range should indicate success.
  • Codes in the 4xx range should indicate an error that failed given the information provided
    • eg. a required parameter was omitted
    • eg. a charge failed
  • Codes in the 5xx range should indicate an error with Xfers' servers.

Some 4xx errors that could be handled programmatically (e.g. bank declined payments) will include an error code that briefly explains the error reported.

Generic Errors

Here is a list of possible error codes, and some information on how to resolve them.

Error Code

Title

Description

001

Internal server error

This is rare. Contact Xfers if you see this error in your response.

002

Access denied

You did not authenticate successfully for the API call you were trying to make.

Please check your authentication credentials. See Authentication

003

Feature not supported

The functionality you are trying to use is not supported.

Please check that the functionality is available for the locale or environment you are making the request to.

004

Record not found

The object you were looking for based on your API request parameters was not found.

Please check the id that you've used for the request.

005

Invalid parameters

Your request parameters are invalid.

Please check the format of your request parameters, or check that the parameters are within limits.

000

Unknown error

This is very rare. Please inform the Xfers team if you receive such a response.

Transaction Specific Errors

Error Code

Title

Description

TXN0001

Account has insufficient funds

The account you are trying to perform a transaction from does not have enough funds.

Make sure that a deposit is made to the account in order to proceed.

TXN0002

Invalid transaction amount

The transaction amount requested is either below the minimum, or above the maximum limits.

Please check the limits of the transaction type you are trying to perform before re-trying.

TXN0003

Transaction exceeds account transaction limit

The transaction you are trying to perform will cause the account to exceed its transaction limits.

The account will no longer be able to perform transactions until its limits are reset.

TXN0004

Transaction exceeds account balance limit

The transaction you are trying to perform will cause the receiving account to go past its account balance limits.

The account will not be able to receive funds unless the amount will not cause it to exceed the account balance limit.

TXN0005

Failed to create virtual account number

The virtual account number creation is failed due to network problem. It is safe to retry creating the virtual account number again.

TXN0006

suffixNo params is not supported for this bank

Can’t give VA number suggestion for this bank. Please retry by removing the suffixNo params.

TXN0007

suffixNo params exceed maximum number limit

Only maximum 8 digit number that you can put on suffixNo params. Please reduce the suggested number and try again.


Did this page help you?