Schemas
Data models used by the Trade API.
OnboardingRequest
objectLegal-entity information needed to start KYB onboarding for a represented client.
legalEntityNameRequiredstringOfficial registered name of the client business.
incorporationDateRequiredstringDate the legal entity was established.
registrationDateRequiredstringDate the client joined your organization or service.
legalAddressRequiredAddressClient's registered legal address.
partnerClientIdRequiredstringYour stable identifier for the client. It must be unique within your partnership and is returned for correlation. A new onboarding request using an existing value returns `409 Conflict`.
OnboardingCase
objectA Trade client KYB onboarding case. A client can use Trade API paths only after Axiym approves the case.
clientIdRequiredstringAxiym identifier assigned to the represented client. Use it in `/clients/{clientId}/...` paths after approval.
legalEntityNameRequiredstringOfficial registered name of the client business.
partnerClientIdRequiredstringYour identifier for this client.
statusRequiredstringCurrent onboarding state. `ONBOARDING` is under review; `ACTIVE` is ready for Trade API operations; `REJECTED` cannot use Trade API operations.
ONBOARDINGACTIVEREJECTEDrejectionReasonstringReason Axiym provided when the case is rejected, where available.
Client
objectA client record associated with your partnership. The record may be onboarding, active, or disabled; only an active client can use Trade API operations.
clientIdRequiredstringAxiym identifier for this client. Use it in `/clients/{clientId}/...` paths.
codeRequiredstringHuman-readable Axiym client code.
legalEntityNameRequiredstringOfficial registered name of the client business.
legalAddressRequiredAddressClient's registered legal address.
incorporationDateRequiredstringDate the legal entity was established.
registrationDateRequiredstringDate the client joined your organization or service.
statusRequiredstringCurrent Axiym status. `ACTIVE` clients can use Trade API operations; `ONBOARDING` is under review and `DISABLED` cannot use them.
ONBOARDINGACTIVEDISABLEDpartnerClientIdRequiredstringYour stable identifier for this client.
Address
objectRegistered legal address of a business.
addressRequiredstringFirst address line.
addressExtendedstringSecond address line, where applicable.
cityRequiredstringCity or locality.
districtstringState, province, or region, where applicable.
postalCodeRequiredstringPostal or ZIP code.
countryRequiredstringISO 3166-1 alpha-2 country code.
Currency
stringCurrency code — ISO 4217 (e.g. USD, EUR) or a supported digital currency (USDT, USDC).
AccountStatus
stringACTIVESUSPENDEDCLOSEDAccount
objectAn Axiym account that holds one currency on one payment rail. Retrieve its receiving details from `GET /clients/{clientId}/accounts/{accountId}/deposit-instructions`.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredPaymentRailsCodeRail the account settles on.
balanceRequiredDecimalCurrent balance.
statusRequiredAccountStatusAccount status.
AccountRef
objectCompact account reference. Fetch the account via `GET /clients/{clientId}/accounts/{accountId}` for the current balance and status; deposit instructions serve its payment details.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredPaymentRailsCodeRail the account settles on.
PaymentRailsCode
stringPayment rail code the account settles on (e.g. `ZENUS_BANK`, `TRON`).
StatementEntryType
stringDirection of movement on the account.
CREDITDEBITStatementEntry
objectA posted ledger movement on an account. Entries are returned in posting order and carry the running balance, so consecutive entries reconcile against each other.
entryIdRequiredstringLedger entry identifier (UUID).
accountIdRequiredstringAccount identifier (UUID).
typeRequiredStatementEntryTypeCredit or debit direction.
amountRequiredDecimalPositive movement amount in the account currency; direction is in `type`.
currencyRequiredCurrencyAccount currency.
balanceBeforeDecimalRunning balance before this movement.
balanceAfterRequiredDecimalRunning balance after this movement.
relatedResourceTypestringType of the linked money movement; absent for ledger adjustments with no linked resource.
DEPOSITWITHDRAWALCONVERSIONrelatedResourceIdstringIdentifier of the linked resource, where present.
occurredAtRequiredstringWhen the movement occurred. Formatted in ISO 8601.
ConversionStatus
string`PENDING` awaits confirmation and appears only in the create response. `ACTIVE` is executing. `COMPLETED` means the funds were exchanged. `CANCELED` means the conversion stopped; see `reasonCode`.
PENDINGACTIVECOMPLETEDCANCELEDConversionPair
objectAn allowed exchange direction. You sell the `sell` side and buy the `buy` side. Use its stable `pairId` to create a conversion; Axiym selects the corresponding accounts.
pairIdRequiredstringConversion pair identifier (UUID), stable for the pair and direction.
pairRequiredstringPair symbol, `<sellCurrency>-<buyCurrency>`.
sellRequiredConversionPairSideThe side you sell.
buyRequiredConversionPairSideThe side you buy.
minAmountRequiredDecimalMinimum sell amount, in the sell currency.
ConversionPairSide
objectOne side of a conversion pair.
currencyRequiredCurrencySide currency.
paymentRailsRequiredPaymentRailsCodeRail the side settles on.
ConversionRequest
objectA conversion along one of your conversion pairs. `pairId` selects the accounts on both sides; `sellAmount` is in the pair's sell currency.
pairIdRequiredstringConversion pair identifier from `GET /clients/{clientId}/conversion-pairs`.
sellAmountRequiredDecimalAmount to sell, in the pair's sell currency.
externalReferenceExternalReferenceYour reference for correlation, echoed back on related objects.
Conversion
objectconversionIdRequiredstringConversion identifier (UUID).
pairIdRequiredstringThe conversion pair this conversion runs along.
statusRequiredConversionStatusConversion status.
reasonCodestringPresent when `status` is `CANCELED` — the reason as reported by operations or the liquidity venue. Example: `RATE_EXPIRED`.
sellAccountRequiredAccountRefThe sell-side account, embedded as a compact reference.
sellAmountRequiredDecimalAmount sold, in the sell currency.
buyAccountRequiredAccountRefThe buy-side account, embedded as a compact reference.
buyAmountRequiredDecimalAmount bought and credited to the buy-side account, net of fee.
rateRequiredDecimalUnits of buy currency received for one unit of sell currency.
feeAmountRequiredDecimalFee charged in the pair's ISO 4217 currency. It is deducted from the sell amount when buying digital currency and from the buy proceeds when selling it.
feeCurrencyRequiredCurrencyCurrency of the fee — always the ISO 4217 currency of the pair.
externalReferenceExternalReferenceYour reference for correlation, echoed back on related objects.
createdAtRequiredstringCreation timestamp. Formatted in ISO 8601.
completedAtstringCompletion timestamp. Formatted in ISO 8601.
ConversionEventData
objectA compact notification for routing and correlation. Retrieve the conversion from `GET /clients/{clientId}/conversions/{conversionId}` when you need its amounts, rate, or current state.
conversionIdRequiredstringConversion identifier (UUID).
pairIdstringThe conversion pair this conversion runs along.
statusRequiredConversionStatusConversion status at the time the event was emitted.
externalReferenceExternalReferenceYour reference submitted on creation, where present.
reasonCodestringPresent on `conversion.canceled` — the reason as reported by operations or the liquidity venue. Example: `RATE_EXPIRED`.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
DepositStatus
string`PENDING` awaits crediting. `HELD` is temporarily on hold. `COMPLETED` was credited to the account. `CANCELED` or `REJECTED` was not completed; see `reasonCode`.
PENDINGHELDCOMPLETEDCANCELEDREJECTEDDeposit
objectdepositIdRequiredstringDeposit identifier (UUID).
accountRequiredAccountRefThe account the deposit credits, embedded as a compact reference.
amountRequiredDecimalAmount credited to the account, before fee.
feeAmountDecimalFee charged.
currencyRequiredCurrencyAccount currency.
statusRequiredDepositStatusDeposit status.
remitterNamestringName of the sender, as reported by the sending bank or network.
codestringSystem-assigned payment code, shown on the payment.
transactionHashstringThe transaction hash on the network. Present for wallet deposits.
reasonCodestringPresent when `status` is `CANCELED` or `REJECTED` — the reason as reported by the bank, the network, or Axiym operations. Example: `SENDER_SCREENING_FAILED`.
createdAtRequiredstringCreation timestamp. Formatted in ISO 8601.
DepositInstruction
BankDepositInstruction | WalletDepositInstructionAxiym's receiving details for the account; the shape matches the account type.
BankDepositInstruction
objectbeneficiaryNameRequiredstringName of the receiving party to put on the transfer.
accountNumberRequiredstringReceiving bank account number.
swiftBicRequiredstringSWIFT/BIC code of the receiving bank.
bankNameRequiredstringReceiving bank name.
referenceRequiredstringISO 11649 creditor reference (`RF` + check digits) assigned by Axiym to this account, formatted in groups of four. Include it on the transfer so the deposit is matched automatically; matching ignores the spaces.
WalletDepositInstruction
objectwalletAddressRequiredstringDeposit address of the account; deposits are matched by the address itself.
networkRequiredNetworkNetwork of the wallet address.
DepositEventData
objectA compact notification for routing and correlation. Retrieve the deposit from `GET /clients/{clientId}/deposits/{depositId}` when you need its amount, transaction hash, or current state.
depositIdRequiredstringDeposit identifier (UUID).
statusRequiredDepositStatusDeposit status at the time the event was emitted.
reasonCodestringPresent on `deposit.canceled` / `deposit.rejected` — the reason as reported by the bank, the network, or Axiym operations. Example: `SENDER_SCREENING_FAILED`.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
DestinationStatus
string`PENDING_REVIEW` awaits review. `ACTIVE` may fund deposits and receive withdrawals. `SUSPENDED` is temporarily unavailable. `CLOSED` is permanently retired.
PENDING_REVIEWACTIVESUSPENDEDCLOSEDDestination
BankDestination | WalletDestinationA registered external bank account or wallet; the shape matches the account type.
BankDestination
objectdestinationIdRequiredstringRegistered external-account identifier (UUID).
statusRequiredDestinationStatusRegistered external-account status.
currencyRequiredCurrencyCurrency associated with the registered external account.
accountNumberRequiredstringBank account number.
swiftBicRequiredstringSWIFT/BIC code.
bankNameRequiredstringBank name.
createdAtstringCreation timestamp. Formatted in ISO 8601.
WalletDestination
objectdestinationIdRequiredstringRegistered external-account identifier (UUID).
statusRequiredDestinationStatusRegistered external-account status.
currencyRequiredCurrencyCurrency associated with the registered external account.
walletAddressRequiredstringWallet address of the registered external account; static and reusable.
networkRequiredNetworkNetwork of the wallet address.
createdAtstringCreation timestamp. Formatted in ISO 8601.
BankDestinationRequest
objectRegister an owned external bank account as a permitted deposit source and withdrawal recipient. The registered account starts in `PENDING_REVIEW`.
currencyRequiredCurrencyCurrency associated with the external bank account.
accountNumberRequiredstringBank account number.
swiftBicRequiredstringSWIFT/BIC code.
bankNameRequiredstringBank name.
WalletDestinationRequest
objectRegister an owned external wallet as a permitted deposit source and withdrawal recipient. The registered wallet starts in `PENDING_REVIEW`.
PageInfo
objecthasNextPageRequiredbooleanWhen paginating forwards, are there more items?
endCursorstringWhen paginating forwards, the cursor to continue.
WithdrawalStatus
string`PENDING` awaiting execution, `HELD` temporarily on hold — no action needed from you, `COMPLETED` done, `CANCELED`/`REJECTED` not completed (see `reasonCode`).
PENDINGHELDCOMPLETEDCANCELEDREJECTEDWithdrawal
objectwithdrawalIdRequiredstringWithdrawal identifier (UUID).
sourceAccountRequiredAccountRefThe sell-side account, embedded as a compact reference.
amountRequiredDecimalAmount sent to the registered external account, before fee.
feeAmountDecimalFee charged.
currencyRequiredCurrencyCurrency code (ISO 4217 or a supported digital currency).
destinationRequiredDestinationThe registered external account selected by `destinationId`, embedded in full.
statusRequiredWithdrawalStatusWithdrawal status.
codestringSystem-assigned payment code, shown on the payment.
purposestringFree-text purpose of the payment, as submitted.
externalReferenceExternalReferenceYour reference for correlation, echoed back on related objects.
transactionHashstringThe transaction hash on the network. Present for wallet withdrawals once the withdrawal is `COMPLETED`.
reasonCodestringPresent when `status` is `CANCELED` or `REJECTED` — the cancellation/rejection reason as reported by the bank, the network, or Axiym operations. Example: `INSUFFICIENT_BENEFICIARY_DETAILS`.
createdAtRequiredstringCreation timestamp. Formatted in ISO 8601.
WithdrawalRequest
objectA withdrawal from `sourceAccountId` to a registered external account. `amount` uses the source account's currency. The `destinationId` must be `ACTIVE` and use the same currency.
sourceAccountIdRequiredstringSource account identifier (UUID).
amountRequiredDecimalAmount to send, before fee. In the source account's currency.
destinationIdRequiredstringIdentifier of the registered external bank account or wallet to pay. It must be `ACTIVE` and in the source Axiym account's currency.
purposestringFree-text purpose of the payment.
externalReferenceExternalReferenceYour reference for correlation, echoed back on related objects.
WithdrawalEventData
objectA compact notification for routing and correlation. Retrieve the withdrawal from `GET /clients/{clientId}/withdrawals/{withdrawalId}` when you need its amount, fees, transaction hash, or current state.
withdrawalIdRequiredstringWithdrawal identifier (UUID).
statusRequiredWithdrawalStatusWithdrawal status at the time the event was emitted.
externalReferenceExternalReferenceYour reference submitted on creation, where present.
reasonCodestringPresent on `withdrawal.canceled` / `withdrawal.rejected` — the reason as reported by the bank, the network, or Axiym operations. Example: `INSUFFICIENT_BENEFICIARY_DETAILS`.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
AccountMovementEventData
objectA posted account movement. The event includes the movement amount but not the current balance. Retrieve the account when you need its latest balance.
accountIdRequiredstringAccount identifier (UUID).
amountRequiredDecimalPositive movement amount in the account currency; direction is in the event type.
currencyRequiredCurrencyAccount currency.
relatedResourceTypestringType of the linked money movement; absent for movements with no linked API resource.
DEPOSITWITHDRAWALCONVERSIONrelatedResourceIdstringIdentifier of the linked resource, where present.
occurredAtRequiredstringWhen the movement occurred. Formatted in ISO 8601.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
AccountStatusEventData
objectAccount lifecycle notification.
accountIdRequiredstringAccount identifier (UUID).
statusRequiredAccountStatusAccount status at the time the event was emitted.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
DestinationEventData
objectRegistered external-account lifecycle notification. The contract retains the `destinationId` field name.
destinationIdRequiredstringRegistered external-account identifier (UUID).
statusRequiredDestinationStatusRegistered external-account status when the event was emitted.
clientIdRequiredstringAxiym identifier of the client that owns the resource.
Event
objectWebhook event envelope delivered to your registered endpoint.
idRequiredstringEvent ID. Use this for de-duplication.
timestampRequiredstringEvent timestamp. Formatted in ISO 8601.
typestringEvent type.
dataRequiredobjectEvent data.
Subscription
objectsubscriptionIdRequiredstringSubscription identifier (UUID).
endpointRequiredstringURL of the endpoint to subscribe to notifications. Must be publicly accessible, use HTTPS, and respond with a 2XX status to a POST request.
RequestStatus
objectstatusRequiredstringRequest status.
OKDefault OK
PublicKey
objectpublicKeyIdRequiredstringPublic key identifier (UUID).
activeRequiredbooleanIndicates whether the key is active
algorithmRequiredstringEncryption algorithm
publicKeyRequiredstringPublic Key
createdAtRequiredstringCreation timestamp. Formatted in ISO 8601.
Decimal
stringDecimal number serialized as a string to preserve precision.
ExternalReference
stringYour optional identifier for correlating the resource with your system. Axiym returns it on reads. It does not make retries safe; use `Idempotency-Key` for that.
ValidationFieldErrors
ValidationError[] | objectNested validation errors keyed by field name or array index. Leaf values are arrays of `ValidationError` objects.
ValidationError[]objectNetwork
stringWallet network.
TRONAVALANCHEValidationError
objectOne field-level validation error.
codeRequiredstringValidation rule code (e.g. 'length', 'email', 'invalid_currency', 'disbursement_account_required').
messagestring | nullHuman-readable message.
paramsRequiredobjectRule-specific parameters. Always includes `value` (the offending input). Additional keys depend on the rule (e.g. `min`, `max` for length).
valueunknownThe submitted value that failed validation.