Error Responses

The API categories the various failures by their respective error codes. The body of the response will be JSON in the following format:

{
  "code": "string",
  "message": "string"
}

code returns the unique code identifying the error and message returns the details for the error.

NOTE: in sandbox (staging) environment, we also provide debug message (debug) that you can share with us for easier debugging, the JSON format:

{
  "code": "string",
  "message": "string",
  "debug": "string"
}

Error code list

The list below indicates all possible error codes that StraitsX will return

Error CodeHTTP Status CodeMessage
XFC400001400Invalid request
XFC400002400Invalid parameter field(s)
XFC400003400Invalid contact phone number format
XFC400005400Invalid card product
XFC400007400Card is inactive
XFC400031400Invalid expiry date rule
XFC400033400Invalid card
XFC400036400Invalid amount, cannot process transaction
XFC400038400Card is already active
XFC400039400Insufficient funds
XFC400040400PIN is invalid
XFC400042400PIN is invalid and/or maximum attempts reached
XFC400048400Card is already expired
XFC400049400Incorrect message format
XFC400050400Account is restricted
XFC400052400Card is lost, unable to process the request
XFC400053400Card is stolen, unable to process the request
XFC400054400Invalid country format
XFC400055400Card activation date is before the acceptable date
XFC400056400Card Termination date is before the acceptable date
XFC400057400Maximum number of cards reached
XFC400058400PIN already exists
XFC400059400Invalid contract product
XFC400060400Customer can only have one primary budget
XFC400061400Currency is not supported for the budget source
XFC400062400Customer need to create primary budget first
XFC4000634003ds enrollment already exists
XFC400064400Destination must be empty if authentication type is OOB
XFC400065400Duplicate idempotency key
XFC400066400Merchant is not PCI DSS certified
XFC400067400Card Token is Inactive
XFC400068400Card Pool Is Empty
XFC404003404Card does not exist
XFC404008404Customer does not exist
XFC404015404Transaction does not exist
XFC404016404Merchant plan does not exist
XFC4040174043ds enrollment does not exist
XFC404018404Merchant does not exist
XFC404019404Contract fraud event does not exist
XFC404021404Card number does not exist
XFC404022404Budget does not exist
XFC404023404Budget source does not exist
XFC4040244043ds enrollment not found
XFC404026404Card product does not exist
XFC404027404Card Token Does Not Exist
XFC404028404Card Art Does Not Exist
XFC401001401Unauthorized
XFC403001403Access denied
XFC429001429Too many requests
XFC500001500Internal server error
XFC400069400Kyc proof not provided
XFC400070400Kyc proof already exists
XFC400071400Consecutive pin failed attempt less than maximum attempt
XFC400072400Card is not eligible for enrollment
XFC409001400Resource conflict
XFC410001400Resource gone or expired