# Get account Source: https://docs.nxos.io/api-reference/accounts/get GET /v1/accounts/{accountId} Retrieve a single account by ID, including its current balances and attached funding methods. Balances are fetched from the ledger in real time. Supports `Nxos-On-Behalf-Of` to read a client's accounts. Any letter of authorization the client has not revoked is enough, whatever the client's status or verification: a blocked or unverified client's balances stay readable. # List accounts Source: https://docs.nxos.io/api-reference/accounts/list GET /v1/accounts List all active accounts belonging to your organization, including their attached funding methods. Results are ordered by creation date, newest first. Supports `Nxos-On-Behalf-Of` to read a client's accounts. Any letter of authorization the client has not revoked is enough, whatever the client's status or verification: a blocked or unverified client's balances stay readable. # List available assets Source: https://docs.nxos.io/api-reference/assets/list GET /v1/assets List the assets your organization can receive. Any asset returned here can be passed to `POST /v1/funding-methods` to get its deposit details. Assets that are not listed are not available to your organization. Contact us if you need one of them. Supports `Nxos-On-Behalf-Of` to list a customer org's assets. # List authorizations Source: https://docs.nxos.io/api-reference/authorizations/list GET /v1/authorizations List authorizations the caller is a party to (either side), newest first. Use `role` to split the two intuitive views: - `role=authorized` — "what customers can I act on?" (broker view). - `role=granter` — "who can act on my behalf?" (customer view). `status` and `type` narrow further; omitting both returns every state including `REVOKED` (kept for audit). Honors `Nxos-On-Behalf-Of` — a broker can list a customer's grants by pointing the header at the customer's org id. Cursor-based pagination via the standard `limit` / `cursor` query params; pass back the previous response's `nextCursor` to advance. # Revoke authorization Source: https://docs.nxos.io/api-reference/authorizations/revoke POST /v1/authorizations/revoke Revoke a previously-issued authorization between two organizations. Either side of the grant may call this — the granting org (the customer who signed) or the authorized org (the broker that received the grant). The API key's organization must be one of the two; otherwise the call is refused with `403 forbidden`. Idempotent semantics: a second revoke of the same tuple returns `404 authorization_not_found` (the row is already `REVOKED` and excluded from the active set). Effect is immediate — subsequent calls that rely on the grant (requests with `Nxos-On-Behalf-Of` pointing at the granter from the authorized org) will fail with `403 authorization_required`. # Archive beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/archive DELETE /v1/beneficiaries/{beneficiaryId} Archive (soft-delete) a beneficiary. The record is preserved for audit purposes. # Create bank beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/create-bank POST /v1/beneficiaries/bank Create a bank beneficiary for an account. # Create crypto beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/create-crypto POST /v1/beneficiaries/crypto Create a crypto beneficiary for an account. # Create nxosnet beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/create-nxosnet POST /v1/beneficiaries/nxosnet Create an internal NXOS→NXOS beneficiary for an account, resolved by the target organization's nxosnet handle. The target must have NXOS transfers enabled. Use the returned beneficiary as the recipient for `POST /v1/transactions/nxosnet-transfers`. # Get beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/get GET /v1/beneficiaries/{beneficiaryId} Retrieve a beneficiary by its identifier. The beneficiary type is resolved automatically. # List beneficiaries Source: https://docs.nxos.io/api-reference/beneficiaries/list GET /v1/beneficiaries List beneficiaries for an account, optionally filtered by type. Returns crypto and bank beneficiaries in a single flat list. # Update beneficiary Source: https://docs.nxos.io/api-reference/beneficiaries/update PATCH /v1/beneficiaries/{beneficiaryId} Update a beneficiary's details. # Execute crypto payout Source: https://docs.nxos.io/api-reference/crypto-payouts/execute POST /v1/transactions/crypto-payouts Execute a crypto payout from an account to a crypto beneficiary. Funds are debited immediately and the payout is processed on-chain. The response `status` is `LOCKED` (pending); `txHash` is present once the transaction is broadcast. Chain confirmation is asynchronous: clients should poll `GET /v1/transactions/{id}` to observe the transition to `COMPLETED` (confirmed on chain) or `DECLINED` (rejected on chain). Requires the organization to be enabled for crypto payouts. # Crypto payout fee Source: https://docs.nxos.io/api-reference/fees/crypto-payout GET /v1/fees/crypto-payout Fee schedule for a crypto payout on a given chain and asset. Use at quote/display time; echo the returned `fixed` + `bps` on the payout submit as `expectedFeeSchedule` to guard against config drift. # Fiat payout fee Source: https://docs.nxos.io/api-reference/fees/fiat-payout GET /v1/fees/fiat-payout Fee schedule for a fiat payout. Use at quote/display time to show the user what they'll be charged. Echo the returned `fixed` + `bps` on the payout submit as `expectedFeeSchedule` to guard against config drift between quote and submit. # Initiate fiat payout Source: https://docs.nxos.io/api-reference/fiat-payouts/initiate POST /v1/transactions/fiat-payouts Initiate a fiat payout from an account to a bank beneficiary. Funds are debited and locked immediately. The transaction enters LOCKED status and awaits provider execution. # Get fiat payout options Source: https://docs.nxos.io/api-reference/fiat-payouts/options GET /v1/transactions/fiat-payouts/options List the values a fiat payout can be built from. Reference data, identical for every organization and stable between releases, so it is safe to cache for a day. Fetch it instead of hardcoding the codes: new purposes are added here first, and a value absent from this response is rejected by `POST /v1/transactions/fiat-payouts` with `400 invalid_request`. `purposes` carries the ISO 20022 `ExternalPurpose1Code` values we accept. Send `code` on the payout and show `label` to whoever is choosing. > [accordion] Accepted purpose codes > > | Code | Meaning | > | - | - | > | `GDDS` | Purchase of goods | > | `SUPP` | Supplier payment | > | `SCVE` | Purchase of services | > | `GDSV` | Purchase of goods and services together | > | `IVPT` | Payment against an invoice | > | `TRAD` | Trade services operation | > | `ADVA` | Advance payment ahead of delivery | > | `BEXP` | Payment of business expenses | > | `SUBS` | Subscription to information or entertainment services | > | `REFU` | Payment of a refund | > | `AIRB` | Air transport related business | > | `FERB` | Ferry related business | > | `SALA` | Payment of salaries | > | `BONU` | Payment of a bonus | > | `ALLW` | Payment of allowances | > | `COMM` | Payment of commission | > | `COMP` | Payment of compensation | > | `PENS` | Payment of pension | > | `DIVD` | Payment of dividends | > | `INTC` | Payment between two companies in the same group | > | `TREA` | Treasury operation between accounts we hold | > | `INVS` | Payment for investment products, funds or shares | > | `LOAN` | Transfer of a loan to a borrower | > | `LOAR` | Repayment of a loan to a lender | > | `INTE` | Payment of interest | > | `TAXS` | Payment of taxes | > | `GOVT` | Payment to a government department | > | `RENT` | Payment of rent | > | `UBIL` | Gas, water or electricity bill | > | `INSU` | Payment of an insurance premium | > | `ROYA` | Payment of royalties | > | `EDUC` | Study or tuition fees | > | `CHAR` | Payment for charity reasons | > | `GIFT` | Payment with no commercial or statutory purpose | > | `FREX` | Foreign exchange operation | > | `OTHR` | Purpose not covered by another option | # Create a funding method Source: https://docs.nxos.io/api-reference/funding-methods/create POST /v1/funding-methods Create the funding methods for an asset on an account. This provisions the receiving methods it needs (deriving crypto deposit addresses per chain and/or wiring the bank virtual accounts that serve the asset) and enables the ledger balance. Idempotent: repeating the call links the asset onto already-provisioned addresses and banks instead of creating duplicates. Returns the funding methods now serving the asset, with full deposit details. Requires the organization to be verification-approved (KYC) and to have the RECEIVE service enabled. `GET /v1/assets` lists the assets you can pass. # Get a funding method Source: https://docs.nxos.io/api-reference/funding-methods/get GET /v1/funding-methods/{fundingMethodId} Retrieve a single funding method by ID. # List funding methods Source: https://docs.nxos.io/api-reference/funding-methods/list GET /v1/funding-methods List funding methods for an account, with full deposit details (crypto address + wire instructions) for each. # API reference Source: https://docs.nxos.io/api-reference/introduction Complete reference for all Nxos API endpoints. ## Base URLs | Environment | Base URL | | - | - | | Sandbox | `https://api.sandbox.nxos.io` | | Production | `https://api.nxos.io` | Both environments expose the same endpoints. Use sandbox for development and testing — no real funds are involved. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer nxos_sk_test_... ``` See [Authentication](/concepts/authentication) for details on key management. ## Request format * Request bodies use `Content-Type: application/json` * All IDs are prefixed strings (e.g., `acct_`, `bene_`, `quote_`, `txn_`) * Amounts are decimal strings in major units (e.g., `"10.50"`) ## Response format * Successful responses return the resource directly (single object) or a [paginated list](/concepts/conventions#pagination) * Error responses follow a [standard envelope](/concepts/errors) with `code`, `message`, and `requestId` * Every object includes an `object` field identifying its type ## Endpoints ### Setup **Organizations** | Method | Path | Description | | - | - | - | | `GET` | `/v1/organizations` | [Get organization](/api-reference/organizations/get) | | `POST` | `/v1/organizations` | [Create organization](/api-reference/organizations/create) | | `GET` | `/v1/organizations/verification` | [Get verification](/api-reference/organizations/get-verification) | | `POST` | `/v1/organizations/verification` | [Start verification](/api-reference/organizations/start-verification) | | `POST` | `/v1/organizations/verification/import` | [Import verification](/api-reference/organizations/import-verification) | **Accounts** | Method | Path | Description | | - | - | - | | `GET` | `/v1/accounts` | [List accounts](/api-reference/accounts/list) | | `GET` | `/v1/accounts/{accountId}` | [Get account](/api-reference/accounts/get) | **Assets** | Method | Path | Description | | - | - | - | | `GET` | `/v1/assets` | [List available assets](/api-reference/assets/list) | **Funding methods** | Method | Path | Description | | - | - | - | | `GET` | `/v1/funding-methods` | [List funding methods](/api-reference/funding-methods/list) | | `GET` | `/v1/funding-methods/{fundingMethodId}` | [Get a funding method](/api-reference/funding-methods/get) | | `POST` | `/v1/funding-methods` | [Create a funding method](/api-reference/funding-methods/create) | ### Move money **Quotes** | Method | Path | Description | | - | - | - | | `POST` | `/v1/quotes` | [Create quote](/api-reference/quotes/create) | | `GET` | `/v1/quotes/{quoteId}` | [Get quote](/api-reference/quotes/get) | | `POST` | `/v1/quotes/{quoteId}/execute` | [Execute quote](/api-reference/quotes/execute) | **Beneficiaries** | Method | Path | Description | | - | - | - | | `GET` | `/v1/beneficiaries` | [List beneficiaries](/api-reference/beneficiaries/list) | | `GET` | `/v1/beneficiaries/{beneficiaryId}` | [Get beneficiary](/api-reference/beneficiaries/get) | | `POST` | `/v1/beneficiaries/bank` | [Create bank beneficiary](/api-reference/beneficiaries/create-bank) | | `POST` | `/v1/beneficiaries/crypto` | [Create crypto beneficiary](/api-reference/beneficiaries/create-crypto) | | `POST` | `/v1/beneficiaries/nxosnet` | [Create nxosnet beneficiary](/api-reference/beneficiaries/create-nxosnet) | | `PATCH` | `/v1/beneficiaries/{beneficiaryId}` | [Update beneficiary](/api-reference/beneficiaries/update) | | `DELETE` | `/v1/beneficiaries/{beneficiaryId}` | [Archive beneficiary](/api-reference/beneficiaries/archive) | **Payouts** | Method | Path | Description | | - | - | - | | `GET` | `/v1/transactions/fiat-payouts/options` | [Get fiat payout options](/api-reference/fiat-payouts/options) | | `GET` | `/v1/fees/fiat-payout` | [Fiat payout fee](/api-reference/fees/fiat-payout) | | `POST` | `/v1/transactions/fiat-payouts` | [Initiate fiat payout](/api-reference/fiat-payouts/initiate) | | `GET` | `/v1/fees/crypto-payout` | [Crypto payout fee](/api-reference/fees/crypto-payout) | | `POST` | `/v1/transactions/crypto-payouts` | [Execute crypto payout](/api-reference/crypto-payouts/execute) | **Nxosnet** | Method | Path | Description | | - | - | - | | `GET` | `/v1/organizations/nxosnet` | [Get nxosnet settings](/api-reference/organizations/get-nxosnet) | | `PATCH` | `/v1/organizations/nxosnet` | [Update nxosnet settings](/api-reference/organizations/update-nxosnet) | | `GET` | `/v1/nxosnet/handles/{handle}` | [Resolve nxosnet handle](/api-reference/nxosnet-transfers/resolve-handle) | | `POST` | `/v1/transactions/nxosnet-transfers` | [Send nxosnet transfer](/api-reference/nxosnet-transfers/send) | ### Track **Transactions** | Method | Path | Description | | - | - | - | | `GET` | `/v1/transactions` | [List transactions](/api-reference/transactions/list) | | `GET` | `/v1/transactions/{transactionId}` | [Get a transaction](/api-reference/transactions/get) | **Reports** | Method | Path | Description | | - | - | - | | `GET` | `/v1/reports` | [List reports](/api-reference/reports/list) | | `GET` | `/v1/reports/{reportId}` | [Get a report](/api-reference/reports/get) | | `POST` | `/v1/reports` | [Request a report](/api-reference/reports/create) | | `GET` | `/v1/reports/{reportId}/download` | [Download a report](/api-reference/reports/download) | **Webhooks** | Method | Path | Description | | - | - | - | | `GET` | `/v1/webhooks/endpoints` | [List endpoints](/api-reference/webhooks/list) | | `GET` | `/v1/webhooks/endpoints/{endpointId}` | [Get endpoint](/api-reference/webhooks/get) | | `POST` | `/v1/webhooks/endpoints` | [Create endpoint](/api-reference/webhooks/create) | | `PATCH` | `/v1/webhooks/endpoints/{endpointId}` | [Update endpoint](/api-reference/webhooks/update) | | `DELETE` | `/v1/webhooks/endpoints/{endpointId}` | [Delete endpoint](/api-reference/webhooks/delete) | | `GET` | `/v1/webhooks/endpoints/{endpointId}/secret` | [Get signing secret](/api-reference/webhooks/get-secret) | | `POST` | `/v1/webhooks/endpoints/{endpointId}/secret/rotate` | [Rotate signing secret](/api-reference/webhooks/rotate-secret) | ### Broker | Method | Path | Description | | - | - | - | | `GET` | `/v1/authorizations` | [List authorizations](/api-reference/authorizations/list) | | `POST` | `/v1/authorizations/activate` | [Activate authorization](/api-reference/authorizations/activate) | | `POST` | `/v1/authorizations/revoke` | [Revoke authorization](/api-reference/authorizations/revoke) | ### Referrals | Method | Path | Description | | - | - | - | | `POST` | `/v1/referral-invites` | [Create referral invite](/api-reference/referral-invites/create) | | `GET` | `/v1/referral-links` | [List referral links](/api-reference/referral-links/list) | ### Testing | Method | Path | Description | | - | - | - | | `POST` | `/v1/transactions/faucet` | [Fund a test balance](/api-reference/sandbox/faucet) | # Resolve nxosnet handle Source: https://docs.nxos.io/api-reference/nxosnet-transfers/resolve-handle GET /v1/nxosnet/handles/{handle} Resolve a nxosnet handle to its owning organization. Call this before creating a beneficiary to confirm who a handle belongs to and whether they can currently receive transfers. A `404` means the handle is unclaimed — which doubles as an availability check when picking your own handle. Handles are case-insensitive. # Send nxosnet transfer Source: https://docs.nxos.io/api-reference/nxosnet-transfers/send POST /v1/transactions/nxosnet-transfers Send an internal Nxosnet transfer from an account to an `NXOSNET` beneficiary. Funds move directly between the two Nxosnet accounts as ledger entries — there is no external rail — so the transfer settles instantly and the response `status` is `COMPLETED`. The beneficiary must be an `NXOSNET` type belonging to the source account (create one via `POST /v1/beneficiaries/nxosnet`), and the target organization must have Nxosnet transfers enabled. # Create organization Source: https://docs.nxos.io/api-reference/organizations/create POST /v1/organizations Create a child organization owned by the calling org. The new org is returned with `verificationStatus = 'NOT_STARTED'` and `createdByOrganizationId` set to your org. The default primary account and funding methods are provisioned asynchronously. No API key is auto-issued for the child; the calling org operates on it through the `Nxos-On-Behalf-Of` header (after the customer signs the LOA and completes verification). This endpoint deliberately ignores `Nxos-On-Behalf-Of`: a broker cannot create grandchild orgs on a customer's behalf. # Get organization Source: https://docs.nxos.io/api-reference/organizations/get GET /v1/organizations Retrieve the organization currently in scope. Without `Nxos-On-Behalf-Of`, this returns your own organization. With a valid `Nxos-On-Behalf-Of` header pointing at a customer org you hold an active LOA on, this returns that customer org. See [Cross-org access](https://docs.nxos.io/guides/cross-org-access). # Get nxosnet settings Source: https://docs.nxos.io/api-reference/organizations/get-nxosnet GET /v1/organizations/nxosnet nxosnet is the internal NXOS-to-NXOS transfer network: an organization claims a unique handle and enables nxosnet to receive instant, ledger-settled transfers from other NXOS organizations: no external rails. Senders resolve a handle, add it as a beneficiary, and send. This endpoint reads the in-scope organization's nxosnet settings: whether receiving is enabled, the claimed handle, and name visibility. Supports `Nxos-On-Behalf-Of` to read a customer org's settings. # Get verification Source: https://docs.nxos.io/api-reference/organizations/get-verification GET /v1/organizations/verification Read the verification record for the in-scope organization. Poll this endpoint to learn when verification completes. Reasonable cadence is every 10-30 seconds while the customer is mid-flow, then back off to once a minute. Manual review can stretch to hours or a business day. See [Verification](https://docs.nxos.io/guides/verification) for the full lifecycle and status meanings. # Import verification Source: https://docs.nxos.io/api-reference/organizations/import-verification POST /v1/organizations/verification/import Import a verification for the in-scope organization from a donor's Sumsub share token (Reusable KYC). Lets a broker reuse a KYC/KYB they already performed on their own Sumsub tenant instead of asking the customer to repeat the flow. The broker generates a single-use share token on their tenant and posts it here under `Nxos-On-Behalf-Of: `. We import the applicant on our tenant under `externalUserId = ` and move the verification record to `PENDING`. Sumsub's applicant-review webhook fires shortly after and the platform progresses the org to `APPROVED` — poll `GET /v1/organizations/verification` to observe that transition. Pre-requisite: the donor must have added nxos as a Reusable KYC partner in their Sumsub dashboard, and we must have enabled the feature on our side. There is no automated onboarding for the pairing itself. Share tokens are single-use. A retry of this endpoint with the same token returns `share_token_invalid`. See [Verification](https://docs.nxos.io/guides/verification) for the full flow. # Start verification Source: https://docs.nxos.io/api-reference/organizations/start-verification POST /v1/organizations/verification Start (or refresh) a verification session for the in-scope organization. Returns a Sumsub-hosted URL plus a short-lived access token for embedding the WebSDK in your own UI. Idempotent w.r.t. the org's verification record: the provider keys the applicant by `externalUserId = organizationId`, so repeated calls return new tokens for the same applicant rather than starting over. Use this to re-issue an expired token (~30 min TTL) or to resume after `RESUBMISSION_REQUIRED`. See [Verification](https://docs.nxos.io/guides/verification) for the delivery options (hosted URL vs. embedded WebSDK). # Update nxosnet settings Source: https://docs.nxos.io/api-reference/organizations/update-nxosnet PATCH /v1/organizations/nxosnet Enable or disable nxosnet for the in-scope organization, claim or change its handle, and set name visibility. Every field is optional. Enabling requires a handle: supply `handle` in the same request if the organization has not claimed one yet. Supports `Nxos-On-Behalf-Of` so a broker can configure a customer org it holds an active LOA on. # Create quote Source: https://docs.nxos.io/api-reference/quotes/create POST /v1/quotes Create an exchange quote between two assets. Specify either `fromAmount` (how much to sell) or `toAmount` (how much to receive), not both. Quotes expire after 5 minutes. # Execute quote Source: https://docs.nxos.io/api-reference/quotes/execute POST /v1/quotes/{quoteId}/execute Execute a pending quote. The quote must not be expired or already executed. On success, the trade is completed atomically and the balances are updated. # Get quote Source: https://docs.nxos.io/api-reference/quotes/get GET /v1/quotes/{quoteId} Retrieve a quote by its identifier. # Create referral invite Source: https://docs.nxos.io/api-reference/referral-invites/create POST /v1/referral-invites Issue a sign-up link for one of your customers. The link opens the Nxos sign-up with the customer's email filled in and locked: the form does not let it change, and the server refuses a sign-up with any other email, Google sign-up included. The customer still confirms the address through Nxos's confirmation email. Once they sign up, their organization is attributed to you as its referrer. Calling again for the same email while the invite is pending returns the same link with a renewed expiry, so you can request it each time you send the customer to Nxos. Referrals are switched on for your organization on the first call if they are not already. # List referral links Source: https://docs.nxos.io/api-reference/referral-links/list GET /v1/referral-links List your referral links. A referral link is the same for every customer and carries no email: the customer signs up with any address, and the new organization is attributed to you as its referrer. To lock the sign-up to one customer's email, issue a link with `POST /v1/referral-invites` instead. The list is empty until referrals are switched on for your organization, from the Referrals page of the dashboard or by a first call to `POST /v1/referral-invites`. # Request a report Source: https://docs.nxos.io/api-reference/reports/create POST /v1/reports Request a report. It is generated in the background: the response is the report with status `PENDING`. Poll `GET /v1/reports/{reportId}`, or listen for the `report.ready` and `report.failed` webhooks, then download it. Up to 5 reports can be in progress at once per organization. Supports `Nxos-On-Behalf-Of` to request a report on a client, with an active letter of authorization. The report then belongs to the client. # Download a report Source: https://docs.nxos.io/api-reference/reports/download GET /v1/reports/{reportId}/download Download a ready report. Redirects (`303`) to a signed link to the file that expires after one minute, so follow the redirect straight away (`curl -L`) and call this endpoint again for a fresh link rather than storing it. Supports `Nxos-On-Behalf-Of` on the same terms as listing. # Get a report Source: https://docs.nxos.io/api-reference/reports/get GET /v1/reports/{reportId} Retrieve a report by ID, to follow its `status`. Supports `Nxos-On-Behalf-Of` on the same terms as listing. # List reports Source: https://docs.nxos.io/api-reference/reports/list GET /v1/reports List your organization's reports, newest first: the ones requested through the API, on the dashboard, and the monthly statements. Cursor-paginated. Supports `Nxos-On-Behalf-Of` to list a client's reports. Any letter of authorization the client has not revoked is enough. # Fund a test balance Source: https://docs.nxos.io/api-reference/sandbox/faucet POST /v1/transactions/faucet Simulate a crypto deposit into an account's provisioned deposit address. Credits the ledger immediately and returns a `COMPLETED` `CRYPTO_PAYIN` transaction — no real on-chain transfer is required. Use it to fund test accounts and exercise the full pay-in → balance → pay-out loop. **Sandbox only.** In production this endpoint returns `404 not_found` as if it did not exist. Your organization must be verification-approved, and the asset must already be activated on the account (so a deposit address exists on `chainName`). # Correct beneficiary details Source: https://docs.nxos.io/api-reference/transactions/beneficiary-details POST /v1/transactions/{transactionId}/beneficiary-details Correct the beneficiary of a `LOCKED` fiat payout waiting to be sent, when its `requiredActions` holds a `beneficiary_details` action. Send the fields it lists; the others are ignored. The beneficiary is updated for this payout and every later one, the action leaves `requiredActions`, and operations send the payout: follow it with `GET /v1/transactions/{transactionId}` or `transaction.status.updated`. Returns the transaction. # Get a transaction Source: https://docs.nxos.io/api-reference/transactions/get GET /v1/transactions/{transactionId} Retrieve a single transaction by ID. Returns 404 if the transaction doesn't exist or isn't on one of your accounts. Supports `Nxos-On-Behalf-Of` on the same terms as listing: any letter of authorization the client has not revoked, whatever the client's status or verification. **transactionId** `string` *required* Transaction identifier. ## Response **object** `enum\` *required* Object type. Always `transaction`. **transactionId** `string` *required* Unique transaction identifier. **accountId** `string` *required* Account this transaction belongs to. Always one of your organization's accounts (the listing query enforces ownership). **status** `enum\` *required* Current status. See `TransactionStatus` for transitions. One of: `EXPECTED`, `ACTION_REQUIRED`, `LOCKED`, `COMPLETED`, `DECLINED`, `REFUNDED`. **description** `string | null` *required* Optional human-readable description. **tags** `string[]` *required* Free-form tags set at create time (e.g. `["crypto_payout", "ethereum_mainnet"]`). **amount** `string | null` *required* Primary amount in major units. For most types this is the amount the customer's account moved by. For TRADE this is null — trades have two distinct assets in play; see `details.from` and `details.to` instead. **asset** `string | null` *required* Asset code of the primary amount. Null for TRADE — see `details.from` / `details.to`. **fee** `object` *required* Service-fee breakdown. Always populated; every component is zero when no service fee applied. Note: trade spread fees are NOT here — they live in `details.spread` on TRADE transactions. **child attributes** **fixed** `string` *required* Flat component charged regardless of the principal. Zero when the schedule has no fixed component. **bps** `integer` *required* Rate applied to the principal, in basis points (1 bp = 0.01%, so 50 bps = 0.5%). Zero when the schedule has no rate component. **bpsAmount** `string` *required* Rate-based component, derived from `bps` and the principal and rounded at charge time. Zero when `bps` is zero. **total** `string` *required* Total fee charged: `fixed + bpsAmount`. The single number surfaced to customers as "Fee". **asset** `string` *required* Asset code the fee is denominated in. Always matches the transaction's principal asset — fees are never FX-converted. **requiredActions** `object[]` *required* What you must still provide. While `status` is `ACTION_REQUIRED`: the documents to upload. On a `LOCKED` fiat payout waiting for corrected details: one `beneficiary_details` action with the fields to correct. Empty otherwise. **Document** A document you must upload before a held transaction can be reviewed. **type** `enum\` *required* The document type to upload. One of: `invoice`, `source_of_funds`, `counterparty_details`. **holdId** `string` *required* The hold this document is for. **Beneficiary details** Operations need corrected beneficiary details on a `LOCKED` fiat payout, before sending it or after the bank refused them. The amount is already debited and stays reserved; send the corrected `fields` to `POST /v1/transactions/\{transactionId\}/beneficiary-details`, then operations send the payout. **type** `enum\` *required* Always `beneficiary_details`. **fixRequestId** `string` *required* The correction request this action answers. **fields** `enum\[]` *required* The fields to correct. Only these are read from your answer. Each one of: `iban`, `accountNumber`, `swiftCode`, `bankName`, `beneficiaryName`, `addressLine1`, `city`, `country`. **note** `string` *required* What operations ask you to correct, in their words. **createdAt** `string` *required* When the transaction was created (platform clock). **updatedAt** `string` *required* When the transaction was last updated. **type** `enum\` *required* Transaction type. It tells you which shape `details` has. One of: `CRYPTO_PAYIN`, `CRYPTO_PAYOUT`, `FIAT_PAYIN`, `FIAT_PAYOUT`, `TRADE`, `TRANSFER`, `NXOSNET_TRANSFER`, `CREDIT_ADJUSTMENT`, `COMMISSION`, `DEBIT_ADJUSTMENT`. **details** `object` *required* Type-specific details. Open the one that matches `type`. **Crypto payin (CRYPTO\_PAYIN)** Crypto deposit details — the on-chain receipt that funded the account. **chainName** `string` *required* Chain identifier (e.g. `ETHEREUM_MAINNET`). **chainTransactionId** `string` *required* On-chain transaction hash. **fromAddress** `string | null` *required* On-chain sender address. Null when not parseable from the chain event. **toAddress** `string` *required* Destination address (one of the customer's deposit addresses). **blockHeight** `integer | null` *required* Block height the transaction landed in. **blockTimestamp** `string | null` *required* On-chain block timestamp (distinct from the platform's `createdAt`). **Crypto payout (CRYPTO\_PAYOUT)** Crypto withdrawal details. **chainName** `string` *required* Chain identifier (e.g. `ETHEREUM_MAINNET`). **chainTransactionId** `string | null` *required* On-chain transaction hash. Null while the payout is still in LOCKED state pre-broadcast. **toAddress** `string` *required* Destination address. **beneficiaryId** `string | null` *required* Beneficiary the payout was sent to. **blockHeight** `integer | null` *required* Block height once confirmed. Null while still LOCKED. **blockTimestamp** `string | null` *required* On-chain block timestamp once confirmed. Null while still LOCKED. **Fiat payin (FIAT\_PAYIN)** Fiat deposit (wire receipt) details. **method** `string` *required* Method (e.g. `WIRE`). **fundingMethodId** `string | null` *required* Funding method this deposit landed on. **senderName** `string | null` *required* Sender name as reported by the originating bank. **senderAccount** `string | null` *required* Sender's account identifier (IBAN/account number). **senderBankName** `string | null` *required* Sender's bank name. **senderBankCode** `string | null` *required* Sender's bank SWIFT/BIC. **remittanceInformation** `string | null` *required* Free-form remittance information attached to the wire. **Fiat payout (FIAT\_PAYOUT)** Fiat withdrawal (SWIFT wire) details. **beneficiaryId** `string` *required* Beneficiary the payout was sent to. **method** `string` *required* Method (e.g. `WIRE`). **bankName** `string` *required* Receiving bank name. **swiftCode** `string | null` *required* Receiving bank SWIFT/BIC. **accountNumber** `string | null` *required* Account number. **iban** `string | null` *required* IBAN. **currency** `string` *required* Currency. **country** `string | null` *required* Country code of the receiving bank. **swiftUetr** `string | null` *required* SWIFT's end-to-end reference (UETR) for the wire, once the bank has sent it. This is the handle a correspondent bank recognises, so it is what lets you or your recipient trace the payment downstream. Null until the payout settles, and on rails that have no SWIFT leg. Once the payout is `COMPLETED` and this is set, the bank's SWIFT copy can be downloaded with `GET /v1/transactions/\{transactionId\}/swift-copy`. **Trade (TRADE)** Trade (swap) details — currency conversion against the platform's quoted rate. Trades have two distinct assets in play, so amounts are nested as `Money` objects rather than flat `amount` + `asset` pairs: * `from` — what the user spent * `to` — what the user received * `spread` — fee charged for the trade (in the source asset) Note: the envelope-level `amount` and `asset` fields are NULL on trades — there's no single principal. Use `details.from` and `details.to` instead. The envelope-level `fee` (TransactionFee) is for service fees and stays zero on trades; the trade economics live entirely in `details.spread`. **from** `object` *required* Source money — what the user spent. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **to** `object` *required* Destination money — what the user received. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **spread** `object | null` *required* Spread fee charged on this trade, in the source asset. Null when no spread applied. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **quoteId** `string | null` *required* Quote ID this trade was executed against. Null if the trade was created outside the quote flow. **appliedRate** `string | null` *required* Applied conversion rate, as a decimal string (e.g. `"1.0850"` for EUR→USD). Always `from / to` in the natural direction. **Transfer (TRANSFER)** Internal transfer details (between accounts within the platform). **transferType** `string` *required* Subtype of internal transfer (free-form string, used by ops tooling). **Nxosnet transfer (NXOSNET\_TRANSFER)** NxosNet transfer details — instant handle-based transfer between platform users. **beneficiaryId** `string` *required* Beneficiary the transfer was sent to (sender side). **targetHandle** `string` *required* Recipient's NxosNet handle. **targetOrganizationName** `string | null` *required* Recipient organization's display name. Null if the recipient has hidden their org name. **sourceHandle** `string | null` *required* Sender's NxosNet handle (recipient side). **sourceOrganizationName** `string | null` *required* Sender organization's display name. Null if the sender has hidden their org name. **note** `string | null` *required* Free-form note attached to the transfer. **Credit adjustment (CREDIT\_ADJUSTMENT)** Credit adjustment details — ex-gratia credit issued by the platform (promo, apology, goodwill, correction). **kind** `enum\` *required* Credit adjustment kind — analytics discriminator. One of: `PROMO`, `APOLOGY`, `GOODWILL`, `CORRECTION`. **reason** `string` *required* Human-readable reason shown on the customer's transaction history. **Commission (COMMISSION)** Commission details — referral commission paid to a referrer. **sourceTransactionId** `string` *required* Source transaction (the trade that earned this commission). **referralLinkId** `string` *required* Referral link the commission was earned through. **referredOrganizationId** `string` *required* The org whose trade earned this commission (the referred org). **referredOrganizationName** `string` *required* Display name of the referred org. **appliedCommissionBps** `integer` *required* Commission rate applied at payment time, in basis points (10000 = 100%). Snapshotted — survives later settings changes. **Debit adjustment (DEBIT\_ADJUSTMENT)** Debit adjustment details — platform-initiated debit (the banking-statement "debit adjustment"). **kind** `enum\` *required* Debit adjustment kind — analytics discriminator. One of: `ACCOUNT_CLOSURE`, `CORRECTION`, `OTHER`. **reason** `string` *required* Human-readable reason shown on the customer's transaction history. ```json 200 theme={null} { "object": "transaction", "transactionId": "txn_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "status": "COMPLETED", "description": null, "tags": [], "amount": "250.000000", "asset": "USDC", "fee": { "fixed": "0.000000", "bps": 0, "bpsAmount": "0.000000", "total": "0.000000", "asset": "USDC" }, "requiredActions": [], "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z", "type": "CRYPTO_PAYIN", "details": { "chainName": "ETHEREUM_MAINNET", "chainTransactionId": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060", "fromAddress": "0x8d12a197cb00d4747a1fe03395095ce2a5cc6819", "toAddress": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be", "blockHeight": 21634512, "blockTimestamp": "2025-01-15T10:29:47.000Z" } } ``` ```json 403 theme={null} { "error": { "code": "verification_required", "message": "Complete identity verification before using the API.", "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" } } ``` ```json 404 theme={null} { "error": { "code": "transaction_not_found", "message": "Transaction not found.", "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" } } ``` # List transactions Source: https://docs.nxos.io/api-reference/transactions/list GET /v1/transactions List transactions across one or more of your accounts. Filters can be combined freely. Results are ordered newest-first by `createdAt` and use cursor-based pagination — pass `nextCursor` from a previous response back as `cursor` to fetch the next page. Supports `Nxos-On-Behalf-Of` to read a client's history. Any letter of authorization the client has not revoked is enough, whatever the client's status or verification: a blocked or unverified client's history stays readable. **limit** `integer` (default: 25) Maximum number of items to return. Defaults to 25, max 100. **cursor** `string` Cursor for the next page of results, returned in previous responses. **accountId** `string` Filter to a single account. Must belong to the API key's organization. Defaults to all accounts in the org. **type** `string` Comma-separated `TransactionType` values to include. Empty/absent = all types. Example: `?type=CRYPTO_PAYOUT,FIAT_PAYOUT`. **status** `string` Comma-separated `TransactionStatus` values to include. Empty/absent = all statuses. Example: `?status=COMPLETED,LOCKED`. **createdAtGte** `string` Inclusive lower bound on `createdAt` (>=). ISO8601 string. **createdAtLte** `string` Inclusive upper bound on `createdAt` (\<=). ISO8601 string. ## Response **object** `enum\` *required* Object type. Always `list` for paginated responses. **data** `object[]` *required* Array of results. **transaction attributes** **object** `enum\` *required* Object type. Always `transaction`. **transactionId** `string` *required* Unique transaction identifier. **accountId** `string` *required* Account this transaction belongs to. Always one of your organization's accounts (the listing query enforces ownership). **status** `enum\` *required* Current status. See `TransactionStatus` for transitions. One of: `EXPECTED`, `ACTION_REQUIRED`, `LOCKED`, `COMPLETED`, `DECLINED`, `REFUNDED`. **description** `string | null` *required* Optional human-readable description. **tags** `string[]` *required* Free-form tags set at create time (e.g. `["crypto_payout", "ethereum_mainnet"]`). **amount** `string | null` *required* Primary amount in major units. For most types this is the amount the customer's account moved by. For TRADE this is null — trades have two distinct assets in play; see `details.from` and `details.to` instead. **asset** `string | null` *required* Asset code of the primary amount. Null for TRADE — see `details.from` / `details.to`. **fee** `object` *required* Service-fee breakdown. Always populated; every component is zero when no service fee applied. Note: trade spread fees are NOT here — they live in `details.spread` on TRADE transactions. **child attributes** **fixed** `string` *required* Flat component charged regardless of the principal. Zero when the schedule has no fixed component. **bps** `integer` *required* Rate applied to the principal, in basis points (1 bp = 0.01%, so 50 bps = 0.5%). Zero when the schedule has no rate component. **bpsAmount** `string` *required* Rate-based component, derived from `bps` and the principal and rounded at charge time. Zero when `bps` is zero. **total** `string` *required* Total fee charged: `fixed + bpsAmount`. The single number surfaced to customers as "Fee". **asset** `string` *required* Asset code the fee is denominated in. Always matches the transaction's principal asset — fees are never FX-converted. **requiredActions** `object[]` *required* What you must still provide. While `status` is `ACTION_REQUIRED`: the documents to upload. On a `LOCKED` fiat payout waiting for corrected details: one `beneficiary_details` action with the fields to correct. Empty otherwise. **Document** A document you must upload before a held transaction can be reviewed. **type** `enum\` *required* The document type to upload. One of: `invoice`, `source_of_funds`, `counterparty_details`. **holdId** `string` *required* The hold this document is for. **Beneficiary details** Operations need corrected beneficiary details on a `LOCKED` fiat payout, before sending it or after the bank refused them. The amount is already debited and stays reserved; send the corrected `fields` to `POST /v1/transactions/\{transactionId\}/beneficiary-details`, then operations send the payout. **type** `enum\` *required* Always `beneficiary_details`. **fixRequestId** `string` *required* The correction request this action answers. **fields** `enum\[]` *required* The fields to correct. Only these are read from your answer. Each one of: `iban`, `accountNumber`, `swiftCode`, `bankName`, `beneficiaryName`, `addressLine1`, `city`, `country`. **note** `string` *required* What operations ask you to correct, in their words. **createdAt** `string` *required* When the transaction was created (platform clock). **updatedAt** `string` *required* When the transaction was last updated. **type** `enum\` *required* Transaction type. It tells you which shape `details` has. One of: `CRYPTO_PAYIN`, `CRYPTO_PAYOUT`, `FIAT_PAYIN`, `FIAT_PAYOUT`, `TRADE`, `TRANSFER`, `NXOSNET_TRANSFER`, `CREDIT_ADJUSTMENT`, `COMMISSION`, `DEBIT_ADJUSTMENT`. **details** `object` *required* Type-specific details. Open the one that matches `type`. **Crypto payin (CRYPTO\_PAYIN)** Crypto deposit details — the on-chain receipt that funded the account. **chainName** `string` *required* Chain identifier (e.g. `ETHEREUM_MAINNET`). **chainTransactionId** `string` *required* On-chain transaction hash. **fromAddress** `string | null` *required* On-chain sender address. Null when not parseable from the chain event. **toAddress** `string` *required* Destination address (one of the customer's deposit addresses). **blockHeight** `integer | null` *required* Block height the transaction landed in. **blockTimestamp** `string | null` *required* On-chain block timestamp (distinct from the platform's `createdAt`). **Crypto payout (CRYPTO\_PAYOUT)** Crypto withdrawal details. **chainName** `string` *required* Chain identifier (e.g. `ETHEREUM_MAINNET`). **chainTransactionId** `string | null` *required* On-chain transaction hash. Null while the payout is still in LOCKED state pre-broadcast. **toAddress** `string` *required* Destination address. **beneficiaryId** `string | null` *required* Beneficiary the payout was sent to. **blockHeight** `integer | null` *required* Block height once confirmed. Null while still LOCKED. **blockTimestamp** `string | null` *required* On-chain block timestamp once confirmed. Null while still LOCKED. **Fiat payin (FIAT\_PAYIN)** Fiat deposit (wire receipt) details. **method** `string` *required* Method (e.g. `WIRE`). **fundingMethodId** `string | null` *required* Funding method this deposit landed on. **senderName** `string | null` *required* Sender name as reported by the originating bank. **senderAccount** `string | null` *required* Sender's account identifier (IBAN/account number). **senderBankName** `string | null` *required* Sender's bank name. **senderBankCode** `string | null` *required* Sender's bank SWIFT/BIC. **remittanceInformation** `string | null` *required* Free-form remittance information attached to the wire. **Fiat payout (FIAT\_PAYOUT)** Fiat withdrawal (SWIFT wire) details. **beneficiaryId** `string` *required* Beneficiary the payout was sent to. **method** `string` *required* Method (e.g. `WIRE`). **bankName** `string` *required* Receiving bank name. **swiftCode** `string | null` *required* Receiving bank SWIFT/BIC. **accountNumber** `string | null` *required* Account number. **iban** `string | null` *required* IBAN. **currency** `string` *required* Currency. **country** `string | null` *required* Country code of the receiving bank. **swiftUetr** `string | null` *required* SWIFT's end-to-end reference (UETR) for the wire, once the bank has sent it. This is the handle a correspondent bank recognises, so it is what lets you or your recipient trace the payment downstream. Null until the payout settles, and on rails that have no SWIFT leg. Once the payout is `COMPLETED` and this is set, the bank's SWIFT copy can be downloaded with `GET /v1/transactions/\{transactionId\}/swift-copy`. **Trade (TRADE)** Trade (swap) details — currency conversion against the platform's quoted rate. Trades have two distinct assets in play, so amounts are nested as `Money` objects rather than flat `amount` + `asset` pairs: * `from` — what the user spent * `to` — what the user received * `spread` — fee charged for the trade (in the source asset) Note: the envelope-level `amount` and `asset` fields are NULL on trades — there's no single principal. Use `details.from` and `details.to` instead. The envelope-level `fee` (TransactionFee) is for service fees and stays zero on trades; the trade economics live entirely in `details.spread`. **from** `object` *required* Source money — what the user spent. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **to** `object` *required* Destination money — what the user received. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **spread** `object | null` *required* Spread fee charged on this trade, in the source asset. Null when no spread applied. **child attributes** **amount** `string` *required* Amount in major units (e.g. `"10.50"`). **asset** `string` *required* Asset code (e.g. `USDC`, `USD`, `EUR`). **quoteId** `string | null` *required* Quote ID this trade was executed against. Null if the trade was created outside the quote flow. **appliedRate** `string | null` *required* Applied conversion rate, as a decimal string (e.g. `"1.0850"` for EUR→USD). Always `from / to` in the natural direction. **Transfer (TRANSFER)** Internal transfer details (between accounts within the platform). **transferType** `string` *required* Subtype of internal transfer (free-form string, used by ops tooling). **Nxosnet transfer (NXOSNET\_TRANSFER)** NxosNet transfer details — instant handle-based transfer between platform users. **beneficiaryId** `string` *required* Beneficiary the transfer was sent to (sender side). **targetHandle** `string` *required* Recipient's NxosNet handle. **targetOrganizationName** `string | null` *required* Recipient organization's display name. Null if the recipient has hidden their org name. **sourceHandle** `string | null` *required* Sender's NxosNet handle (recipient side). **sourceOrganizationName** `string | null` *required* Sender organization's display name. Null if the sender has hidden their org name. **note** `string | null` *required* Free-form note attached to the transfer. **Credit adjustment (CREDIT\_ADJUSTMENT)** Credit adjustment details — ex-gratia credit issued by the platform (promo, apology, goodwill, correction). **kind** `enum\` *required* Credit adjustment kind — analytics discriminator. One of: `PROMO`, `APOLOGY`, `GOODWILL`, `CORRECTION`. **reason** `string` *required* Human-readable reason shown on the customer's transaction history. **Commission (COMMISSION)** Commission details — referral commission paid to a referrer. **sourceTransactionId** `string` *required* Source transaction (the trade that earned this commission). **referralLinkId** `string` *required* Referral link the commission was earned through. **referredOrganizationId** `string` *required* The org whose trade earned this commission (the referred org). **referredOrganizationName** `string` *required* Display name of the referred org. **appliedCommissionBps** `integer` *required* Commission rate applied at payment time, in basis points (10000 = 100%). Snapshotted — survives later settings changes. **Debit adjustment (DEBIT\_ADJUSTMENT)** Debit adjustment details — platform-initiated debit (the banking-statement "debit adjustment"). **kind** `enum\` *required* Debit adjustment kind — analytics discriminator. One of: `ACCOUNT_CLOSURE`, `CORRECTION`, `OTHER`. **reason** `string` *required* Human-readable reason shown on the customer's transaction history. **hasMore** `boolean` *required* Whether more results are available beyond this page. **nextCursor** `string | null` *required* Cursor to pass as `cursor` query parameter for the next page. Null when there are no more results. ```json 200 theme={null} { "object": "list", "data": [ { "object": "transaction", "transactionId": "txn_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "status": "COMPLETED", "description": null, "tags": [], "amount": "250.000000", "asset": "USDC", "fee": { "fixed": "0.000000", "bps": 0, "bpsAmount": "0.000000", "total": "0.000000", "asset": "USDC" }, "requiredActions": [], "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z", "type": "CRYPTO_PAYIN", "details": { "chainName": "ETHEREUM_MAINNET", "chainTransactionId": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060", "fromAddress": "0x8d12a197cb00d4747a1fe03395095ce2a5cc6819", "toAddress": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be", "blockHeight": 21634512, "blockTimestamp": "2025-01-15T10:29:47.000Z" } } ], "hasMore": false, "nextCursor": null } ``` ```json 400 theme={null} { "error": { "code": "invalid_request", "message": "Invalid accountId.", "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" } } ``` ```json 403 theme={null} { "error": { "code": "verification_required", "message": "Complete identity verification before using the API.", "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" } } ``` ```json 404 theme={null} { "error": { "code": "account_not_found", "message": "Account not found.", "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" } } ``` # Download a SWIFT copy Source: https://docs.nxos.io/api-reference/transactions/swift-copy GET /v1/transactions/{transactionId}/swift-copy Download the bank's SWIFT copy of a completed SWIFT payout: the PDF of the SWIFT message (pacs.008) that sent the payment, as the bank issued it. Available once the payout is `COMPLETED` and its `swiftUetr` is set. The file is fetched from the bank on each call, and the bank serves each file a limited number of times: download it once and keep it. On `swift_copy_not_ready`, retry no more than every few minutes. Supports `Nxos-On-Behalf-Of` on the same terms as retrieving a transaction. # Create endpoint Source: https://docs.nxos.io/api-reference/webhooks/create POST /v1/webhooks/endpoints Register a webhook endpoint for the calling organization. # Delete endpoint Source: https://docs.nxos.io/api-reference/webhooks/delete DELETE /v1/webhooks/endpoints/{endpointId} Delete a webhook endpoint. # organization.verification.updated Source: https://docs.nxos.io/api-reference/webhooks/events/organization-verification-updated An organization's verification (KYC/KYB) status changed. Sent to the organization, and to its broker whether or not a Letter of Authorization is signed. See [Webhooks](/concepts/webhooks) for delivery, signatures and retries. # report.failed Source: https://docs.nxos.io/api-reference/webhooks/events/report-failed A report could not be generated. Request it again. Request the report again with [`POST /v1/reports`](/api-reference/reports/create). Sent to the organization, and to its broker once the client has signed a Letter of Authorization. See [Reports](/guides/reports). # report.ready Source: https://docs.nxos.io/api-reference/webhooks/events/report-ready A report is ready to download. Download the file from [`GET /v1/reports/{report_id}/download`](/api-reference/reports/download). Sent to the organization, and to its broker once the client has signed a Letter of Authorization. See [Reports](/guides/reports). # transaction.action_required Source: https://docs.nxos.io/api-reference/webhooks/events/transaction-action-required A transaction waits on you: documents to upload for a held transaction, or the beneficiary details of a fiat payout waiting to be sent. Sent to the organization, and to its broker once the client has signed a Letter of Authorization. An endpoint subscribed to a fixed list of event types receives it only once `transaction.action_required` is in its `eventTypes`. See [Webhooks](/concepts/webhooks) for delivery, signatures and retries. # transaction.status.updated Source: https://docs.nxos.io/api-reference/webhooks/events/transaction-status-updated A transaction changed status. Fires on every transition. Sent to the organization, and to its broker once the client has signed a Letter of Authorization. See [Webhooks](/concepts/webhooks) for delivery, signatures and retries. # Get endpoint Source: https://docs.nxos.io/api-reference/webhooks/get GET /v1/webhooks/endpoints/{endpointId} Retrieve a webhook endpoint by id. # Get signing secret Source: https://docs.nxos.io/api-reference/webhooks/get-secret GET /v1/webhooks/endpoints/{endpointId}/secret Fetch an endpoint's signing secret, used to verify webhook signatures. # List endpoints Source: https://docs.nxos.io/api-reference/webhooks/list GET /v1/webhooks/endpoints List the calling organization's webhook endpoints. # Rotate signing secret Source: https://docs.nxos.io/api-reference/webhooks/rotate-secret POST /v1/webhooks/endpoints/{endpointId}/secret/rotate Rotate an endpoint's signing secret. The previous secret stops verifying immediately. # Update endpoint Source: https://docs.nxos.io/api-reference/webhooks/update PATCH /v1/webhooks/endpoints/{endpointId} Update a webhook endpoint. # Changelog Source: https://docs.nxos.io/changelog What changed in the Nxos API, newest first. Each entry is one release. When a change needs something from you, the entry starts with what to do. Follow the RSS feed to hear about the next one. **5 November 2026** ## Fiat payments in review, and beneficiary details to correct > [!WARNING] > > Check `type` before reading `holdId` in `requiredActions`, and in `required_actions` of the `transaction.action_required` webhook. They used to list only documents to upload, each with a `holdId`. They can now also hold a `beneficiary_details` action, which has no `holdId`, on a `LOCKED` payout that is already debited. ### Fiat payments in review A fiat payout or deposit can be held for review. A held payout answers `202` and nothing is debited. A deposit in review isn't credited until it's approved. If we need a document, the transaction moves to `ACTION_REQUIRED` and you upload it the same way as for any held payment. ### Correct a payout's beneficiary details Before sending a fiat payout, or when the bank refuses it, our operations team can ask you to correct its beneficiary details. The payout stays `LOCKED` and its amount stays reserved. We send [`transaction.action_required`](/api-reference/webhooks/events/transaction-action-required) and an email to your organization, and the payout's `requiredActions` lists the fields to correct with a note from our operations team. Send the corrected fields, and our operations team sends the payout. The beneficiary is updated for your next payouts too. `POST /v1/transactions/{id}/beneficiary-details` · [Reference](/api-reference/transactions/beneficiary-details) · [Guide](/guides/offramp#when-the-beneficiary-details-need-correcting) ### Also * Starting verification for an organization that is blocked or was rejected answers `409 verification_closed`. [Start verification](/api-reference/organizations/start-verification) **30 October 2026** ## Held payments, reports and SWIFT copies > [!WARNING] > > * Treat a `202` on a payout or transfer as accepted, not failed, and don't send it again. > * Add `ACTION_REQUIRED` wherever you map transaction statuses. > * If your webhook endpoint subscribes to a list of `eventTypes`, add `transaction.action_required`, `report.ready` and `report.failed`. ### Payments held for review A fiat payout, crypto payout or Nxosnet transfer can be held for review. The request answers `202` with the held transaction, and nothing is debited yet. When we need an invoice, proof of source of funds or details about the counterparty, the transaction moves to `ACTION_REQUIRED` and we send [`transaction.action_required`](/api-reference/webhooks/events/transaction-action-required). Upload the files through the API: PDF, PNG or JPEG, up to 20 MB, up to 5 per document type. 1. `POST /v1/transactions/{id}/documents` creates the upload and returns a link. 2. Send the file to that link. 3. `POST …/documents/{documentId}/complete` tells us it's there. ### Reports Get the dashboard's documents through the API: account and transaction statements (PDF or CSV), balance certificates, bank confirmation letters and the monthly statements. Request a report, wait for `report.ready`, then download it. A broker can request them for a client with `Nxos-On-Behalf-Of`. `POST /v1/reports` · `GET /v1/reports/{id}/download` · [Reports guide](/guides/reports) ### SWIFT copy of a payout Download the bank's SWIFT message (pacs.008, as a PDF) for a completed SWIFT payout. It's the proof to send a recipient who says the money hasn't arrived. Each copy can be downloaded a limited number of times, so download it once and keep it. `GET /v1/transactions/{id}/swift-copy` · [Reference](/api-reference/transactions/swift-copy) ### Also * Each asset in [`GET /v1/assets`](/api-reference/assets/list) has `swappableTo`, the assets it converts into. * [Executing a quote](/api-reference/quotes/execute) on a balance that's too low answers `400 insufficient_funds`, and the quote becomes `FAILED`. * Send `Content-Type: application/json` with every JSON body. Without it, the request can be refused with `400 invalid_request`. * Every endpoint in the reference lists the errors it can return, with a real example of each. [Errors](/concepts/errors) **23 October 2026** ## Compliance checks and adjustments > [!WARNING] > > * Transactions come back as `CREDIT_ADJUSTMENT` instead of `ADJUSTMENT`. Update your code and handle the new `DEBIT_ADJUSTMENT`. > * A blocked beneficiary's `blockReason` is `COMPLIANCE_CHECK` instead of `ADDRESS_SCREENING`. > * A crypto beneficiary's address can't be changed. To pay a new address, archive the beneficiary and create a new one. ### Compliance checks on transactions Payouts, trades and Nxosnet transfers go through compliance checks before they run. A refused one answers `409 transaction_blocked`. A new crypto beneficiary can be `BLOCKED` as soon as it's created. ### Credit and debit adjustments `ADJUSTMENT` is renamed `CREDIT_ADJUSTMENT`, and the new `DEBIT_ADJUSTMENT` is money we take back: a credit booked in error, or a residual balance when an account closes. Its `details` give the `kind` and a `reason`. `ADJUSTMENT` still works as a `type` filter. [List transactions](/api-reference/transactions/list) ### Also * [`PATCH`](/api-reference/beneficiaries/update) on a beneficiary ignores `walletAddress`. * With `Nxos-On-Behalf-Of`, a broker can read a client's balances and history whatever the client's status, as long as the authorization isn't revoked. [Cross-org access](/guides/cross-org-access) * [`organization.verification.updated`](/api-reference/webhooks/events/organization-verification-updated) can carry `REJECTED`: final, the organization can't verify again. **12 October 2026** ## List the assets you can receive `GET /v1/assets` lists the assets your organization can receive, with their scale and whether they're already enabled. Pass any of them to `POST /v1/funding-methods` to get deposit details. Brokers can list a client's assets with `Nxos-On-Behalf-Of`. [List assets](/api-reference/assets/list) ### Also * A `BLOCKED` beneficiary has a `blockReason`, and the block is permanent. [Beneficiary statuses](/concepts/beneficiaries#statuses) **8 October 2026** ## Sign-up links for your customers Issue a sign-up link locked to one customer's email. The customer can only sign up with that address, and the new organization is attributed to you. Asking again for the same email renews the link. You can also list your shared referral links and how many sign-ups each brought. `POST /v1/referral-invites` · `GET /v1/referral-links` · [Sign-up links guide](/guides/partner-sign-up-links) ### Also * A quote below the minimum or above the maximum size for its pair answers `400 trade_size_out_of_bounds`, with both limits in the message. [Create a quote](/api-reference/quotes/create) **2 October 2026** ## Bank details while a named account opens > [!WARNING] > > Don't show deposit details while `detailsStatus` is `PENDING`. List the funding methods again later rather than fetching this one by ID. Bank funding methods have `detailsStatus`. While your named account for the currency is being opened it's `PENDING`, and the account number, IBAN, beneficiary name, address and reference are `null`. Once the account is open, the details arrive on a new `NAMED` funding method that replaces this one. [Funding methods](/api-reference/funding-methods/list) ### Also * A fiat deposit under review can show up as `EXPECTED` before it settles. **23 September 2026** ## Blocked beneficiaries stay Archiving a `BLOCKED` beneficiary answers `409 beneficiary_blocked`. **18 September 2026** ## Verification required everywhere > [!WARNING] > > Handle `403 verification_required`, and finish verification before you call anything else. Until your organization's verification is `APPROVED`, every endpoint except `/v1/organizations/verification*` answers `403 verification_required`. [Verification guide](/guides/verification) ### Also * Brokers can choose the tier the clients they create start on, with `GET` and `PUT /v1/sub-org-tiers/default`. Clients already on a tier don't move. [Broker pricing](/guides/broker-pricing) **4 September 2026** ## Purpose codes on fiat payouts > [!WARNING] > > Send `purpose` on every fiat payout. It's optional while integrations migrate and will become required. Fiat payouts take a `purpose`, an ISO 20022 purpose code sent with the wire. Send the one that describes the payment, not a fixed default. `GET /v1/transactions/fiat-payouts/options` lists the accepted codes with a label to show your users. [Payout options](/api-reference/fiat-payouts/options) ### Also * Fiat payouts have `swiftUetr`, the reference correspondent banks use to trace a wire, once the payout settles. [Initiate a fiat payout](/api-reference/fiat-payouts/initiate) **18 August 2026** ## Deposits under review stay hidden A fiat deposit held for review isn't returned by the API until it's credited. The first `transaction.status.updated` you receive for it is `COMPLETED`. **14 August 2026** ## Sandbox faucet needs an approved organization The [sandbox faucet](/api-reference/sandbox/faucet) answers `403 verification_required` until your organization's verification is `APPROVED`. **7 August 2026** ## Pricing tiers for your clients List the tiers agreed with you and put a client you created on one. A tier sets the spread the client is quoted and the share of it you earn, from their next quote. A client reading its own organization sees its tier without your share. `GET /v1/sub-org-tiers` · `PUT /v1/organizations/sub-org-tier` · [Broker pricing](/guides/broker-pricing) ### Also * Bank funding methods have `accountModel`. `NAMED` is an account in your organization's own name, with its own IBAN and no reference to quote. `SHARED` is pooled, and the `reference` must be on the transfer. [Funding methods](/api-reference/funding-methods/list) # Accounts Source: https://docs.nxos.io/concepts/accounts Accounts hold balances and serve as the source for all transactions. ## Overview An account is the central resource in the Nxos platform. Every organization starts with one **primary account** created automatically during onboarding. Accounts hold multi-currency balances and are the source and destination for all financial operations — trades, payouts, and deposits. ## Account structure ```json theme={null} { "object": "account", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "name": "Main", "description": null, "isPrimary": true, "status": "ACTIVE", "fundingMethods": [], "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z" } ``` ## Statuses | Status | Description | | - | - | | `ACTIVE` | Normal operation. Can hold balances and process transactions. | | `SUSPENDED` | Temporarily frozen. Balances are preserved but no new transactions are allowed. | | `CLOSED` | Permanently closed. Cannot be reopened. | ## Balances Retrieve an account by ID to see its current balances: ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts/acct_a1b2c3d4... \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "account", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "name": "Main", "isPrimary": true, "status": "ACTIVE", "balances": [ { "object": "balance", "asset": "USD", "amount": "15000.00" }, { "object": "balance", "asset": "USDC", "amount": "5000.000000" } ], "fundingMethods": [], "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z" } ``` Each balance entry includes the asset code and the amount in [major units](/concepts/assets-and-amounts). Balances are fetched from the ledger in real time — the response always reflects the current state. An account only shows balances for assets it has held at some point. A newly created account with no deposits returns an empty `balances` array. ## Funding methods Funding methods represent the rails through which money enters an account — bank accounts for fiat deposits, crypto wallets for on-chain receives. They are provisioned during account setup and attached to the account automatically. ```json theme={null} { "object": "funding_method", "fundingMethodId": "funding_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "name": "USD Wire", "type": "BANK_ACCOUNT", "status": "ACTIVE", "createdAt": "2025-01-15T10:30:00.000Z" } ``` ## Ownership Accounts belong to an organization. Your API key is scoped to a single organization, so you can only access accounts within that organization. All operations that reference an `accountId` — creating quotes, listing beneficiaries, initiating payouts — verify ownership before proceeding. # Assets and amounts Source: https://docs.nxos.io/concepts/assets-and-amounts How the API represents currencies, amounts, and precision. ## Assets An asset is a currency or token that can be held, traded, and paid out. Each asset has a **code** (uppercase identifier) and a **scale** (number of decimal places). | Code | Type | Scale | Example amount | | - | - | - | - | | `USD` | Fiat | 2 | `"10.50"` | | `EUR` | Fiat | 2 | `"100.00"` | | `USDC` | Stablecoin | 6 | `"10.500000"` | | `USDT` | Stablecoin | 6 | `"99.970000"` | Asset codes appear throughout the API — in quote requests (`fromAsset`, `toAsset`), payout bodies (`asset`), and balance responses. ### Which assets your organization can use [`GET /v1/assets`](/api-reference/assets/list) lists the assets your organization can receive, with their name, type and scale: * `ENABLED`: already active for your organization. * `AVAILABLE`: not active yet. The first [`POST /v1/funding-methods`](/api-reference/funding-methods/create) for it activates it. Pass any listed `code` as `asset` to `POST /v1/funding-methods` to get its deposit details. An asset that is not listed is not available to your organization; contact us if you need it. Each asset also lists `swappableTo`: the asset codes your organization can convert it into, as `toAsset` of [`POST /v1/quotes`](/api-reference/quotes/create) with this asset as `fromAsset`. It is empty when no conversion out of the asset is enabled. It is directional: `USD` listing `EUR` does not mean `EUR` lists `USD`. ## Amounts All monetary amounts are **strings in major units** — the human-readable form of the currency. Ten US dollars is `"10.50"`, not `1000` or `10.5`. ```json theme={null} { "amount": "10.50", "asset": "USD" } ``` Amounts are always returned at the asset's **native precision**. A USD amount always has 2 decimal places; a USDC amount always has 6. This makes responses predictable — you never need to guess how many decimals to expect. ### Why strings? JSON has no decimal type. A JSON number like `10.50` may lose its trailing zero when parsed, and large values can exceed the precision of IEEE 754 floating-point numbers. Strings preserve the exact representation. > [!WARNING] > > Parse amounts as arbitrary-precision decimals (e.g., `BigDecimal` in Java, `Decimal` in Python, `big.js` in JavaScript). Floating-point arithmetic introduces rounding errors that accumulate in financial calculations. ## Precision rules When sending amounts to the API (e.g., in quote requests or payout bodies), provide them in major units as strings. The API validates that: 1. The value is a valid decimal string 2. The number of decimal places does not exceed the asset's scale Amounts with too many decimal places are rejected with a `validation_error`. # Authentication Source: https://docs.nxos.io/concepts/authentication API key management and request authentication. Every request to the Nxos API must include an API key. Keys are scoped to a single organization and carry full access to that organization's resources. ## Obtaining an API key API keys are created in the [Nxos dashboard](https://app.nxos.io). Each key is shown once at creation time — store it securely. If you lose a key, revoke it and create a new one. Keys follow the format: ``` nxos_sk_live_... # production nxos_sk_test_... # sandbox ``` ## Authenticating requests Pass your API key as a Bearer token in the `Authorization` header: ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts \ -H "Authorization: Bearer nxos_sk_test_abc123..." ``` Every authenticated response includes a `requestId` in error bodies. Quote this ID when contacting support. ## Error responses Missing or invalid keys return a `401` status: ```json theme={null} { "error": { "code": "invalid_api_key", "message": "The provided API key is invalid.", "requestId": "req_abc123" } } ``` | Error code | Meaning | | - | - | | `missing_api_key` | No `Authorization` header, or it doesn't start with `Bearer `. | | `invalid_api_key` | The key doesn't exist or has been revoked. | | `authentication_failed` | Key verification failed due to a server error. Retry the request. | ## Security recommendations * Never embed API keys in client-side code. They should only be used server-to-server. * Use sandbox keys (`nxos_sk_test_...`) during development. They cannot access production resources. * Rotate keys periodically. You can have multiple active keys per organization. * Revoke compromised keys immediately from the dashboard. # Beneficiaries Source: https://docs.nxos.io/concepts/beneficiaries Recipients for payouts — crypto wallets and bank accounts. ## Overview A beneficiary is a registered recipient for payouts. Before you can send money from an account, you create a beneficiary that describes *where* the money should go. There are two types: | Type | Use case | Required fields | | - | - | - | | `CRYPTO` | On-chain payout to a wallet address | `chainName`, `address` | | `BANK` | Fiat payout to a bank account | `bankName`, `method`, `currency` | Beneficiaries are scoped to an account. The same recipient can be registered as a beneficiary on multiple accounts if needed. ## Unified response shape All beneficiary endpoints return the same `Beneficiary` object. The `type` field tells you which detail object is populated: ```json theme={null} { "object": "beneficiary", "beneficiaryId": "bene_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "type": "CRYPTO", "nickname": "Treasury Wallet", "status": "ACTIVE", "blockReason": null, "entityType": null, "email": null, "phoneNumber": null, "firstName": null, "lastName": null, "businessName": null, "country": null, "crypto": { "chainName": "ethereum", "chainDisplayName": "Ethereum", "platform": "EVM", "address": "0x1234...abcd" }, "bank": null, "createdAt": "2025-03-10T12:00:00.000Z" } ``` For a bank beneficiary, `crypto` is `null` and `bank` contains the bank details: ```json theme={null} { "type": "BANK", "crypto": null, "bank": { "bankName": "Deutsche Bank", "swiftCode": "DEUTDEFF", "iban": "DE89370400440532013000", "bankCountry": "DE", "method": "SEPA", "currency": "EUR", "intermediaryBankName": null, "intermediarySwiftCode": null, "intermediaryBankAddress": null } } ``` This design means you never need to handle different response shapes per type — the structure is always the same, only the populated fields differ. ## Creating beneficiaries Crypto and bank beneficiaries have separate creation endpoints because their required fields differ. ### Crypto beneficiary ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/beneficiaries/crypto \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "nickname": "Treasury Wallet", "chainName": "ethereum", "address": "0x1234567890abcdef1234567890abcdef12345678" }' ``` ### Bank beneficiary ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/beneficiaries/bank \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "nickname": "EUR Treasury", "bankName": "Deutsche Bank", "method": "SEPA", "currency": "EUR", "swiftCode": "DEUTDEFF", "iban": "DE89370400440532013000" }' ``` Both endpoints accept optional shared fields — identity information (`entityType`, `firstName`, `lastName`, `businessName`), contact details (`email`, `phoneNumber`), and address fields. These are stored with the beneficiary and can be updated later. ## Shared identity fields Every beneficiary can carry identity and compliance information: | Field | Description | | - | - | | `entityType` | `INDIVIDUAL` or `BUSINESS` | | `firstName`, `lastName` | Individual's name | | `businessName` | Business name | | `email`, `phoneNumber` | Contact details | | `country` | Country code (ISO 3166-1 alpha-2) | | `addressLine1`, `addressLine2`, `city`, `region`, `zipCode` | Physical address | | `taxId`, `taxIdType` | Tax identification | | `tags` | Free-form string tags (max 20, each up to 100 chars) | | `metadata` | Arbitrary key-value pairs (max 50 keys, max 4 KB) | These fields are nullable. In list responses, they may be `null` for brevity. Fetch a single beneficiary to see all populated fields. ## Updating and archiving Use `PATCH /v1/beneficiaries/{beneficiaryId}` to update shared fields or the nickname. The `accountId` must be included in the request body for ownership verification. To remove a beneficiary, use `DELETE /v1/beneficiaries/{beneficiaryId}`. This archives (soft-deletes) the record — it remains in the system for audit purposes but no longer appears in list responses and cannot be used for new payouts. ## Statuses | Status | Description | | - | - | | `ACTIVE` | Can be used for payouts. | | `INACTIVE` | Temporarily disabled. | | `BLOCKED` | Blocked by compliance. Cannot be used. | | `ARCHIVED` | Soft-deleted. Preserved for records. | When `status` is `BLOCKED`, `blockReason` says why. It is `null` for any other status. | Block reason | Description | | - | - | | `ADDRESS_SCREENING` | The address was flagged by NXOS blockchain address screening. The block is permanent and cannot be appealed through the API. | # Conventions Source: https://docs.nxos.io/concepts/conventions Amounts, pagination, timestamps, and other API-wide patterns. ## Amounts All monetary amounts in the API are **strings in major units** — the human-readable form of the currency. For example, ten US dollars is `"10.00"`, not `1000`. ```json theme={null} { "amount": "10.50", "asset": "USD" } ``` Amounts are always returned at the asset's **native precision**: | Asset | Scale | Example | Meaning | | - | - | - | - | | `USD` | 2 | `"10.50"` | \$10.50 | | `EUR` | 2 | `"100.00"` | 100.00 | | `USDC` | 6 | `"10.500000"` | 10.5 USDC | | `USDT` | 6 | `"99.970000"` | 99.97 USDT | > [!WARNING] > > Parse amounts as arbitrary-precision decimals, never as floating-point numbers. Floating-point arithmetic introduces rounding errors that accumulate in financial calculations. ### Why strings? JSON has no decimal type. A JSON number like `10.50` may lose its trailing zero when parsed, and large values can lose precision in IEEE 754 floats. Strings preserve the exact representation. Internally, the platform stores all amounts as integer subunits (e.g., `1050` for \$10.50) and converts to major-unit strings at the API boundary. This eliminates floating-point arithmetic entirely within the system. ## Assets Assets are identified by their uppercase code: `USD`, `EUR`, `USDC`, `USDT`. The API currently supports: | Code | Type | Scale (decimal places) | | - | - | - | | `USD` | Fiat | 2 | | `EUR` | Fiat | 2 | | `USDC` | Stablecoin | 6 | | `USDT` | Stablecoin | 6 | Asset codes are used throughout the API — in quote requests, payout amounts, and balance responses. ## Pagination List endpoints return a standard envelope: ```json theme={null} { "object": "list", "data": [ ... ], "hasMore": true, "nextCursor": "cursor_abc123" } ``` | Field | Type | Description | | - | - | - | | `object` | `"list"` | Always `"list"` for paginated responses. | | `data` | array | The page of results. | | `hasMore` | boolean | `true` if more results exist beyond this page. | | `nextCursor` | string \| null | Pass as the `cursor` query parameter to fetch the next page. `null` when there are no more results. | Control page size with the `limit` query parameter (default 25, max 100): ```bash theme={null} curl "https://api.sandbox.nxos.io/v1/accounts?limit=10&cursor=cursor_abc123" \ -H "Authorization: Bearer nxos_sk_test_..." ``` ## Timestamps All timestamps are ISO 8601 strings in UTC: ``` "2025-03-15T14:30:00.000Z" ``` ## Object types Every resource includes an `object` field that identifies its type. This makes responses self-describing and simplifies handling of polymorphic lists. ```json theme={null} { "object": "account", "accountId": "acct_..." } { "object": "quote", "quoteId": "quote_..." } { "object": "beneficiary", "beneficiaryId": "bene_..." } { "object": "balance", "asset": "USD", "amount": "100.00" } ``` ## Identifiers All resource IDs are prefixed with a short type indicator followed by a 32-character hex string: | Resource | Prefix | Example | | - | - | - | | Account | `acct_` | `acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4` | | Quote | `quote_` | `quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4` | | Beneficiary | `bene_` | `bene_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4` | | Transaction | `txn_` | `txn_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4` | | Funding method | `funding_` | `funding_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4` | The prefix makes IDs unambiguous when seen in logs, URLs, or support conversations. # Errors Source: https://docs.nxos.io/concepts/errors Error response format and error codes. ## Error format All errors follow a consistent envelope: ```json theme={null} { "error": { "code": "account_not_found", "message": "Account not found.", "requestId": "req_abc123" } } ``` | Field | Description | | - | - | | `code` | Machine-readable error code. Use this for programmatic handling. | | `message` | Human-readable description. Intended for developers, not end users. Messages may change without notice. | | `requestId` | Unique request identifier. Include this when contacting support. | ## HTTP status codes | Status | Meaning | | - | - | | `400` | Bad request — invalid syntax, missing required fields, or validation failure. | | `401` | Unauthorized — missing or invalid API key. | | `403` | Forbidden — the API key is valid but lacks permission for this action. | | `404` | Not found — the requested resource does not exist, or does not belong to your organization. | | `409` | Conflict — the action conflicts with the resource's current state (e.g., archiving an already-archived beneficiary, executing an expired quote). | | `422` | Unprocessable entity — the request body failed schema validation. | | `429` | Too many requests. Your organization exceeded its rate limit. See [Idempotency and rate limits](/concepts/idempotency-and-rate-limits). | | `500` | Internal error — something went wrong on our end. Retry the request. | | `502` | Upstream error — a dependent service failed (e.g., blockchain node). Retry the request. | ## Error codes ### Authentication | Code | HTTP | Description | | - | - | - | | `missing_api_key` | 401 | No `Authorization` header, or it doesn't start with `Bearer `. | | `invalid_api_key` | 401 | The key doesn't exist or has been revoked. | | `authentication_failed` | 401 | Key verification failed due to a server error. Retry. | | `forbidden` | 403 | API key is valid but not authorized for this action. | | `acting_org_not_found` | 403 | The `Nxos-On-Behalf-Of` header points to an organization that does not exist. | | `authorization_required` | 403 | The `Nxos-On-Behalf-Of` target exists, but your organization holds no effective authorization (LOA) on it. Reads of accounts and transactions need only an LOA that is not revoked. See [Cross-org access](/guides/cross-org-access). | ### Resource lookup | Code | HTTP | Description | | - | - | - | | `not_found` | 404 | Generic resource not found. | | `organization_not_found` | 404 | Organization does not exist. | | `account_not_found` | 404 | Account does not exist or does not belong to your organization. | | `quote_not_found` | 404 | Quote does not exist. | | `beneficiary_not_found` | 404 | Beneficiary does not exist or does not belong to the specified account. | | `transaction_not_found` | 404 | Transaction does not exist or is not on one of your accounts. | | `funding_method_not_found` | 404 | Funding method does not exist or does not belong to your organization. | | `authorization_not_found` | 404 | The referenced authorization (LOA) grant does not exist. | | `nxosnet_handle_not_found` | 404 | No NXOS organization matches the supplied nxosnet handle. | | `report_not_found` | 404 | The report doesn't exist or doesn't belong to your organization. | | `swift_copy_not_found` | 404 | The transaction is not a completed SWIFT payout on one of your accounts, so it has no SWIFT copy. | ### Business logic | Code | HTTP | Description | | - | - | - | | `quote_expired` | 409 | The quote has expired, or it failed (for example on `insufficient_funds`). Create a new one. | | `quote_already_used` | 409 | The quote has already been executed. | | `beneficiary_already_archived` | 409 | The beneficiary is already archived. | | `beneficiary_not_archived` | 409 | The beneficiary is not archived, so it cannot be restored. | | `beneficiary_blocked` | 409 | The beneficiary is blocked for compliance reasons and cannot be used. | | `nxosnet_not_enabled` | 409 | The target organization has not enabled NXOS-to-NXOS transfers. | | `fee_schedule_drifted` | 409 | The fee schedule changed since the quote was issued. Re-quote and retry. | | `referral_invite_already_accepted` | 409 | This email already signed up through your referral invite. Send the customer to sign in instead. | | `idempotency_key_in_use` | 409 | The supplied `Idempotency-Key` was previously used with a different request body. Use a unique key per logical operation. | | `idempotency_request_in_flight` | 409 | A request with the same `Idempotency-Key` is currently being processed. Retry shortly. | | `report_not_ready` | 409 | The report is still being generated, or failed. Download it once its `status` is `READY`. | | `too_many_pending_reports` | 409 | Your organization already has 5 reports being generated. Request more once they are ready. | | `swift_copy_not_ready` | 409 | The payout settled, but the bank has not produced its SWIFT copy yet. Retry in a few minutes. | | `trade_size_out_of_bounds` | 400 | The trade is below the minimum or above the maximum size for this pair. The `message` gives the allowed range. | | `insufficient_funds` | 400 | The account does not have enough balance for this operation. On a quote execution, the quote is closed: request a new quote once the account is funded. | ### Validation and system | Code | HTTP | Description | | - | - | - | | `validation_error` | 422 | Request body failed schema validation. Check the `message` for details. | | `invalid_request` | 400 | The request is malformed or contains invalid parameters. | | `share_token_invalid` | 400 | The supplied verification share token is invalid or expired. | | `verification_import_unsupported` | 400 | Verification import is not supported for the supplied provider or payload. | | `rate_limited` | 429 | Your organization exceeded its request quota. Wait for the `Retry-After` header before retrying. See [Idempotency and rate limits](/concepts/idempotency-and-rate-limits). | | `chain_send_failed` | 502 | The on-chain transaction could not be submitted. | | `webhooks_unavailable` | 502 | The webhooks service is temporarily unavailable. Retry the request. | | `bank_unavailable` | 502 | The bank did not answer. Retry in a few minutes. | | `internal_error` | 500 | Unexpected server error. Retry the request, unless the `message` says not to retry: then money may already have moved, so contact support with the `requestId`. See [Idempotency and rate limits](/concepts/idempotency-and-rate-limits). | ## Handling errors ```javascript theme={null} const response = await fetch('https://api.sandbox.nxos.io/v1/quotes', { method: 'POST', headers: { 'Authorization': 'Bearer nxos_sk_test_...', 'Content-Type': 'application/json', }, body: JSON.stringify({ /* ... */ }), }); if (!response.ok) { const { error } = await response.json(); switch (error.code) { case 'insufficient_funds': // Handle insufficient balance break; case 'validation_error': // Handle invalid input break; default: // Log requestId for debugging console.error(`API error: ${error.code} (${error.requestId})`); } } ``` > [!NOTE] > > Always include the `requestId` when reporting issues. It lets us trace the exact request through our systems. # Idempotency and rate limits Source: https://docs.nxos.io/concepts/idempotency-and-rate-limits Safe retries with the Idempotency-Key header, and the per-organization request quota. ## Idempotency A request might time out before you read the response. You don't know if it ran. Replaying it could create a duplicate payout, beneficiary, or quote. The `Idempotency-Key` header solves this. Pass a unique value on every write request. We cache the response for 24 hours keyed by `(organization, key, method, path)`. A retry within that window returns the cached response. The handler does not run twice. ### How to use it Generate a unique key per operation (UUID v4 is fine) and send it on any non-GET request: ```bash theme={null} curl -X POST https://api.nxos.io/v1/quotes \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_...", "fromAsset": "USD", "toAsset": "USDC", "fromAmount": "100.00" }' ``` The header is optional. If you omit it, the request runs as usual with no replay protection. ### Outcomes | Scenario | Outcome | | - | - | | First request with a fresh key | Handler runs. Response is cached and returned. | | Retry, same key, same body, response cached | Cached response is returned. The `Idempotent-Replayed: true` header is set so you can detect the cache hit. | | Retry, same key, same body, original still in flight | `409 idempotency_request_in_flight`. Wait briefly and retry. | | Retry, same key, different body | `409 idempotency_key_in_use`. You reused the key for a different operation. Generate a new key. | | Original returned `5xx` | Not cached. The next attempt re-acquires the key and runs the handler. One exception below. | ### Caching policy We cache `2xx` and `4xx` responses. Same key + same body always returns the same response. A cached `4xx` stays the answer for that key. Once you have fixed the cause, for example by funding the account after `insufficient_funds`, send the request again under a new key. We do not cache `5xx`. Server errors are usually transient. Your retry should hit a healthy server, not a stale cached failure. > [!WARNING] > > One `500` is cached: when money has already moved but we could not record the request. Its message tells you not to retry, and the same key replays it for 24 hours. Do not resend the request under a new key, as that could move the money a second time. Contact support with the `requestId`. ### Key requirements * Maximum 255 characters * Unique per logical operation (UUID v4 recommended) * Reuse the same key for retries of the same operation. Do not reuse it for a different operation. ### Scope Keys are scoped per organization, per HTTP method, per request path. The same key value is independent across `POST /v1/quotes` and `POST /v1/transactions/crypto-payouts`. They are different operations. GET endpoints ignore the header. ## Rate limits Every API endpoint is rate-limited per organization. The default cap is **1,000 requests per minute**, applied as a tumbling 60-second window. ### Per organization, not per key Limits apply to your organization. Creating more API keys does not raise your quota. Your throughput is one number across all your keys. ### Response headers Every successful response (and every `429`) includes these headers so you can pace yourself before hitting the limit: | Header | Value | | - | - | | `X-RateLimit-Limit` | The cap configured for your organization. | | `X-RateLimit-Remaining` | Requests left in the current window. | | `X-RateLimit-Reset` | Unix timestamp (seconds) when the window resets. | ```http theme={null} HTTP/1.1 200 OK X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 873 X-RateLimit-Reset: 1714323600 Content-Type: application/json ``` ### When you exceed the limit Requests beyond the cap return `429 rate_limited` with a `Retry-After` header indicating seconds until the window resets: ```http theme={null} HTTP/1.1 429 Too Many Requests Retry-After: 23 X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 0 X-RateLimit-Reset: 1714323623 Content-Type: application/json { "error": { "code": "rate_limited", "message": "Rate limit exceeded: 1000 requests per minute. Retry in 23 seconds.", "requestId": "req_abc..." } } ``` The next window admits you immediately. Wait for `Retry-After` rather than retrying right away. ### Handling 429 in your client ```javascript theme={null} async function callWithBackoff(url, init, maxAttempts = 3) { for (let attempt = 0; attempt < maxAttempts; attempt++) { const response = await fetch(url, init); if (response.status !== 429) return response; const retryAfter = Number(response.headers.get('Retry-After') ?? '1'); await new Promise((r) => setTimeout(r, retryAfter * 1000)); } throw new Error('Rate limited after retries'); } ``` ### IP-based protection A separate edge rule (CloudFront WAF) caps requests per source IP for abuse and DDoS protection. That layer is independent of the per-organization quota above. Most partners never see it. If you do, contact support. ## How they interact A `429` response is not cached. Your next attempt with the same `Idempotency-Key` re-runs against the rate-limited handler. Once the window resets, the request is admitted normally. A cached replay (`Idempotent-Replayed: true`) does count against your rate limit. The cached response is still a request you sent us. If you see high replay volume, your client is sending the same request more often than it needs to. Check the client logic. > [!NOTE] > > Send an `Idempotency-Key` on every write request. Honor `Retry-After` on `429`. That covers the two most common ways an integration breaks. # Webhooks Source: https://docs.nxos.io/concepts/webhooks Receive nxos events in real time, verify them, and handle retries. ## Overview Webhooks let your integration receive events as they happen — an organization's verification status changing, a transaction moving through its lifecycle, a report becoming ready to download — instead of polling the API. You register an HTTPS URL, we sign and `POST` each event to it, and you verify the signature before acting on it. All webhook management is scoped to your organization by your API key. ## Quickstart ```bash theme={null} # 1. Register an endpoint curl -X POST https://api.nxos.io/v1/webhooks/endpoints \ -H "Authorization: Bearer $NXOS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-app.com/webhooks/nxos" }' # → { "object": "webhook_endpoint", "id": "ep_…", … } # 2. Fetch the signing secret curl https://api.nxos.io/v1/webhooks/endpoints/ep_…/secret \ -H "Authorization: Bearer $NXOS_API_KEY" # → { "key": "whsec_…" } ``` On every delivery: **verify the signature, then return any `2xx` status.** > [!NOTE] > > Sandbox uses `https://api.sandbox.nxos.io`. Endpoints must be **HTTPS**. ## Managing endpoints | Method | Path | Description | | - | - | - | | `POST` | `/v1/webhooks/endpoints` | Register a URL to receive events | | `GET` | `/v1/webhooks/endpoints` | List your endpoints | | `GET` | `/v1/webhooks/endpoints/{id}` | Retrieve one | | `PATCH` | `/v1/webhooks/endpoints/{id}` | Change the URL, event types, or enable/disable it | | `DELETE` | `/v1/webhooks/endpoints/{id}` | Stop deliveries | | `GET` | `/v1/webhooks/endpoints/{id}/secret` | Get the signing secret | | `POST` | `/v1/webhooks/endpoints/{id}/secret/rotate` | Rotate the signing secret | When creating an endpoint you can pass `eventTypes` to subscribe to a subset. **Omit it to receive all event types**, including ones added in the future. ```json theme={null} { "url": "https://your-app.com/webhooks/nxos", "eventTypes": ["transaction.status.updated"], "description": "Production receiver" } ``` ## Delivery format Each delivery is an HTTPS `POST`. The body is the event envelope: ```json theme={null} { "type": "transaction.status.updated", "timestamp": "2026-06-10T12:00:00.000Z", "data": {} } ``` with these headers: | Header | Description | | - | - | | `svix-id` | Unique message id. Use it to deduplicate retries. | | `svix-timestamp` | Unix timestamp (seconds). Reject deliveries that are too old to prevent replay attacks. | | `svix-signature` | Space-delimited list of `v1,` entries (supports key rotation). | ## Verifying signatures Verification is a plain HMAC-SHA256 check. No special library or SDK required — it works in any language. 1. Take your endpoint secret, drop the `whsec_` prefix, and base64-decode it. That's your HMAC key. 2. Build the signed content: `svix-id` + `.` + `svix-timestamp` + `.` + raw body. 3. HMAC-SHA256 it with the key, base64-encode the result. 4. Compare it (constant-time) to each `v1,` in the `svix-signature` header. If any matches, the delivery is authentic. ```ts theme={null} import { createHmac, timingSafeEqual } from 'node:crypto'; function verify(secret: string, headers: Record, rawBody: string): boolean { const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64'); const signedContent = `${headers['svix-id']}.${headers['svix-timestamp']}.${rawBody}`; const expected = createHmac('sha256', key).update(signedContent).digest('base64'); const expectedBuf = Buffer.from(expected); return headers['svix-signature'] .split(' ') .map((part) => part.split(',')[1]) .filter(Boolean) .some((sig) => { const sigBuf = Buffer.from(sig); return sigBuf.length === expectedBuf.length && timingSafeEqual(sigBuf, expectedBuf); }); } ``` Always verify against the **raw** request body (before any JSON parsing), and reject deliveries whose `svix-timestamp` is outside a small tolerance (e.g. 5 minutes). ## Retries & idempotency A delivery is considered successful when your endpoint returns a `2xx` status. Non-`2xx` responses or timeouts are **retried** with exponential backoff over several hours. Endpoints that keep failing are automatically disabled. Retries reuse the same `svix-id`, so make your handler **idempotent**: record the `svix-id` of each event you process and ignore repeats. ## Rotating the signing secret `POST /v1/webhooks/endpoints/{id}/secret/rotate` issues a new secret; the old one stops verifying immediately. Fetch the new value with `GET …/secret`. Because the secret is retrievable at any time, your **API key** is the credential to guard — if it leaks, rotate the API key and your webhook secrets. ## Event catalog ### `organization.verification.updated` An organization's verification (KYC/KYB) status changed. ```json theme={null} { "type": "organization.verification.updated", "timestamp": "2026-06-10T12:00:00.000Z", "data": { "object": "organization", "organization_id": "org_…", "status": "APPROVED", "previous_status": "PENDING", "reason": null, "occurred_at": "2026-06-10T12:00:00.000Z" } } ``` `status` is one of `APPROVED`, `ON_HOLD`, `PENDING`, `RESUBMISSION_REQUIRED`.\ `reason` is populated when an org is placed on hold or asked to resubmit. ### `transaction.status.updated` A transaction changed status. Fires on **every** transition. ```json theme={null} { "type": "transaction.status.updated", "timestamp": "2026-06-10T12:00:00.000Z", "data": { "object": "transaction", "transaction_id": "txn_…", "transaction_type": "FIAT_PAYOUT", "status": "COMPLETED", "previous_status": "LOCKED", "account_id": "acct_…", "organization_id": "org_…", "role": "SENDER", "occurred_at": "2026-06-10T12:00:00.000Z" } } ``` `status` is one of `EXPECTED`, `LOCKED`, `COMPLETED`, `DECLINED`, `REFUNDED`. Payloads carry **public IDs only**. Call the relevant API endpoint to hydrate full details. ### `report.ready` and `report.failed` A report finished generating, whether it was requested through [`POST /v1/reports`](/api-reference/reports/create), on the dashboard, or by support. On `report.ready`, download it from [`GET /v1/reports/{report_id}/download`](/api-reference/reports/download). On `report.failed`, request it again. ```json theme={null} { "type": "report.ready", "timestamp": "2026-06-10T12:00:00.000Z", "data": { "object": "report", "report_id": "rpt_…", "organization_id": "org_…", "type": "ACCOUNT_STATEMENT", "format": "PDF", "status": "READY", "occurred_at": "2026-06-10T12:00:00.000Z" } } ``` `report.failed` carries the same payload with `"status": "FAILED"`. `type` is one of `ACCOUNT_STATEMENT`, `TRANSACTION_STATEMENT`, `BALANCE_CERTIFICATE`, `BANK_CONFIRMATION_LETTER`. See [Reports](/guides/reports). ## Brokers & sub-organizations If your organization manages sub-organizations, webhook delivery follows your authorization relationship: * **Every organization receives its own events on its own endpoints**, scoped strictly to itself. * **A broker additionally receives a sub-org's events** on the broker's endpoints. The payload's `organization_id` identifies which sub-org the event is about, so a broker can monitor its whole portfolio from one endpoint. Broker visibility of a sub-org's events is gated by the **Letter of Authorization (LOA)**: | Sub-org event | Without a signed LOA | With an active, signed LOA | | - | - | - | | `organization.verification.updated` | ✅ delivered (track onboarding) | ✅ delivered | | `transaction.status.updated` | 🚫 suppressed | ✅ delivered | | `report.ready`, `report.failed` | 🚫 suppressed | ✅ delivered | A broker can always see a sub-org's onboarding status, but only sees its money movements once the customer has signed the LOA. See [Cross-org access](/guides/cross-org-access) for how LOAs are established. # Cross-org access: brokers acting on customer accounts Source: https://docs.nxos.io/guides/cross-org-access How Letters of Authorization let one organization operate the API on behalf of another. This guide explains how a broker organization operates the API on behalf of customer organizations through a single API key, and how to revoke that access when the relationship ends. ## When you'd use this The everyday case is a broker (a regulated counterparty that owns the client relationship) serving multiple customer organizations through a single platform integration. Each customer has their own org, accounts, balances, and funding methods. The broker holds an API key and operates on each customer's behalf one request at a time. Examples: * A private-broker program where each high-net-worth client has their own org but is operated by the broker's desk. * A platform that white-labels nxos for partner firms, each managing their own clients. * A treasury operations team that consolidates several legal entities under one operating team. If your integration only ever acts on its own org, skip this guide. ## The model With an LOA, one organization is authorized to act on behalf of another via the platform API. The granting organization (the customer) signs the LOA; the authorized organization (the broker) holds it. Once active, the broker sends requests with the `Nxos-On-Behalf-Of` header set to the customer's org id, and the platform scopes the request to the customer's data. Signing happens as part of the customer's [verification flow](/guides/verification). Revoking ends access; re-establishing it requires a new grant. ### Lifecycle ``` signed revoke PENDING ──────────────► ACTIVE ──────────────► REVOKED │ ▲ └─────────────────── revoke ───────────────────┘ ``` | Status | Meaning | Effective for `Nxos-On-Behalf-Of`? | | - | - | - | | `PENDING` | Granter has not yet signed. | No, except for [reads](#reading-a-customers-accounts-and-transactions) | | `ACTIVE` | Granter has signed. | Yes | | `REVOKED` | Previously active or pending, now revoked. | No | ### KYB gating An `ACTIVE` LOA is necessary but not sufficient. The granting organization must also currently be in good standing on KYB (verification status `APPROVED`, no past-due expiry). If the granter's verification moves to `PENDING`, `ON_HOLD`, `REJECTED`, or `RESUBMISSION_REQUIRED`, the LOA is suspended for that period and the broker's requests return `403 authorization_required`. Access resumes automatically when the granter returns to `APPROVED`. From the broker's perspective, this is indistinguishable from a missing LOA: the response is the same `403 authorization_required`. The granter's compliance status is not leaked to a third party. ### Reading a customer's accounts and transactions Reads are not gated. A `GET` on `/v1/accounts`, `/v1/transactions` or `/v1/reports` (and the routes under them) accepts any LOA the customer has not revoked, `PENDING` or `ACTIVE`, whatever the customer's KYB status, and even when the customer's organization is blocked or archived. A broker keeps seeing the history and balances of a customer it represents while that customer is on hold or under review. Everything else stays gated as described above: writes on those routes, and every other delegation-enabled route. Funding methods in particular are not opened, so a blocked customer's deposit instructions are not handed out. The [verification](/guides/verification) routes are deliberately exempt, because they are how the customer gets approved in the first place. They accept a `PENDING` LOA and do not require the customer's KYB to be `APPROVED`. Their authority comes from a different check: you may only use them on an organization **you created**. ## Using `Nxos-On-Behalf-Of` Once an LOA between customer `org_cust...` and broker `org_brkr...` is `ACTIVE` and the customer's KYB is `APPROVED`, the broker calls any delegation-enabled endpoint by setting the header: ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts \ -H "Authorization: Bearer nxos_sk_test_brkr..." \ -H "Nxos-On-Behalf-Of: org_cust1234567890abcdef1234567890abcd" ``` The response is the customer's accounts, not the broker's. The request was scoped to the customer for that single call. ### Which routes accept the header Each route opts in to delegation individually. Self-only routes (creating a child org, signing) omit it: a broker cannot sign an LOA on a customer's behalf, nor create a customer's children. Routes that read or operate on accounts, balances, beneficiaries, quotes, payouts, and NXOS-to-NXOS transfers all accept the header. If you send `Nxos-On-Behalf-Of` to a route that doesn't accept delegation, the header is silently ignored and the request stays scoped to your own org. The default posture is default-deny: a route only sees data the caller has direct authority over unless it explicitly opts in. ### Possible 403 responses | Code | Meaning | Fix | | - | - | - | | `acting_org_not_found` | The header points to an org that doesn't exist. | Check the org id. | | `authorization_required` | The org exists, but you don't hold a currently effective LOA on it. Possible reasons: the customer hasn't signed, the grant was revoked, or the customer's KYB is not currently `APPROVED`. On [reads of accounts and transactions](#reading-a-customers-accounts-and-transactions), only a revoked or missing LOA gives this code. | Check the LOA state in the dashboard, and confirm the customer's verification status. | ## Revoking an authorization Either side of the grant can call [`POST /v1/authorizations/revoke`](/api-reference/authorizations/revoke): the granting customer or the authorized broker. The caller's organization (from the API key) must be one of the two parties. Otherwise the call returns `403 forbidden`. ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/authorizations/revoke \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "grantingOrganizationId": "org_cust1234567890abcdef1234567890abcd", "authorizedOrganizationId": "org_brkr1234567890abcdef1234567890abcd", "type": "LOA", "reason": "Client off-boarded" }' ``` ```json theme={null} { "object": "authorization", "grantingOrganizationId": "org_cust1234567890abcdef1234567890abcd", "authorizedOrganizationId": "org_brkr1234567890abcdef1234567890abcd", "type": "LOA", "status": "REVOKED", "signedAt": "2025-12-01T10:30:00.000Z", "revokedAt": "2026-05-15T14:30:00.000Z", "revokedReason": "Client off-boarded", "createdAt": "2025-12-01T10:30:00.000Z", "updatedAt": "2026-05-15T14:30:00.000Z" } ``` > [!WARNING] > > Revocation is immediate and permanent. The next request the broker makes with `Nxos-On-Behalf-Of` pointing at this customer returns `403 authorization_required`. To re-establish access, the customer must sign a new LOA. There is no restore endpoint. ### Idempotency A second revoke of the same `(granter, authorized, type)` tuple returns `404 authorization_not_found`. The row is already `REVOKED` and excluded from the active set. There is no separate `already_revoked` error code. "Already revoked" and "never existed" surface identically by design. You can also supply an `Idempotency-Key` header for client-side dedup of network retries. See [Idempotency](/concepts/idempotency-and-rate-limits). ### Possible errors | Status | Code | When | | - | - | - | | `400` | `invalid_request` | `grantingOrganizationId == authorizedOrganizationId`. | | `400` | `validation_error` | Malformed org id (must be `org_<32 hex>`), or `reason` exceeds 500 characters. | | `403` | `forbidden` | Your API key's organization is neither the granter nor the authorized. | | `404` | `organization_not_found` | One of the two organizations doesn't exist. | | `404` | `authorization_not_found` | No non-revoked grant matches the tuple. Already revoked, or never existed. | ## Summary | Operation | Where it happens | | - | - | | Sign LOA | As part of the customer's [verification flow](/guides/verification) | | Use the LOA | Set `Nxos-On-Behalf-Of: ` on each request | | List LOAs | [`GET /v1/authorizations`](/api-reference/authorizations/list), either side. `?role=authorized` for "orgs I can act on", `?role=granter` for "orgs that authorized me" | | Revoke LOA | [`POST /v1/authorizations/revoke`](/api-reference/authorizations/revoke), by either party | | Import a customer's verification (`INDIVIDUAL` only) | [`POST /v1/organizations/verification/import`](/api-reference/organizations/import-verification) — pass a Sumsub Reusable KYC share token instead of running the customer through the hosted flow. See [Import from a partner tenant](/guides/verification#importing-from-a-partner-tenant-advanced). | ## Related * [Authentication](/concepts/authentication): how API keys work * [Verification](/guides/verification): bringing a customer org through KYB * [Accounts](/concepts/accounts): what scopes by organization # Offramp: crypto to fiat Source: https://docs.nxos.io/guides/offramp Receive crypto, convert to fiat currency, and pay out to a bank account. This guide walks through the full offramp flow: receive crypto into your account, convert it to fiat, and pay out to a bank account. ## Prerequisites * An active account with a crypto balance (funded via on-chain deposit to your account's funding method) * A bank beneficiary registered for the destination bank account ## Flow overview ``` Crypto deposit → Quote → Execute trade → Fiat payout ``` 1. Crypto arrives in your account (e.g., USDC sent to your account's on-chain funding address) 2. Create a quote to convert USDC to USD 3. Execute the quote — balances update atomically 4. Initiate a fiat payout to a bank beneficiary *** ## Step 1: Check your balance Verify that crypto funds have arrived: ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts/acct_a1b2c3d4... \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "account", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "balances": [ { "object": "balance", "asset": "USDC", "amount": "50000.000000" } ] } ``` ## Step 2: Register a bank beneficiary If you haven't already, create a bank beneficiary for the destination account: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/beneficiaries/bank \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "nickname": "Operating Account", "bankName": "JPMorgan Chase", "method": "WIRE", "currency": "USD", "swiftCode": "CHASUS33", "accountNumber": "123456789", "bankCountry": "US" }' ``` ```json theme={null} { "object": "beneficiary", "beneficiaryId": "bene_d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1", "type": "BANK", "nickname": "Operating Account", "status": "ACTIVE", "crypto": null, "bank": { "bankName": "JPMorgan Chase", "swiftCode": "CHASUS33", "iban": null, "bankCountry": "US", "method": "WIRE", "currency": "USD", "intermediaryBankName": null, "intermediarySwiftCode": null, "intermediaryBankAddress": null } } ``` ## Step 3: Create a quote Request a quote to convert USDC to USD. Use `toAmount` if you need a specific USD amount to arrive: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/quotes \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fromAsset": "USDC", "toAsset": "USD", "fromAmount": "50000.000000" }' ``` ```json theme={null} { "object": "quote", "quoteId": "quote_e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fromAsset": "USDC", "toAsset": "USD", "fromAmount": "50000.000000", "toAmount": "49985.00", "appliedRate": "0.9997", "spread": { "fee": "15.000000", "asset": "USDC" }, "status": "PENDING", "expiresAt": "2025-03-15T14:35:00.000Z", "createdAt": "2025-03-15T14:30:00.000Z" } ``` > [!WARNING] > > Quotes expire after 5 minutes. Execute before `expiresAt` or create a new one. ## Step 4: Execute the quote ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/quotes/quote_e5f6a1b2.../execute \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "trade", "transactionId": "txn_f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3", "quoteId": "quote_e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2", "fromAsset": "USDC", "toAsset": "USD", "fromAmount": "50000.000000", "toAmount": "49985.00", "status": "COMPLETED", "createdAt": "2025-03-15T14:31:00.000Z" } ``` Your account now holds 49,985.00 USD. ## Step 5: Initiate fiat payout Send the USD to the registered bank beneficiary: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/transactions/fiat-payouts \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "beneficiaryId": "bene_d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1", "amount": "49985.00", "asset": "USD", "method": "WIRE", "purpose": "SUPP" }' ``` ```json theme={null} { "object": "transaction", "transactionId": "txn_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "type": "FIAT_PAYOUT", "status": "LOCKED", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "beneficiaryId": "bene_d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1", "amount": "49985.00", "asset": "USD", "method": "WIRE", "bank": { "bankName": "JPMorgan Chase", "swiftCode": "CHASUS33", "accountNumber": "123456789", "iban": null }, "createdAt": "2025-03-15T14:32:00.000Z" } ``` ### Why `LOCKED`? Unlike crypto payouts (which complete immediately on-chain), fiat payouts go through banking rails that take time. The `LOCKED` status means: * Funds have been **debited** from the account and are no longer available * The payout has been **submitted** to the banking provider * The transfer will settle according to the method's timeline (same-day for domestic wires, 1-2 days for SEPA, etc.) The `bank` object in the response is a **snapshot** of the beneficiary's bank details at the time of payout. Even if you update the beneficiary later, this transaction's bank details are fixed. ### When the beneficiary details need correcting Before sending a payout, or when the bank refuses it, our operations team can ask you to correct its beneficiary details: for example a UK recipient saved with an account number instead of an IBAN, or a SWIFT code that doesn't match the bank. The payout stays `LOCKED`, the amount stays debited, and we send [`transaction.action_required`](/api-reference/webhooks/events/transaction-action-required). The transaction's `requiredActions` then holds one `beneficiary_details` action with the fields to correct and a note from operations: ```json theme={null} "requiredActions": [ { "type": "beneficiary_details", "fixRequestId": "pfix_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fields": ["iban"], "note": "Our bank needs the recipient's IBAN for UK payouts. Please add it exactly as it appears on their bank statement." } ] ``` Send the corrected fields. Any field the action doesn't list is ignored. ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/transactions/txn_a1b2c3d4.../beneficiary-details \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -H "Idempotency-Key: fix-txn_a1b2c3d4" \ -d '{ "iban": "GB82WEST12345698765432" }' ``` The beneficiary is updated for this payout and every later one, and the action leaves `requiredActions`. Operations then send the payout; follow it with `transaction.status.updated`. | Error | What to do | | - | - | | `422 invalid_beneficiary_details` | A field is missing or fails its check (IBAN checksum, SWIFT / BIC of 8 or 11 characters). The message names each field. | | `409 beneficiary_fix_not_requested` | The payout isn't waiting for beneficiary details, or it was sent, refunded or cancelled since. | | `409 beneficiary_already_archived` | The payout's beneficiary was archived. Contact support. | [Reference](/api-reference/transactions/beneficiary-details) ## Step 6: Download the SWIFT copy Once the payout is `COMPLETED`, `details.swiftUetr` on the transaction holds the wire's SWIFT reference (UETR). From then on you can download the SWIFT copy: the PDF of the SWIFT message that sent the payment, as the bank issued it. It is the proof of payment your recipient or their bank may ask for. ```bash theme={null} curl -L -o swift-copy.pdf https://api.sandbox.nxos.io/v1/transactions/txn_a1b2c3d4.../swift-copy \ -H "Authorization: Bearer nxos_sk_test_..." ``` The response is the PDF itself (`Content-Type: application/pdf`), with the bank's file name in `Content-Disposition`. > [!NOTE] > > The copy is fetched from the bank on every call, and the bank serves each file a limited number of times. Download it once and store it on your side. | Error | What to do | | - | - | | `409 swift_copy_not_ready` | The payout settled, but the bank has not produced the document yet. Retry in a few minutes, no more often. | | `404 swift_copy_not_found` | The transaction is not a completed SWIFT payout on one of your accounts. | | `502 bank_unavailable` | The bank did not answer. Retry in a few minutes. | ## Summary | Step | Endpoint | What happens | | - | - | - | | Check balance | `GET /v1/accounts/{accountId}` | Verify crypto has arrived | | Register beneficiary | `POST /v1/beneficiaries/bank` | One-time setup for the destination bank | | Create quote | `POST /v1/quotes` | Lock in an exchange rate for 5 minutes | | Execute trade | `POST /v1/quotes/{quoteId}/execute` | Convert crypto to fiat atomically | | Initiate payout | `POST /v1/transactions/fiat-payouts` | Debit funds and submit to banking provider | | Download the SWIFT copy | `GET /v1/transactions/{transactionId}/swift-copy` | Get the bank's PDF proof of the wire once it is `COMPLETED` | ## Crypto vs. fiat payouts | | Crypto payout | Fiat payout | | - | - | - | | **Endpoint** | `POST /v1/transactions/crypto-payouts` | `POST /v1/transactions/fiat-payouts` | | **Settlement** | Immediate (on-chain confirmation) | Deferred (banking rails) | | **Initial status** | `COMPLETED` | `LOCKED` | | **Proof** | `txHash` (block explorer) | SWIFT reference (`swiftUetr`) and the SWIFT copy PDF (after settlement) | | **Required fields** | `chainName` | `method` | # Onramp: fiat to crypto Source: https://docs.nxos.io/guides/onramp Accept fiat currency, convert to a stablecoin, and send it on-chain. This guide walks through the full onramp flow: deposit fiat into your account, convert it to a stablecoin, and pay it out to a blockchain wallet. ## Prerequisites * An active account with a fiat balance (funded via bank transfer to your account's funding method) * A crypto beneficiary registered for the destination wallet ## Flow overview ``` Fiat deposit → Quote → Execute trade → Crypto payout ``` 1. Fiat lands in your account (e.g., a wire transfer credits your USD balance) 2. Create a quote to convert USD to USDC 3. Execute the quote — balances update atomically 4. Pay out the USDC to a crypto beneficiary *** ## Step 1: Check your balance Verify that fiat funds have arrived by fetching the account: ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts/acct_a1b2c3d4... \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "account", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "balances": [ { "object": "balance", "asset": "USD", "amount": "10000.00" } ] } ``` ## Step 2: Register a crypto beneficiary If you haven't already, create a crypto beneficiary for the destination wallet: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/beneficiaries/crypto \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "nickname": "Treasury Wallet", "chainName": "ethereum", "address": "0x1234567890abcdef1234567890abcdef12345678" }' ``` ```json theme={null} { "object": "beneficiary", "beneficiaryId": "bene_f1e2d3c4b5a6f1e2d3c4b5a6f1e2d3c4", "type": "CRYPTO", "nickname": "Treasury Wallet", "status": "ACTIVE", "crypto": { "chainName": "ethereum", "chainDisplayName": null, "platform": null, "address": "0x1234567890abcdef1234567890abcdef12345678" }, "bank": null } ``` > [!NOTE] > > `chainDisplayName` and `platform` are `null` on create responses. They are populated when you fetch the beneficiary later. ## Step 3: Create a quote Request a quote to convert USD to USDC. You can specify either `fromAmount` (how much to sell) or `toAmount` (how much to receive): ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/quotes \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fromAsset": "USD", "toAsset": "USDC", "fromAmount": "10000.00" }' ``` ```json theme={null} { "object": "quote", "quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fromAsset": "USD", "toAsset": "USDC", "fromAmount": "10000.00", "toAmount": "9997.000000", "appliedRate": "1.0003", "spread": { "fee": "3.00", "asset": "USD" }, "status": "PENDING", "expiresAt": "2025-03-15T14:35:00.000Z", "createdAt": "2025-03-15T14:30:00.000Z" } ``` The response tells you exactly what you'll get: 10,000 USD converts to 9,997 USDC after a \$3.00 spread fee. The `spread` object shows the fee amount and which asset it's denominated in (always the source asset). > [!WARNING] > > Quotes expire after 5 minutes. Execute the quote before `expiresAt` or create a new one. ## Step 4: Execute the quote Execute the quote to complete the trade. Balances update atomically — USD is debited and USDC is credited in a single operation: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/quotes/quote_a1b2c3d4.../execute \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "trade", "transactionId": "txn_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5", "quoteId": "quote_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "fromAsset": "USD", "toAsset": "USDC", "fromAmount": "10000.00", "toAmount": "9997.000000", "status": "COMPLETED", "createdAt": "2025-03-15T14:31:00.000Z" } ``` Your account now holds 9,997 USDC. ## Step 5: Send crypto payout Send the USDC to the registered crypto beneficiary: ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/transactions/crypto-payouts \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "beneficiaryId": "bene_f1e2d3c4b5a6f1e2d3c4b5a6f1e2d3c4", "amount": "9997.000000", "asset": "USDC", "chainName": "ETHEREUM_MAINNET" }' ``` ```json theme={null} { "object": "transaction", "transactionId": "txn_c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6", "type": "CRYPTO_PAYOUT", "status": "COMPLETED", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "beneficiaryId": "bene_f1e2d3c4b5a6f1e2d3c4b5a6f1e2d3c4", "amount": "9997.000000", "asset": "USDC", "toAddress": "0x1234567890abcdef1234567890abcdef12345678", "txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890", "createdAt": "2025-03-15T14:32:00.000Z" } ``` The response includes the on-chain `txHash` — you can verify the transaction on a block explorer. Funds are debited immediately and the payout completes in a single request. ## Summary | Step | Endpoint | What happens | | - | - | - | | Check balance | `GET /v1/accounts/{accountId}` | Verify fiat has arrived | | Register beneficiary | `POST /v1/beneficiaries/crypto` | One-time setup for the destination wallet | | Create quote | `POST /v1/quotes` | Lock in an exchange rate for 5 minutes | | Execute trade | `POST /v1/quotes/{quoteId}/execute` | Convert fiat to crypto atomically | | Send payout | `POST /v1/transactions/crypto-payouts` | Submit on-chain and debit the account | # Partner sign-up links: send your customers to nxos Source: https://docs.nxos.io/guides/partner-sign-up-links Issue a sign-up link bound to your customer's email, so the nxos account opens on exactly that address and is attributed to you. This guide explains how to send a customer you refer to open an nxos account on the email you already have for them, with the account attributed to you as its referrer. ## When you'd use this You refer your own customers to nxos, where each one opens their own account, completes verification with nxos and uses nxos directly. What a referral hand-off usually needs: * The nxos account must be opened on **the email you already have** for that customer. * The customer must not be able to swap in another address on the way. * The new organization must be attributed to you. A plain link with the email in a query parameter does not give you the first two: anyone can edit a URL. A sign-up link issued by the API does. If you do not need the email locked, you can share your referral link instead: the same link for every customer, who signs up with any email. List it with [`GET /v1/referral-links`](/api-reference/referral-links/list). If you want to operate your customers' accounts yourself through the API instead of sending them to nxos, see [Cross-org access](/guides/cross-org-access). ## How it works 1. Your backend calls [`POST /v1/referral-invites`](/api-reference/referral-invites/create) with the customer's email and your API key. 2. nxos stores an invite bound to that email and returns a `url`. The URL holds a random code only, never the email. 3. You redirect the customer to the `url`. 4. The nxos sign-up form opens with the email filled in and locked, and shows your organization as the referrer. 5. The nxos server refuses any other email: at the password step, with Google sign-up, and again when the email is confirmed. 6. The customer confirms the email once, through the usual nxos confirmation email. 7. The organization is created and attributed to you as its referrer. The customer then completes verification with nxos. ## Issue a link ```bash theme={null} curl https://api.sandbox.nxos.io/v1/referral-invites \ -X POST \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "email": "customer@example.com" }' ``` ```json theme={null} { "object": "referral_invite", "referralInviteId": "refinv_...", "email": "customer@example.com", "url": "https://app.sandbox.nxos.io/r/k7x2m9qp3abc", "expiresAt": "2027-01-04T14:30:00.000Z", "createdAt": "2026-10-06T14:30:00.000Z" } ``` * Your organization must be verified (`APPROVED`). Referrals are switched on for you on the first call if they were not already. * The link is valid for 90 days. * Calling again for the same email while the invite is pending returns the same link, valid for 90 days from the new call. You can request it each time you send the customer to nxos, without storing it. * Nothing is emailed by nxos at this step: you decide when and how the customer reaches the link. ## Errors | Code | HTTP | What to do | | - | - | - | | `referral_invite_already_accepted` | 409 | This email already opened an nxos account through your invite. Send the customer to sign in at nxos instead. | | `verification_required` | 403 | Your organization is not verified yet. | | `validation_error` | 422 | The email is missing or invalid. | See [Errors](/concepts/errors) for the format. ## What this does not do * **No single sign-on.** The customer confirms the email once with nxos and signs in to nxos with their own nxos credentials (password, Google or passkey). Being signed in on your side does not sign them in to nxos. * **No completion callback.** You are not notified when the customer finishes signing up, and the API does not return their organization id. * **No delegation.** A referral does not let you act on the customer's account through the API. That needs the broker model and a Letter of Authorization, see [Cross-org access](/guides/cross-org-access). * **If the email already has an nxos account,** sign-up fails as it would for any existing address, and the customer signs in instead. # Reports: statements, balance certificates and bank letters Source: https://docs.nxos.io/guides/reports Request account and transaction statements, balance certificates and bank confirmation letters through the API, then download the file once it is ready. This guide explains how to get your organization's documents through the API: the same statements, certificates and letters you can download from the dashboard. ## Report types | `type` | What it holds | Formats | Covers | | - | - | - | - | | `ACCOUNT_STATEMENT` | Opening and closing balances, with every completed transaction of the period. | `PDF`, `CSV` | `from` to `to` | | `TRANSACTION_STATEMENT` | Every transaction of the period, whatever its status. | `PDF`, `CSV` | `from` to `to` | | `BALANCE_CERTIFICATE` | The balances held at the end of one day. | `PDF` | `asOf` | | `BANK_CONFIRMATION_LETTER` | A letter confirming the bank account one of your funding methods receives on. | `PDF` | One funding method and asset | Statements and certificates cover every currency by default. Pass `currency` (an asset code such as `USD`) to cover one currency only. ## How it works 1. You call [`POST /v1/reports`](/api-reference/reports/create). The report is created with status `PENDING` and generated in the background, usually within seconds. 2. You learn when it is done, in one of two ways: * Listen for the [`report.ready` and `report.failed` webhooks](/concepts/webhooks#event-catalog). * Poll [`GET /v1/reports/{reportId}`](/api-reference/reports/get) until `status` is `READY` or `FAILED`. 3. Once `READY`, you call [`GET /v1/reports/{reportId}/download`](/api-reference/reports/download), which redirects to the file. | `status` | Meaning | | - | - | | `PENDING`, `PROCESSING` | Being generated. | | `READY` | The file can be downloaded. `fileName`, `sizeBytes` and `readyAt` are set. | | `FAILED` | The report could not be generated. Request it again. | ## Request a statement ```bash theme={null} curl https://api.sandbox.nxos.io/v1/reports \ -X POST \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "type": "ACCOUNT_STATEMENT", "format": "PDF", "from": "2026-09-01", "to": "2026-09-30", "currency": "USD" }' ``` ```json theme={null} { "object": "report", "reportId": "rpt_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "type": "ACCOUNT_STATEMENT", "format": "PDF", "status": "PENDING", "from": "2026-09-01", "to": "2026-09-30", "asOf": null, "currency": "USD", "fileName": null, "sizeBytes": null, "createdAt": "2026-10-01T09:12:44.000Z", "readyAt": null } ``` * Dates are days in UTC, as `YYYY-MM-DD`. `to` is inclusive. * `from` can be no earlier than `2024-01-01`, and the period can be at most 366 days long. * A period reaching today runs up to the moment of the request. ## Request a balance certificate ```json theme={null} { "type": "BALANCE_CERTIFICATE", "asOf": "2026-09-30" } ``` The certificate states the balances at the end of `asOf`. The day must have ended: a certificate for today is refused with `invalid_request`. ## Request a bank confirmation letter ```json theme={null} { "type": "BANK_CONFIRMATION_LETTER", "fundingMethodId": "funding_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "asset": "EUR" } ``` The funding method must be a `BANK` funding method of your organization, with `asset` enabled on it. List them with [`GET /v1/funding-methods`](/api-reference/funding-methods/list). ## Download the file ```bash theme={null} curl -L -o statement.pdf \ https://api.sandbox.nxos.io/v1/reports/rpt_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4/download \ -H "Authorization: Bearer nxos_sk_test_..." ``` The endpoint answers `303 See Other` with a `Location` header holding a signed link to the file. The link expires after one minute: * Follow the redirect straight away (`curl -L`, or your HTTP client's default redirect handling). * Do not store the link. Call the download endpoint again whenever you need the file. Downloading a report that is not `READY` returns `409 report_not_ready`. ## List reports [`GET /v1/reports`](/api-reference/reports/list) returns your organization's reports, newest first, with the usual `limit` and `cursor` [pagination](/concepts/conventions#pagination). The list includes every report of your organization: the ones requested through the API, the ones requested on the dashboard, and the monthly statements nxos generates for you. ## Limits * Requesting a report needs your organization to be verified (`APPROVED`). Listing, retrieving and downloading do not. * Up to 5 reports can be in progress at once per organization. A sixth request returns `409 too_many_pending_reports`: wait for one to finish. * `POST /v1/reports` accepts an [`Idempotency-Key`](/concepts/idempotency-and-rate-limits), so a retried request does not create a second report. ## Reports for your clients A broker can work on a client's reports with the `Nxos-On-Behalf-Of` header. See [Cross-org access](/guides/cross-org-access). * **Requesting** needs an active Letter of Authorization, and the client must be `APPROVED`. The report belongs to the client: it appears in the client's list and on the client's dashboard. * **Listing, retrieving and downloading** accept any Letter of Authorization the client has not revoked, whatever the client's verification status. Webhooks for a client's reports reach the broker's endpoints only once the client has signed the Letter of Authorization. ## Errors | Code | HTTP | What to do | | - | - | - | | `invalid_request` | 400 | A date is malformed, the period is out of range, the day has not ended yet, or the currency is not supported. The `message` says which. | | `verification_required` | 403 | Your organization (or the client you act for) is not verified yet. | | `funding_method_not_found` | 404 | The funding method does not belong to your organization, or cannot be confirmed in a letter. | | `report_not_found` | 404 | The report does not exist or does not belong to your organization. | | `report_not_ready` | 409 | The report is still being generated, or failed. Download it once `status` is `READY`. | | `too_many_pending_reports` | 409 | 5 reports are already being generated. Request more once they are ready. | | `validation_error` | 422 | The body does not match any report request. Check `type` and the fields it needs. | See [Errors](/concepts/errors) for the format. # Verification: bringing an org through KYB Source: https://docs.nxos.io/guides/verification Start, check, and complete an organization's verification flow using Sumsub-backed sessions. Every organization on nxos must complete identity verification (KYB for businesses, KYC for individuals) before it can hold balances, send payouts, or back an active Letter of Authorization. This guide covers the endpoints that drive that flow: * [`GET /v1/organizations/verification`](/api-reference/organizations/get-verification): read the current status. * [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification): start (or refresh) a verification session. * [`POST /v1/organizations/verification/import`](/api-reference/organizations/import-verification): import an existing verification from a partner Sumsub tenant (Reusable KYC, `INDIVIDUAL` orgs only). All three endpoints accept the `Nxos-On-Behalf-Of` header, so a broker can run verification on behalf of a customer org. The flow is identical whether you're verifying your own org or a customer org. The only difference is which org id the request targets. In broker flows, the customer's Letter of Authorization is signed in the same session as their verification submission. The LOA becomes effective once both the signature is captured and the verification reaches `APPROVED`. See [Cross-org access](/guides/cross-org-access) for what the LOA enables. ## Prerequisites * An API key for the organization you're verifying, or a broker API key plus a `PENDING` Letter of Authorization (see [Cross-org access](/guides/cross-org-access)). * For brokers, the customer org must already exist (created via [`POST /v1/organizations`](/api-reference/organizations/create)). ## Flow overview ``` Start session → Customer completes Sumsub → Status polls APPROVED ``` 1. Call [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification) to start a session. The response carries a `url` (Sumsub-hosted page) and an `accessToken` (for the Sumsub WebSDK). 2. Hand off the customer to one of the two delivery options below. 3. Poll [`GET /v1/organizations/verification`](/api-reference/organizations/get-verification) until `status` is `APPROVED`, `REJECTED`, or `RESUBMISSION_REQUIRED`. The platform stores verification state by `externalUserId = organizationId`. Calling `POST` multiple times returns a new short-lived token for the same applicant. It does not start over. ## Step 1: Start a session ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/organizations/verification \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Nxos-On-Behalf-Of: org_cust1234567890abcdef1234567890abcd" ``` ```json theme={null} { "object": "verification_session", "url": "https://in.sumsub.com/idensic/l/#/sbx_...", "accessToken": "_act-sbx-jwt-..." } ``` Tokens are short-lived (around 30 minutes). Generate a fresh one whenever you're about to hand off to the customer rather than caching across sessions. ## Step 2: Hand off to the customer You have two delivery options. Pick one based on how much UI control you need. ### Option A: Hosted URL Share the `url` with the customer (email link, dashboard redirect, SMS, in-app prompt). The customer completes the entire flow on a Sumsub-hosted page. No SDK integration on your side. This is the simplest path and works well for brokers who don't want to host the verification UI. ```html theme={null} Verify your business ``` The customer uploads documents, takes selfies if required, and submits. Sumsub closes the session and reports the result back to nxos via webhook. There is no callback to your application directly. You poll `GET /v1/organizations/verification` to learn the outcome. ### Option B: Embedded WebSDK If you'd rather render the flow inside your own UI, pass the `accessToken` to the Sumsub WebSDK. The token authorizes the SDK to communicate with Sumsub on the applicant's behalf. ```html theme={null}
``` The refresh handler is important. Tokens expire mid-session if the customer takes longer than 30 minutes. Your handler should call [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification) again for the same org and return the new `accessToken`. The SDK swaps it in without restarting the flow. See Sumsub's WebSDK docs for full integration details. The token format and refresh callback shape are theirs. ## Step 3: Poll for the result ```bash theme={null} curl https://api.sandbox.nxos.io/v1/organizations/verification \ -H "Authorization: Bearer nxos_sk_test_..." \ -H "Nxos-On-Behalf-Of: org_cust1234567890abcdef1234567890abcd" ``` ```json theme={null} { "object": "organization_verification", "status": "APPROVED", "type": "BUSINESS", "updatedAt": "2026-05-15T14:30:00.000Z" } ``` Reasonable poll cadence is once every 10 to 30 seconds while the customer is mid-flow, then back off to once a minute. Customers usually finish in a few minutes; expect occasional pauses when manual review is required, which can stretch to hours or a business day. ## Importing from a partner tenant (advanced) If you already verified a natural person on your own Sumsub tenant and would rather not send them through the flow again, you can import that existing verification directly with [`POST /v1/organizations/verification/import`](/api-reference/organizations/import-verification). This is Sumsub's Reusable KYC path: a share token generated on your tenant is exchanged for a linked applicant on ours. This is limited to `INDIVIDUAL` orgs. Sumsub's Reusable KYC product covers natural persons only; calling the import endpoint for a `BUSINESS` org returns `400 verification_import_unsupported`. For `BUSINESS`, keep using the standard flow above. ### Prerequisites * Reusable KYC enabled on both Sumsub tenants — yours (donor) and ours (recipient). * nxos added as a sharing partner in your Sumsub dashboard (Reusable Identity → Partners). * The customer org already exists on nxos ([`POST /v1/organizations`](/api-reference/organizations/create)). * An `ACTIVE` LOA on the customer org. See [Cross-org access](/guides/cross-org-access). ### Flow ``` Your Sumsub tenant: generate share token (forClientId = nxos client id, single-use) │ ▼ POST /v1/organizations/verification/import Nxos-On-Behalf-Of: { "shareToken": "..." } │ ▼ nxos returns 200 with status = PENDING │ ▼ Sumsub fires applicantReviewed on our tenant within seconds → APPROVED ``` ```bash theme={null} curl -X POST https://api.sandbox.nxos.io/v1/organizations/verification/import \ -H "Authorization: Bearer nxos_sk_test_brkr..." \ -H "Nxos-On-Behalf-Of: org_cust1234567890abcdef1234567890abcd" \ -H "Content-Type: application/json" \ -d '{ "shareToken": "_act-sbx-jwt-..." }' ``` ```json theme={null} { "object": "organization_verification", "status": "PENDING", "type": "INDIVIDUAL", "updatedAt": "2026-05-15T14:30:00.000Z" } ``` Same shape as [`GET /v1/organizations/verification`](/api-reference/organizations/get-verification). Poll that endpoint for the transition to `APPROVED` — usually a few seconds later, once Sumsub fires `applicantReviewed` on our side. ### What to know * **Single-use tokens.** Sumsub invalidates the share token the moment we consume it. A retry returns `400 share_token_invalid`. Generate a fresh token per call. * **No synchronous `APPROVED`.** We return `PENDING` even when the donor applicant was already green. The applicantReviewed webhook drives the final transition. This keeps a single code path for approvals and preserves traceability. * **Idempotent in practice.** If the customer's verification is already `APPROVED` or `ON_HOLD`, the import is a no-op for your record — the linked Sumsub applicant is still created on our side for audit, but no status change happens. * **Org type is fixed at creation.** The org's `type` is set when you call [`POST /v1/organizations`](/api-reference/organizations/create); the import endpoint reads it back. There's no way to import a KYC into a `BUSINESS` org or vice versa. ### Possible 4xx responses | Code | Meaning | Fix | | - | - | - | | `share_token_invalid` | Sumsub rejected the token: unknown, expired, already used, or the donor tenant is not paired with us. | Generate a fresh token. Confirm Reusable KYC is enabled on both tenants and that nxos is in your partner list. | | `verification_import_unsupported` | The target org is `BUSINESS`. Reusable KYC covers natural persons only. | Use the standard flow ([`POST /v1/organizations/verification`](/api-reference/organizations/start-verification)). | | `authorization_required` | No currently effective LOA between you and the target org (unsigned, revoked, or the customer's KYB has lapsed). | See [Cross-org access](/guides/cross-org-access). | | `organization_not_found` | The org id in `Nxos-On-Behalf-Of` doesn't exist. | Check the id. | ## Status lifecycle | Status | Meaning | What you do | | - | - | - | | `NOT_STARTED` | The org has a verification record but no session has been opened. | Call `POST` to start one. | | `PENDING` | Session started; awaiting customer action or Sumsub review. | Poll. | | `APPROVED` | Verified. The org can transact, hold balances, and back active LOAs. | Done. | | `REJECTED` | Sumsub or compliance ops declined the application. | Terminal in this flow. Customer cannot re-submit through the same path; contact support if you believe this is in error. | | `ON_HOLD` | Pending manual compliance review on our side. | Poll. Resolution can take a business day. | | `RESUBMISSION_REQUIRED` | Sumsub flagged a fixable problem (blurry document, wrong document type, etc.). | Call `POST` again to get a fresh token, hand the customer back into the flow. The session resumes at the failing step. | ## What a broker can act on, and when A Letter of Authorization can be signed at any time, including before the customer's verification completes. But the LOA is only effective for `Nxos-On-Behalf-Of` calls while the granter's verification status is `APPROVED`. See [Cross-org access](/guides/cross-org-access#kyb-gating) for the full gating rule. In practice this means brokers can run two flows in parallel: 1. Send the customer an LOA to sign (dashboard / e-signing). 2. Call [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification) to start their KYB. Once both complete, calls with `Nxos-On-Behalf-Of` begin working. If verification later lapses (e.g. `expiresAt` passes, or the customer needs to re-verify), the LOA is suspended automatically until the verification returns to `APPROVED`. No action on the LOA itself. ## Summary | Step | Endpoint | What happens | | - | - | - | | Start | [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification) | Creates a Sumsub applicant for the org, returns a session URL and access token | | Check | [`GET /v1/organizations/verification`](/api-reference/organizations/get-verification) | Returns current status, type, and last-updated timestamp | | Resubmit | [`POST /v1/organizations/verification`](/api-reference/organizations/start-verification) | Mints a fresh token for the same applicant; flow resumes at the failing step | | Import (advanced, `INDIVIDUAL` only) | [`POST /v1/organizations/verification/import`](/api-reference/organizations/import-verification) | Consumes a partner Sumsub share token, links the applicant on our tenant, moves the org to `PENDING` | ## Related * [Authentication](/concepts/authentication): API keys * [Cross-org access](/guides/cross-org-access): how LOAs and KYB interact # Nxos API documentation Source: https://docs.nxos.io/index Programmatic access to accounts, quotes, trades, and payouts. The Nxos API lets you move money between fiat and crypto programmatically. You can hold balances in multiple currencies, convert between assets, and pay out to bank accounts or blockchain wallets. All interaction happens through a single REST API authenticated with API keys. ## Where to start > [card] [Authentication](/concepts/authentication) > > Create and manage API keys. > [card] [Conventions](/concepts/conventions) > > Pagination, amounts, timestamps, and error handling. > [card] [Onramp guide](/guides/onramp) > > Accept fiat, convert to crypto, send on-chain. > [card] [Offramp guide](/guides/offramp) > > Receive crypto, convert to fiat, pay out to a bank. ## Resource hierarchy Every API key belongs to an **organization**. An organization contains one or more **accounts**, and accounts are the central container for all monetary activity on the platform. ``` Organization ├── API Keys └── Accounts ├── Balances USD, USDC, EUR, USDT ├── Funding Methods bank accounts, crypto wallets └── Beneficiaries payout recipients ``` | Resource | Description | | - | - | | **Organization** | Your company. Owns accounts and API keys. | | **Account** | Holds multi-currency balances. Source for all transactions. | | **Beneficiary** | A registered payout recipient — a crypto wallet or a bank account. | ### How money moves All asset conversions go through the **quote-then-execute** pattern. Once you hold the right asset, you pay out to a beneficiary. **1. Create a quote** Specify the account, source asset, destination asset, and either the amount to sell (`fromAmount`) or the amount to receive (`toAmount`). The API returns a locked rate, the exact amounts on both sides, and any spread fee. Quotes are valid for **5 minutes**. **2. Execute the quote** Call the execute endpoint. Balances update atomically — the source asset is debited and the destination asset is credited in a single operation. The result is a **trade** transaction. **3. Pay out** Send funds to a pre-registered **beneficiary**. Crypto payouts complete immediately with an on-chain `txHash`. Fiat payouts enter `LOCKED` status and settle via banking rails. ## Environments | Environment | Base URL | Purpose | | - | - | - | | Sandbox | `https://api.sandbox.nxos.io` | Testing and integration. No real funds. | | Production | `https://api.nxos.io` | Live transactions with real funds. | Both environments share the same API surface. Sandbox accounts are provisioned automatically when you sign up. ## Quick example ```bash theme={null} curl https://api.sandbox.nxos.io/v1/accounts \ -H "Authorization: Bearer nxos_sk_test_..." ``` ```json theme={null} { "object": "list", "data": [ { "object": "account", "accountId": "acct_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", "name": "Main", "isPrimary": true, "status": "ACTIVE", "fundingMethods": [], "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z" } ], "hasMore": false, "nextCursor": null } ```