Schemas
Data models used by the Account API.
Currency
stringCurrency code — ISO 4217 (e.g. USD, EUR) or a supported digital currency (USDT, USDC).
AccountStatus
stringACTIVESUSPENDEDCLOSEDAccount
objectCurrent summary of an account holding a currency balance.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredstringPayment rail associated with the account.
balanceRequiredDecimalCurrent balance.
statusRequiredAccountStatusAccount status.
AccountRef
objectCompact account reference embedded in a withdrawal.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredstringPayment rail associated with the account.
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.
DestinationStatus
string`PENDING_REVIEW` awaiting compliance review, `ACTIVE` usable for withdrawals, `SUSPENDED` temporarily unusable, `CLOSED` permanently retired. Mirrors the account status vocabulary.
PENDING_REVIEWACTIVESUSPENDEDCLOSEDDestination
BankDestination | WalletDestinationA registered withdrawal destination; the shape matches the destination type.
BankDestination
objectdestinationIdRequiredstringDestination identifier (UUID).
statusRequiredDestinationStatusWhitelisted own account status.
currencyRequiredCurrencyCurrency the destination is paid in.
accountNumberRequiredstringBank account number.
swiftBicRequiredstringSWIFT/BIC code.
bankNameRequiredstringBank name.
createdAtstringCreation timestamp. Formatted in ISO 8601.
BankDestinationRequest
objectRegister an owned external bank account as a whitelisted own account. The registered account starts in `PENDING_REVIEW`.
currencyRequiredCurrencyaccountNumberRequiredstringBank account number.
swiftBicRequiredstringSWIFT/BIC code.
bankNameRequiredstringBank name.
WalletDestinationRequest
objectRegister an owned external wallet as a whitelisted own account. The registered wallet starts in `PENDING_REVIEW`.
WalletDestination
objectdestinationIdRequiredstringDestination identifier (UUID).
statusRequiredDestinationStatusWhitelisted own account status.
currencyRequiredCurrencyCurrency the destination is paid in.
walletAddressRequiredstringDestination wallet address; static and reusable.
networkRequiredNetworkNetwork of the wallet address.
createdAtstringCreation timestamp. Formatted in ISO 8601.
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 source account, embedded as a compact reference.
amountRequiredDecimalAmount sent to the whitelisted own account, before fee.
feeAmountDecimalFee charged.
currencyRequiredCurrencyCurrency code (ISO 4217 or a supported digital currency).
destinationRequiredDestinationThe whitelisted own account the destination resolved to, 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
objectAn outgoing payment from `sourceAccountId`. `amount` is in the source account's currency. `destinationId` references one of your whitelisted own accounts; it must be `ACTIVE` and in the source Axiym account's currency.
sourceAccountIdRequiredstringSource account identifier (UUID).
amountRequiredDecimalAmount to send, before fee. In the source account's currency.
destinationIdRequiredstringIdentifier of the registered whitelisted own account 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
objectCompact event payload: enough to route the event and correlate it with your records. Webhooks are notifications, not state transfer — fetch the authoritative withdrawal via `GET /withdrawals/{withdrawalId}` when you need amounts, fees, or the transaction hash.
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`.
AccountMovementEventData
objectA posted ledger movement on an account. Movements are immutable facts, so the amount is carried in the event; the current balance is not — fetch it via `GET /accounts/{accountId}`.
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.
DestinationEventData
objectWhitelisted own account lifecycle notification.
destinationIdRequiredstringDestination identifier (UUID).
statusRequiredDestinationStatusWhitelisted own account status at the time the event was emitted.
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 own identifier for this object, for correlation with your system. Optional, echoed back on reads. This is for business correlation, not retry-safety — use the `Idempotency-Key` header to deduplicate retries.
ValidationFieldErrors
ValidationError[] | objectRecursive structure: either an array of ValidationError records (leaf field), an object keyed by nested field names (Struct variant), or an object keyed by array indices (List variant).
ValidationError[]objectNetwork
stringWallet network.
TRONAVALANCHEValidationError
objectSingle validation error from the `validator` crate.
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.