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
objectAn account holding a currency balance.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredPaymentRailsCodeRail the account settles on.
balanceRequiredDecimalCurrent balance.
statusRequiredAccountStatusAccount status.
PaymentRailsCode
stringPayment rail code the account settles on (e.g. `ZENUS_BANK`, `TRON`).
AccountRef
objectCompact account reference. Fetch the account via `GET /accounts/{accountId}` for the current balance and status; deposit instructions serve its payment details.
accountIdRequiredstringAccount identifier (UUID).
currencyRequiredCurrencyAccount currency.
paymentRailsRequiredPaymentRailsCodeRail the account settles on.
StatementEntryType
stringDirection of movement on the account.
CREDITDEBITStatementEntry
objectA posted ledger movement on an account. Entries are returned in posting order and include 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.
DEPOSITWITHDRAWALCONVERSIONPAYOUTrelatedResourceIdstringIdentifier of the linked resource, where present.
occurredAtRequiredstringWhen the movement occurred. Formatted in ISO 8601.
Bank
objectDestination bank details. Present on bank destinations only. The bank address country selects the applicable payout corridor rules. Supply `swiftBic`, `clearingCode`, or `clearingSystemCode` when that corridor requires them.
bankNameRequiredstringBank name.
addressRequiredBankAddressswiftBicstringISO 9362 SWIFT/BIC, when required for the corridor.
clearingCodestringLocal clearing or routing code, when required for the corridor.
clearingSystemCodestringClearing system the code belongs to. Axiym derives it from the bank country; supply it where a country has more than one system.
BankAddress
objectPostal address of the destination bank. `country` is always required because it selects the applicable corridor rules. Supply the remaining address fields when the corridor or a correspondent requires them.
streetNamestringbuildingNumberstringcitystringregionstringpostalCodestringcountryRequiredCountryCodeCountryCode
stringISO 3166-1 alpha-2 country code.
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.
amountRequiredMoneyAmount credited to the account.
feeMoneyFee charged, when any.
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.
referencestringISO 11649 creditor reference (`RF` + check digits) assigned by Axiym, formatted in groups of four. Present when the account is funded through a shared receiving account; include it on the transfer so the deposit is matched automatically (matching ignores the spaces). Absent when the receiving account number alone identifies the Axiym account.
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 /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`.
DestinationStatus
string- `PENDING_REVIEW` — awaiting review. - `ACTIVE` — available for withdrawals. - `SUSPENDED` — temporarily unavailable. - `CLOSED` — permanently retired.
PENDING_REVIEWACTIVESUSPENDEDCLOSEDAddressBookEntry
BankAddressBookEntry | WalletAddressBookEntryA registered external bank account or wallet address in the address book, with its status and creation date. - A bank destination contains `accountNumber` and `bank`. - A wallet destination contains `walletAddress` and `network`. The two field sets never appear together.
BankAddressBookEntry
objectdestinationIdRequiredstringAddress book entry identifier (UUID).
statusRequiredDestinationStatusAddress book entry status.
currencyRequiredCurrencyCurrency the destination is paid in.
accountNumberRequiredstringBank account number.
bankRequiredBankDestination bank details.
createdAtstringCreation timestamp. Formatted in ISO 8601.
WalletAddressBookEntry
objectdestinationIdRequiredstringAddress book entry identifier (UUID).
statusRequiredDestinationStatusAddress book entry status.
currencyRequiredCurrencyCurrency the destination is paid in.
walletAddressRequiredstringDestination wallet address; static and reusable.
networkRequiredNetworkNetwork of the wallet address.
createdAtstringCreation timestamp. Formatted in ISO 8601.
Destination
BankDestination | WalletDestinationWhere the funds are delivered, as recorded on the operation at creation time. This is a snapshot: it carries the account or wallet details and, when the destination was taken from the address book, its `destinationId`. It does not carry the address book entry's status or creation date; read the address book entry for its current state. - A bank destination contains `accountNumber` and `bank`. - A wallet destination contains `walletAddress` and `network`. The two field sets never appear together.
BankDestination
objectWalletDestination
objectPageInfo
objecthasNextPageRequiredbooleanWhen paginating forwards, are there more items?
endCursorstringWhen paginating forwards, the cursor to continue.
WithdrawalStatus
string- `PENDING_CONFIRMATION` — created and awaiting confirmation. - `PENDING` — confirmed and awaiting execution. - `HELD` — temporarily on hold; no action is needed. - `COMPLETED` — completed successfully. - `CANCELED` or `REJECTED` — not completed; see `reasonCode` when present.
PENDING_CONFIRMATIONPENDINGHELDCOMPLETEDCANCELEDREJECTEDWithdrawal
objectwithdrawalIdRequiredstringWithdrawal identifier (UUID).
sourceAccountRequiredAccountRefThe source account, embedded as a compact reference.
sourceAmountRequiredMoneyAmount debited from the source account, in the source account currency.
destinationAmountRequiredMoneyAmount delivered to the destination, in the destination currency. Equals `sourceAmount` less `fee`.
feeRequiredMoneyTotal deducted from `sourceAmount` before delivery, in the source account currency. Zero when no fee applies.
destinationRequiredDestinationSnapshot of the destination selected by `destinationId` at creation time.
statusRequiredWithdrawalStatusWithdrawal status.
codestringSystem-assigned payment code, shown on the payment.
referencestringText shown to the recipient, as submitted.
supportingDocumentsSupportingDocument[]Documents accepted with the payment. File content is not returned.
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` to `destinationId`. `sourceAmount` is debited from the source account in its currency. The destination must be an `ACTIVE` address book entry in the same currency. Creation returns a withdrawal awaiting confirmation; it does not begin execution.
sourceAccountIdRequiredstringSource account identifier (UUID).
sourceAmountRequiredMoneyAmount to debit from the source account. Its currency must be the source account currency.
destinationIdRequiredstringIdentifier of the address book entry to pay. It must be `ACTIVE` and in the source Axiym account's currency.
referencestringText shown to the recipient, typically the invoice number.
supportingDocumentsSupportingDocumentInput[]Documents supporting the payment, such as an invoice. Required where the destination corridor requires evidence.
externalReferenceExternalReferenceYour reference for correlation, echoed back on related objects.
SupportingDocumentType
stringAxiym classification of evidence supplied with a payout.
PASSPORTNATIONAL_IDDRIVER_LICENSERESIDENCE_PERMITPROOF_OF_ADDRESSUTILITY_BILLBANK_STATEMENTTAX_CERTIFICATECERTIFICATE_OF_INCORPORATIONREGISTRY_EXTRACTARTICLES_OF_ASSOCIATIONSHAREHOLDER_REGISTERDIRECTOR_REGISTERUBO_DECLARATIONPOWER_OF_ATTORNEYBOARD_RESOLUTIONREGULATORY_LICENSEBUSINESS_LICENSEFINANCIAL_STATEMENTAUDIT_REPORTSOURCE_OF_FUNDSINVOICECONTRACTPURCHASE_ORDERPAYROLL_FILELOAN_AGREEMENTSHIPPING_DOCUMENTCUSTOMS_DECLARATIONOTHERSupportingDocumentInput
objectA document supporting the payment, such as an invoice or contract. One item is one file of up to 10 MB in PDF, JPEG or PNG format; supply the file content as base64.
documentTypeRequiredSupportingDocumentTypedataRequiredstringComplete file encoded as base64 from its raw bytes. Do not include a data-URL prefix.
nameRequiredstringFile name, including the extension.
SupportingDocument
objectMetadata of a document accepted with the payment. File content is not returned.
documentTypeRequiredSupportingDocumentTypefileIdRequiredstringIdentifier of the stored file.
nameRequiredstringFile name supplied with the document.
contentTypeRequiredstringMIME type detected from the file content.
sizeRequiredintegerFile size in bytes.
WithdrawalEventData
objectCompact webhook payload for routing and correlation. Webhooks are notifications, not state transfer. Fetch `GET /withdrawals/{withdrawalId}` for the authoritative amounts, fee, destination, and 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 event contains the amount but not the current balance. Fetch `GET /accounts/{accountId}` for that 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.
DEPOSITWITHDRAWALCONVERSIONPAYOUTrelatedResourceIdstringIdentifier of the linked resource, where present.
occurredAtRequiredstringWhen the movement occurred. Formatted in ISO 8601.
AccountStatusEventData
objectAccount lifecycle notification.
accountIdRequiredstringAccount identifier (UUID).
statusRequiredAccountStatusAccount status at the time the event was emitted.
DestinationEventData
objectAddress book entry lifecycle notification.
destinationIdRequiredstringAddress book entry identifier (UUID).
statusRequiredDestinationStatusAddress book entry 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.
Money
objectMonetary amount and its currency.
Decimal
stringDecimal number serialized as a string to preserve precision. Amounts sent to Axiym are positive and carry at most 8 decimal places.
ExternalReference
stringOptional identifier for correlating the resource with your system. Axiym returns it on reads and webhook events. It does not make retries safe; use `Idempotency-Key` to deduplicate retries.
ValidationFieldErrors
ValidationError[] | objectRecursive validation-error structure. - A leaf field contains an array of `ValidationError` records. - A nested object is keyed by field name. - A list is keyed by array index.
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.