Additional guidance

Errors & Exceptions

Xe uses conventional HTTP response codes to indicate the success or failure of an API request, in general:

  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error that failed given the information provided.
  • Codes in the 5xx range indicate an error with Xe's platform.

HTTP Status Code Summary

HTTP Error CodeDescription
200 — OKEverything worked.
400 — Bad RequestThe request was not accepted, often due to validation or missing parameters. \nThe response will contain an XeException with a typeOfFailure, a MODEL_VALIDATION type will indicate you have received a ValidationException, and SERVICE_EXCEPTION type will indicate you have a received a ServiceException.
401 — UnauthorizedAccess Token not valid
404 — Not FoundThe requested resource does not exist.
500 — Server ErrorsSomething went wrong on Xe's platform.

Service & Validation Exception

When receiving a 400 - Bad Request you will either receive a ServiceException or ValidationException, the typeOfFailure will determine which exception you will receive.

Type Of FailureException
MODEL_VALIDATIONValidationException
SERVICE_EXCEPTIONServiceException

Issue & Exception Codes

The following are a list of codes used to describe issues within a ServiceException or Payment issues.

General field error codes and descriptions

CodeDescription
181 — Internal Server ErrorsSomething went wrong on Xe's platform.
190Invalid Request
1000You've reached the maximum number of payments for this batch
1001Please provide a valid currency
1002Please provide a valid destination country
1003Please provide a valid effective date
1004Please provide a sell currency
1005Please provide a buy currency
1006Please provide either a buy or sell amount
1007The client reference for this payment is not valid
1008No payments found
1009Please provide a valid purpose of payment
1010Please provide the Target Payment Date
1011The amount is not valid
1012The quote has expired
1013This contract has already been approved
1014This contract has been cancelled
1015We can't provide a quote due to payment issues on the contract
1016Cannot approve, contract has payment issues
1017Please create a quote
1018The payment reference isn't valid
1019We can't provide a quote as you've reached your quote limit
1020We can't find this contract
1021Unable to create quote
1022We can't find the quote
1023Unable to create contract
1024Please provide either a buy or sell amount, not both
1025MPT header not found for fx contract
1026Only unconfirmed contracts can be updated
1027Client account not found
1032Unable to create quote because the market is closed
1033This currency is not available to buy for this account
1034This currency is not available to sell for this account
1035Must be a tradeable currency for the account
1036Invalid or missing purpose of payment text
1037Amount has incorrect number of decimal places
1038Same currency fee is not defined for this currency for the client
1039Sorry, you cannot hold or view balance in this currency
1042Sorry, you cannot update this quote

Recipient field error codes and descriptions

CodeDescription
2000Invalid or missing recipient
2001Missing recipient account number
2002Missing recipient type
2003Duplicate client reference
2004Recipient has been deactivated.
2005The field is not required and should be removed from the request.

Get all contracts request param error codes and descriptions

CodeDescription
2501The CreatedAfter date must be earlier than the CreatedBefore date
2502The ModifiedAfter date must be earlier than the ModifiedBefore date
2503The BatchSize exceeds the maximum batch size of 500.
2504The minimum BatchSize is 1.
2505The Skip value should be 0 or more.

Account/Recipient error codes and descriptions

CodeDescription
3001Invalid or missing account reference type
3002Invalid or missing recipient name
3003Invalid or missing recipient email address
3004Invalid or missing recipient address country code
3005Invalid or missing recipient address line
3006Invalid or missing recipient address
3007Invalid or missing recipient address locality
3008Invalid or missing recipient address region
3009Invalid or missing recipient address postcode
3010Invalid or missing ISO_3166 standard recipient address region
3011Invalid or missing recipient address line1
3012Invalid or missing recipient address line2
3013Invalid or missing recipient id country
3014Invalid or missing recipient id type
3015Invalid or missing recipient id number
3016Invalid or missing recipient tax number
3017Invalid or missing recipient client reference

Bank & Bank Account error codes and descriptions

CodeDescription
4001We couldn't find a valid bank account matching with the provided account information
4002Please provide a valid bank account for your recipient
4003Please provide a valid bank account name for your recipient
4004Please provide a valid bank account number for your recipient
4005Please provide a valid sort code for your recipient
4006Please provide a valid IBAN for your recipient
4007Please provide a valid national clearing code for your recipient
4008We couldn't find a valid bank account matching with the provided account information
4009We couldn't find a valid bank account matching with the provided account information for the intermediary bank
4010Please provide a valid intermediary bank account for your recipient
4011Please provide a valid intermediary bank account name for your recipient
4012Please provide a valid intermediary bank account number for your recipient
4013Please provide a valid intermediary bank account sort code for your recipient
4014Please provide a valid BIC for your recipient
4015Please provide a valid intermediary bank BIC for your recipient
4016We can't find this bank
4017We can't find this intermediary bank
4018Please provide a valid country code for your recipient's bank account
4019Please provide a valid country code for the intermediary bank account
4020We can't find this bank account. Please make sure you've entered the IBAN, BIC or NCC correctly.
4021We couldn't find a valid bank account matching with the provided account information for the intermediary bank
4022Please provide a valid national clearing code for the intermediary bank
4023Please provide a valid bank account type

Duplication error codes and descriptions

CodeDescription
5001Client reference for payment must be unique
5002Client reference for payment already used

Settlement & Payment error codes and descriptions

CodeDescription
6001Not possible to settle in this currency
6002Not possible to make payments in this currency
6003Not possible to make payments in this country
6004Payment requires extra detail
6005Payment requires recipient phone number
6006Payment requires a valid purpose of payment
6007Payment requires recipient email address
6008Payment requires recipient name
6009Specifying both a BIC and NCC is invalid
6010Specified BIC country does not match the destination country
6011Specified IBAN country does not match the destination country
6012Specified intermediary BIC country does not match the intermediary bank country
6013Specified NCC not valid for destination country
6014Payments are not allowed to this recipient for this currency
6015Direct Debit not allowed for same currency payments
6016Please provide a valid recipient phone number
6017Payments cannot be attached to this type of contract
6018Failed to attach payments to contract
6022Payment(s) already exists for the requested recipient(s)
6023Recipient currency does not match the bought currency of the contract
6025The 'Attach a Recipient to a Contract' feature isn't available for this transaction
6026Sorry, you can't have multiple recipients for this contract
6027This payment cannot be completed. Please contact Xe for support.

Webhook error codes and descriptions

CodeDescription
7001Webhook not found
7002Failed to update webhook
7003Failed to create webhook
7004Failed to delete webhook
7005WebhookAuditLog not found
7006Webhook request has duplicate headers

Registered recipient error codes and descriptions

CodeDescription
8001Registered recipient not found
8002Not possible to change registered recipient type
8003Not possible to change registered recipient currency
8004Not possible to change registered recipient bank country

Purpose of Payment error codes and description

CodeDescription
9001No purpose of payments found
9002Purpose of payment not found for the code specified

Industry type error codes and description

CodeDescription
9501Invalid or missing Industry Type Category Code
9502Invalid or missing Industry Type Code

Bank Account error codes and description

CodeDescription
9601Invalid or missing Industry Type Category Code
CodeDescription
9701Bank account id must be provided
9702Bank account id does not exist for the client
9703Bank account id is not verified
9704Bank account id is blocked/disabled
9705Bank account id is for another sell currency
9706DirectDebit settlement method is not allowed
9707Business unit id is not valid
CodeDescription
9721Payment limits error
9722Sorry, this currency is not available.
9723The amount is below the minimum amount required allowed. Please increase the amount to continue.
9724The amount is above the maximum amount allowed. Please reduce the amount to continue.
9725Bank account id is for another sell currency
9726DirectDebit settlement method is not allowed
9727This amount exceeds the limit for this currency. Please reduce the amount to continue.
9728You've reached your combined transactional limit. Please contact us to increase your limit.
9729You've reached your daily trade amount limit. Please contact us to increase your limit.
9730You've reached the maximum number of daily direct debit trades. Please contact us to increase your limit.
9731You've reached your daily direct debit amount limit. Please contact us to increase your limit.
9732You've reached the maximum amount you can send by direct debit in this period. Please contact us to increase your limit.
9733Sorry, you can't settle by this method. Please choose a different settlement method.
9734Sorry, we can't deliver to this method. Please choose a different delivery method.
CodeDescription
10011We can't provide a quote as the market is closed. Please try again on the next working day.
10013We can't provide a quote as the currency is closed for dealing. Please try again on the next working day.
10033Invalid recipient details.
10050Please make sure that the buy and sell currencies are the same
10051Sorry, same currency transfers aren't available for this currency
10052Please contact us to enable same currency transfers for your account
10053The quoted value date has been adjusted and does not match the originally requested value date
10054Forward contracts aren't enabled on your account. Please contact Xe
10055Value date exceeds max forward days as per currency
10056Currency Accounts aren't enabled on your account yet. Please contact us for more information.
10057Buy amount is below minimum balance deposit amount supported by currency.
10058Buy amount is above maximum balance deposit amount supported by currency.
10082Insufficient funds on balance for a particular currency.
10084This currency can't be held as a balance.
10097You can only convert a balance if the currencies are different.
10099Please set the autoAdjustAmountToRemainingBalance to 'true' for one payment.
10300The sum of the payment amounts is greater than the amount requested.
10301The sum of the payment amounts must equal the buy amount.
10302There is no amount remaining for this payment.
CodeDescription
10201The link for the terms and conditions is not found.

On this page

Get help