Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tracefinance-docs-withdrawal-beneficiary-events.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Trace FX API uses standard HTTP status codes and returns structured error responses. Every response includes an X-Request-Id header you can reference when contacting support.

How it works

Error response structure

All errors follow the same shape:
{
  "code": "INVALID_DATA",
  "message": "The field 'amount.value' must be a positive integer.",
  "details": {}
}
FieldTypeDescription
codestringMachine-readable error code for programmatic handling
messagestringHuman-readable description of what went wrong
detailsobjectAdditional context (may be empty)

HTTP status codes

CodeMeaningWhen it happens
200OKRequest succeeded
201CreatedResource was created
204No contentRequest succeeded with no response body
400Bad requestInvalid or malformed request data
401UnauthorizedMissing or invalid authentication token
404Not foundResource does not exist
408Request timeoutRequest took too long to process
409ConflictIdempotency key conflict or state conflict
422Unprocessable entityValid syntax but business rule violation
429Too many requestsRate limit exceeded
500Internal server errorUnexpected server failure

Common error codes

CodeHTTP statusDescription
INVALID_DATA400Request body failed validation
REQUIRED400Required field is missing or blank
INVALID_UUID400Field value is not a valid UUID
INVALID_ENUM400Field value is not a valid enum option
INVALID_DATE400Field value is not a valid date format
INVALID_TYPE400Field value does not match the expected type
MISSING_REQUIRED_HEADER400Required HTTP header is missing
INCOMPATIBLE_CURRENCY400Currency does not match the expected value
INVALID_FILTER_FORMAT400Filter query parameter is malformed
RESOURCE_NOT_FOUND404Requested resource does not exist
IDEMPOTENT_ID_CONFLICT409Idempotency key was already used with a different request
RESOURCE_ALREADY_EXISTS409Resource with the given identifier already exists
ATTRIBUTE_MISMATCH409Field value conflicts with existing data
INVALID_MFA_CODE409Provided MFA code is incorrect
INVALID_STATUS_CHANGE422Resource cannot transition to the requested state
CANNOT_EXECUTE_ACTION422Action is not allowed in the current resource state
REQUIRED_ATTRIBUTE_IS_NULL422Required attribute is missing or null
MFA_NOT_ENABLED422Multi-factor authentication is required but not configured

Retry guidance

Status codeShould retry?Strategy
400, 401, 404, 422NoFix the request before retrying
408, 429YesBack off and retry after the indicated period
409DependsCheck if the original request succeeded
500YesRetry with exponential backoff
Include the X-Request-Id from the response when opening a support ticket. This helps the team trace your request through the system.

Examples

A validation error:
{
  "code": "INVALID_DATA",
  "message": "The field 'amount.value' must be a positive integer.",
  "details": {
    "field": "amount.value"
  }
}
A resource not found:
{
  "code": "RESOURCE_NOT_FOUND",
  "message": "Account with id 'abc-123' was not found.",
  "details": {}
}