# Overview > What you can build with the YouHodler Business API: accounts for your customers, fiat and crypto funding, conversions and payouts with approvals. Start points: use cases, supported assets, quickstart and example apps. Source: https://business-api-docs.youhodler.com/intro **Built for teams that move money for others** One API to open accounts for your customers, receive fiat and crypto, convert between them and pay out, with approvals and an audit trail built in. See what you can build, check that your currencies are covered, then make your first call on sandbox. > **Start on sandbox:** Everything here can be tried on sandbox today; production access is granted after a review. [Supported assets and status](/coverage) shows what each capability can be relied on for. ## What you can build - Use case: [Marketplaces and checkouts](/use-cases/marketplaces-and-checkouts) — Give each seller an account, take buyers' payments in crypto and attribute the money to the right seller. - Use case: [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) — Add balances, deposits, swaps and withdrawals to your own product, under your brand. - Use case: [Treasury and international payments](/use-cases/treasury-and-international-payments) — Hold and move liquidity across accounts and currencies, convert, and wire money to your bank accounts abroad. More, including moving ARS into USD abroad and treasury automation with AI agents, on [What you can build](/use-cases). ## Start here - Check: [Supported assets and status](/coverage) — Currencies, networks and payment rails, the operations each one supports, and what is available, sandbox-only or in beta. - Try: [Quickstart](/quickstart) — From a sandbox token to a funded account and a webhook in about fifteen minutes. - Build: [Example apps](/examples) — Small apps you can download and run: a customer wallet, a treasury dashboard and a treasury agent. ## Core capabilities - **Accounts for your customers.** Open a connected account (API: `client`) for each customer and one or more client accounts under it. See [Topology and refs](/concepts/topology-and-refs) and [Accounts](/concepts/accounts). - **Money in.** Bank details and crypto addresses that credit an account. See [Funding endpoints](/concepts/funding-endpoints). - **Money out.** Payouts to crypto addresses, and bank payouts from your master account to a bank account in your company's name. See [Withdrawal destinations](/concepts/withdrawal-destinations) and [Supported assets](/coverage). - **Conversions.** Preview a price, then convert between currencies. See [Conversions and pricing](/concepts/conversions-and-pricing) and [Ramps](/concepts/ramps). - **Controls.** Roles, policy rules and approvals decide who may do what. See [Access](/concepts/access) and [Policies and approvals](/concepts/policies-and-approvals). - **Staying in sync.** Operation statuses, events and signed webhooks. See [Transaction lifecycle](/guides/transaction-lifecycle). New to the vocabulary? The [Glossary](/concepts/glossary) maps the words used in the console and on our site to the API terms. ## For AI agents Every page has a Markdown version (**View as Markdown** at the top). The index is [llms.txt](/llms.txt), the full text is [llms-full.txt](/llms-full.txt), and the contract is [openapi.json](/openapi.json). ## Base URL **Sandbox** ``` https://b2b2x-sandbox.youhodler.com/api ``` **Production** ``` https://b2b.youhodler.com/api ``` Production access is granted after a review. When your integration works on sandbox, ask for it with [`POST /production-access-requests`](/api/reference/onboarding/production-access-requests-create) or in the console. Commercial terms, compliance, custody and support are set with you directly: see the [FAQ](https://business-api.youhodler.com/#faq) or write to [business@youhodler.com](mailto:business@youhodler.com). ## Explore The Portal ### Concepts Learn the platform model before you dive into execution. This section explains typed refs, account boundaries, operation structure, governed execution, and delivery surfaces. - [TopologyRef vs AccountRef](/concepts/topology-and-refs#topologyref) - [Balance reads](/concepts/accounts#balance-reads) - [Operation model](/concepts/operations#mental-model) - [Policies and approvals](/concepts/policies-and-approvals#what-belongs-here) [View all →](/concepts) ### Workflows Read the public API in operational order. These guides connect perimeter setup, distribution, execution, settlement, and suspension into coherent integration sequences. - [Activation and setup](/workflows/activation-and-setup#operational-sequence) - [Distribution and liquidity](/workflows/distribution-and-liquidity#operational-sequence) - [Live operations](/workflows/live-operations-and-controls#operational-sequence) - [Settlement and suspension](/workflows/settlement-and-suspension#operational-sequence) [View all →](/workflows) ### API Kickstart Use grouped API family pages when you already know the model and want request and response shapes organized into readable operational clusters. - [Access and topology](/reference/access-and-topology#access-and-perimeter) - [Actors and control](/reference/actors-and-access-control#principals-scope-and-control) - [Clients and accounts](/reference/clients-and-accounts#downstream-perimeter-and-liquidity) - [Operations](/reference/operations#preview-and-execute) [View all →](/reference) --- # Quickstart > From sandbox access to a verified connected account, a client account funded with a simulated ARS bank transfer, and a received webhook, by copy-paste on sandbox in about fifteen minutes once sandbox access is granted. Source: https://business-api-docs.youhodler.com/quickstart > **Status: In the API.** Every call on this page is in the public API contract; steps marked Sandbox-only work on sandbox only. At the end of this page you will have, on sandbox, a connected account for one of your customers, a client account that holds Argentine pesos received through its own CVU, and a webhook endpoint that receives events from the platform. Each step is one copy-paste command. Where a word is new, follow the link to the concept; this page does not explain the model. ```mermaid flowchart TD A["1. Access token"] --> B["2. Scope reference"] B --> C["3. Connected account"] C --> D["4. Simulated verification"] D --> E["5. Client account"] E --> F["6. ARS deposit details"] F --> G["7. Simulated bank transfer"] G --> H["8. Balance"] H --> I["9. Webhook"] ``` 1. Get an access token for your service account. 2. Read your scope reference (your business in the API). 3. Create a connected account for a customer. 4. Start its verification and simulate the approval (sandbox). 5. Open a client account for that customer. 6. Get ARS deposit details (a CVU) for the client account. 7. Simulate an incoming bank transfer to that CVU (sandbox). 8. Read the client account balance. 9. Subscribe a webhook endpoint and send it a test delivery. ## Before you start You need: - **Sandbox access.** Apply with the form at [business-api.youhodler.com](https://business-api.youhodler.com/#sandbox). Access is not self-serve: YouHodler reviews each request for the current Beta cohort and answers by email. Questions go to [business@youhodler.com](mailto:business@youhodler.com). Once access is granted, you sign in to the sandbox console at [business-api-admin-sandbox.youhodler.com](https://business-api-admin-sandbox.youhodler.com) as the owner of a new sandbox workspace. A sandbox signup is set up for Argentine onboarding, which is what the ARS deposit in step 6 needs. The fifteen minutes start here; two simulated reviews (steps 2 and 4) take a few minutes of that. - **`curl` and `jq`** in a bash or zsh terminal. - **A public HTTPS URL that shows you the requests it receives**, for step 9: an endpoint of your own or a tunnel to a local server. Plain `http` and private addresses are refused. - **A service account (console: API Keys) with the capabilities below.** The console gives an API key exactly one role, so create a role for it first. - **The two specs, if you check calls against the contract.** Steps marked Sandbox-only call `/sandbox/*` routes, which are only in the sandbox spec, [openapi-sandbox.json](/openapi-sandbox.json). Every other call is in [openapi.json](/openapi.json). ### Create the role and the API key 1. In the console, open **Roles**, choose **Create Role** and select these permissions: | Capability | Console permission | Used in step | | --- | --- | --- | | `enterprises.read` | View enterprise | 2 | | `kyc.verify` | Run connected-account and business verification | 2, 4 | | `clients.create` | Create connected accounts | 3 | | `clients.read` | View connected accounts | 6 | | `accounts.create` | Create client accounts | 5 | | `accounts.read` | View client accounts & balances | 8 | | `funding_endpoints.provision` | Provision funding endpoints | 6 | | `funding_endpoints.read` | View funding endpoints (deposit addresses) | 6 | | `sandbox_simulator.run` | Simulate deposits, verification reviews and bank answers (sandbox only) | 2, 4, 7, 9 | | `deposits.read` | View deposits | 7 | | `webhooks.create` | Create webhooks | 9 | | `webhooks.manage` | Manage webhooks | 9 | 2. Open **API Keys**, choose **Add API Key**, give it a name and pick that role. 3. Copy the **Client ID** and **Client Secret** from the "API key created" panel. The secret is shown once. How roles and service accounts work: [Access](/concepts/access) and [Authentication](/integrations/authentication). ### Set up your shell Run this once in a new terminal. It works in an empty folder, because each step saves its response as a JSON file there. `RUN` makes the idempotency keys of this run unique; re-running a command reuses its key, so a retry never creates a second resource (see [Idempotency](/concepts/idempotency-and-concurrency)). ```bash mkdir -p yh-quickstart && cd yh-quickstart export API="https://b2b2x-sandbox.youhodler.com/api" export SERVICE_ACCOUNT_ID="paste the Client ID here" export SERVICE_ACCOUNT_SECRET="paste the Client Secret here" export RUN=$(date +%s) ``` ## 1. Get an access token Exchange the API key's credentials for a bearer token ([Issue access token](/api/reference/auth/oauth-token)). ```bash curl -sS -X POST "$API/oauth/token" \ -H "Content-Type: application/json" \ -d @- < Which currencies, crypto networks, fiat rails and conversion pairs the Business API catalog lists, which API operations move them, what each needs (capability, Idempotency-Key, action token), and what is In the API, Sandbox-only or on a separate API, and which common corridors the production configuration has. Dated snapshot with the live endpoints to check one account. Source: https://business-api-docs.youhodler.com/coverage This page answers whether the Business API supports your currency, crypto network, payment rail and operation, and how far you can rely on that answer. Each table is plain Markdown built from the catalog and the OpenAPI contract, so people and AI agents read the same rows. > **Status: In the API.** On this page, "In the API" means "in the public API contract and usable on sandbox today". | Label | What it means | | --- | --- | | In the API | In the public API contract; usable on sandbox today. | | Sandbox-only | Works on sandbox only. These routes return 404 in production. | | Not on sandbox | In the public API contract, but its service does not run on sandbox today. | | Beta | A feature available for beta testing on sandbox. | **A catalog entry is not a promise for your account.** Each account sees what its commercial agreement and its verification allow, and a route can be listed yet not ready for a given account. To check one account, call the endpoints in [How to check live for your account](#how-to-check-live-for-your-account). > **Catalog snapshot as of 2026-10-23.** This is the seeded sandbox catalog: the catalog configuration the backend applies to the sandbox deployment. It is the global reference catalog, not what one account may use. > > Source: backend catalog configuration. ## Supported assets and networks One row per asset and network or rail. **Deposit** means you can get receive details for it on an account (a [funding endpoint](/concepts/funding-endpoints)); **Withdrawal** means you can send it out to a [withdrawal destination](/concepts/withdrawal-destinations). For crypto, send the network code as `routing.network`; for fiat, send the rail code as `routing.fiat_rail` (see [Rail classes](/concepts/rail-classes)). On sandbox, crypto networks are test networks, so fund them with testnet coins. | Asset | Type | Network or rail | Deposit | Withdrawal | Notes | | --- | --- | --- | --- | --- | --- | | ARS (Argentine Peso) | fiat | Local Bank Transfer (`local_bank_transfer`) | Yes | No | Deposit only. BIND / Argentine CVU. | | AVAX (Avalanche) | crypto | Avalanche C-Chain (`avalanche`) | Yes | Yes | | | BNB (BNB) | crypto | BNB Smart Chain (`bnb`) | Yes | Yes | | | BTC (Bitcoin) | crypto | Bitcoin (`bitcoin`) | Yes | Yes | | | ETH (Ether) | crypto | Arbitrum One (`arbitrum`) | Yes | Yes | | | ETH (Ether) | crypto | Base (`base`) | Yes | Yes | | | ETH (Ether) | crypto | Ethereum (`ethereum`) | Yes | Yes | | | EUR (Euro) | fiat | SEPA (`sepa_credit_transfer`) | Yes | Yes | Conduit / virtual account with IBAN. Withdrawals only from a master account that already has EUR bank details, to a bank account in your company's own name. | | POL (Polygon) | crypto | Polygon PoS (`polygon`) | Yes | Yes | | | SOL (Solana) | crypto | Solana (`solana`) | Yes | Yes | | | TRX (Tron) | crypto | Tron (`tron`) | Yes | Yes | | | USD (US Dollar) | fiat | Fedwire (`fedwire`) | Yes | Yes | Conduit / virtual US bank account. Withdrawals only from a master account that already has USD bank details, to a bank account in your company's own name. | | USD (US Dollar) | fiat | SWIFT (`swift`) | Yes | Yes | Conduit / virtual account with SWIFT details. Withdrawals only from a master account that already has USD bank details, to a bank account in your company's own name. | | USDC (USD Coin) | stablecoin | Arbitrum One (`arbitrum`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Avalanche C-Chain (`avalanche`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Base (`base`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Ethereum (`ethereum`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Polygon PoS (`polygon`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Solana (`solana`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Stellar (`stellar`) | Yes | Yes | | | USDC (USD Coin) | stablecoin | Tron (`tron`) | Yes | Yes | | | USDT (Tether USD) | stablecoin | BNB Smart Chain (`bnb`) | Yes | Yes | | | USDT (Tether USD) | stablecoin | Tron (`tron`) | Yes | Yes | | | XLM (Stellar Lumens) | crypto | Stellar (`stellar`) | Yes | Yes | | | XRP (XRP) | crypto | XRP Ledger (`xrpl`) | Yes | Yes | | ### Sandbox catalog versus the production configuration The backend also holds the production catalog configuration. It is the global configuration, not what one account may use there: that depends on the account's agreement and verification. Where it differs from the sandbox catalog above: | Compared with sandbox | Production configuration as of 2026-10-23 | | --- | --- | | Asset and network or rail routes | 28 (sandbox: 25) | | Only in the production configuration | USDC on `bnb`, USDT on `arbitrum`, USDT on `avalanche`, USDT on `ethereum`, USDT on `polygon` and USDT on `solana` | | Only on sandbox | EUR on `sepa_credit_transfer`, USD on `fedwire` and USD on `swift` | | Active conversion pairs | 7 (sandbox: 105): ARS to USD, BTC to USDT, ETH to USDT, USDC to USDT, USDT to BTC, USDT to ETH and USDT to USDC | #### Common corridors What each common money path needs, and whether each catalog has it today. Read the last column as configuration, not as a promise for one account. In short: the production configuration has ARS to USD abroad, USDC and USDT swaps, BTC and ETH against USDT, and crypto in and out without a conversion. It has no pair from a stablecoin to USD or EUR, and none from USD to a stablecoin, so stablecoin to bank corridors exist on sandbox only. | Corridor | Operations | Sandbox catalog | Production configuration as of 2026-10-23 | | --- | --- | --- | --- | | Stablecoin in, USD out to your bank | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | No: no USDC to USD or USDT to USD pair and no USD bank withdrawal route | | Stablecoin in, EUR out to your bank | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | No: no USDC to EUR or USDT to EUR pair and no EUR bank withdrawal route | | ARS in, USD out to your bank abroad | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | No: no USD bank withdrawal route | | ARS in, stablecoin out | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | No: no USD to USDC or USD to USDT pair | | USD in by bank, stablecoin out | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | No: no USD bank deposit route and no USD to USDC or USD to USDT pair | | USDC to USDT or back | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | Yes | | BTC or ETH to USDT or back | `funding_endpoints.create`, `conversions.create`, `withdrawals.create` | Yes | Yes | | Crypto in, the same crypto out | `funding_endpoints.create`, `withdrawals.create` | Yes | Yes | Every corridor that ends in a bank payout (USD or EUR) pays out from a master account to a bank account in your company's own name; see the Notes in the tables. [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad) walks the ARS corridor end to end. ## Payment rails for fiat Fiat routes by currency and rail. The provider and receive route are the ones the [sandbox guide](/guides/sandbox-testing#currency-and-route-support) documents. "Receive details from" names the call that issues the bank coordinates for a deposit; the simulations are the sandbox calls that stand in for the provider. The providers: - **BIND** (Banco Industrial): an Argentine bank that issues CVUs, the account numbers Argentine banks and wallets send pesos to. - **Conduit**: a payments provider that issues USD and EUR virtual bank accounts to your company and sends USD and EUR bank payouts from them. - **Sandbox fiat simulator**: a stand-in provider that exists on sandbox only. It issues test bank details and books payouts as paid; no real bank is involved. | Currency | Rail (`routing.fiat_rail`) | Provider / receive route | Region | Deposit | Withdrawal | Receive details from | Sandbox simulations | Notes | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | ARS | `local_bank_transfer` | BIND / Argentine CVU | Argentina | Yes | No | [`funding_endpoints.create`](/api/reference/funding-endpoints/funding-endpoints-create) | incoming transfer | | | EUR | `sepa_credit_transfer` | Conduit / virtual account with IBAN | SEPA area | Yes | Yes | [`funding_endpoints.create`](/api/reference/funding-endpoints/funding-endpoints-create) | incoming transfer, issuance review, destination review, payout settlement | Withdrawals only from a master account that already has EUR bank details, to a bank account in your company's own name. | | USD | `fedwire` | Conduit / virtual US bank account | United States (domestic wire) | Yes | Yes | [`funding_endpoints.create`](/api/reference/funding-endpoints/funding-endpoints-create) | incoming transfer, issuance review, destination review, payout settlement | Withdrawals only from a master account that already has USD bank details, to a bank account in your company's own name. | | USD | `swift` | Conduit / virtual account with SWIFT details | International (SWIFT) | Yes | Yes | [`funding_endpoints.create`](/api/reference/funding-endpoints/funding-endpoints-create) | incoming transfer, issuance review, destination review, payout settlement | Withdrawals only from a master account that already has USD bank details, to a bank account in your company's own name. | The contract also defines `faster_payments` as a fiat rail value; no route in this catalog uses it. Some routes open only after a check on the account holder. For example, the contract's `funding_routes.readiness` reports `fiat_international_verification_required` when the holder must complete the international verification first, and `fiat_party_not_supported` when the route's provider does not serve that kind of account holder. ## Conversion pairs A pair is a supported direction, with static bounds on the amount you convert from, in the source currency. Pairs are not account-specific and are not prices, fees or liquidity guarantees: get the rate and fees for an account with `conversions.preview`, which is indicative too. See [Conversions and pricing](/concepts/conversions-and-pricing). 105 active pairs between 14 currencies. The catalog also carries 8 inactive pairs (BTC to GBP, ETH to GBP, GBP to BTC, GBP to ETH, GBP to USDC, GBP to USDT, USDC to GBP and USDT to GBP), which cannot be used. | From | Converts to | Pairs | | --- | --- | --- | | ARS | USD | 1 | | AVAX | BTC, EUR, USDC, USDT | 4 | | BNB | BTC, ETH, EUR, POL, SOL, TRX, USD, USDC, USDT | 9 | | BTC | AVAX, BNB, ETH, EUR, SOL, TRX, USD, USDC, USDT, XRP | 10 | | ETH | BNB, BTC, EUR, SOL, TRX, USD, USDC, USDT, XLM, XRP | 10 | | EUR | AVAX, BNB, BTC, ETH, POL, SOL, TRX, USD, USDC, USDT, XLM, XRP | 12 | | POL | BNB, EUR, USDC, USDT | 4 | | SOL | BNB, BTC, ETH, EUR, USD, USDC, USDT | 7 | | TRX | BNB, BTC, ETH, EUR, USDC, USDT, XRP | 7 | | USD | BNB, BTC, ETH, EUR, SOL, USDC, USDT | 7 | | USDC | AVAX, BNB, BTC, ETH, EUR, POL, SOL, TRX, USD, USDT, XLM, XRP | 12 | | USDT | AVAX, BNB, BTC, ETH, EUR, POL, SOL, TRX, USD, USDC, XLM, XRP | 12 | | XLM | ETH, EUR, USDC, USDT | 4 | | XRP | BTC, ETH, EUR, TRX, USDC, USDT | 6 | Bounds per pair: | From | To | Minimum source amount | Maximum source amount | Pair `id` | | --- | --- | --- | --- | --- | | ARS | USD | 10000 ARS | 100000000 ARS | `ars-usd` | | AVAX | BTC | 4 AVAX | 40000 AVAX | `avax-btc` | | AVAX | EUR | 4 AVAX | 40000 AVAX | `avax-eur` | | AVAX | USDC | 4 AVAX | 40000 AVAX | `avax-usdc` | | AVAX | USDT | 4 AVAX | 40000 AVAX | `avax-usdt` | | BNB | BTC | 0.05 BNB | 400 BNB | `bnb-btc` | | BNB | ETH | 0.05 BNB | 400 BNB | `bnb-eth` | | BNB | EUR | 0.05 BNB | 400 BNB | `bnb-eur` | | BNB | POL | 0.05 BNB | 400 BNB | `bnb-pol` | | BNB | SOL | 0.05 BNB | 400 BNB | `bnb-sol` | | BNB | TRX | 0.05 BNB | 400 BNB | `bnb-trx` | | BNB | USD | 0.05 BNB | 400 BNB | `bnb-usd` | | BNB | USDC | 0.05 BNB | 400 BNB | `bnb-usdc` | | BNB | USDT | 0.05 BNB | 400 BNB | `bnb-usdt` | | BTC | AVAX | 0.0001 BTC | 10 BTC | `btc-avax` | | BTC | BNB | 0.0001 BTC | 10 BTC | `btc-bnb` | | BTC | ETH | 0.0002 BTC | 10 BTC | `btc-eth` | | BTC | EUR | 0.0002 BTC | 10 BTC | `btc-eur` | | BTC | SOL | 0.0001 BTC | 10 BTC | `btc-sol` | | BTC | TRX | 0.0001 BTC | 10 BTC | `btc-trx` | | BTC | USD | 0.0002 BTC | 10 BTC | `btc-usd` | | BTC | USDC | 0.0002 BTC | 10 BTC | `btc-usdc` | | BTC | USDT | 0.0002 BTC | 10 BTC | `btc-usdt` | | BTC | XRP | 0.0001 BTC | 10 BTC | `btc-xrp` | | ETH | BNB | 0.001 ETH | 250 ETH | `eth-bnb` | | ETH | BTC | 0.004 ETH | 250 ETH | `eth-btc` | | ETH | EUR | 0.004 ETH | 250 ETH | `eth-eur` | | ETH | SOL | 0.001 ETH | 250 ETH | `eth-sol` | | ETH | TRX | 0.001 ETH | 250 ETH | `eth-trx` | | ETH | USD | 0.004 ETH | 250 ETH | `eth-usd` | | ETH | USDC | 0.004 ETH | 250 ETH | `eth-usdc` | | ETH | USDT | 0.004 ETH | 250 ETH | `eth-usdt` | | ETH | XLM | 0.001 ETH | 250 ETH | `eth-xlm` | | ETH | XRP | 0.001 ETH | 250 ETH | `eth-xrp` | | EUR | AVAX | 10 EUR | 100000 EUR | `eur-avax` | | EUR | BNB | 10 EUR | 100000 EUR | `eur-bnb` | | EUR | BTC | 10 EUR | 250000 EUR | `eur-btc` | | EUR | ETH | 10 EUR | 250000 EUR | `eur-eth` | | EUR | POL | 10 EUR | 100000 EUR | `eur-pol` | | EUR | SOL | 10 EUR | 100000 EUR | `eur-sol` | | EUR | TRX | 10 EUR | 100000 EUR | `eur-trx` | | EUR | USD | 10 EUR | 100000 EUR | `eur-usd` | | EUR | USDC | 10 EUR | 250000 EUR | `eur-usdc` | | EUR | USDT | 10 EUR | 250000 EUR | `eur-usdt` | | EUR | XLM | 10 EUR | 100000 EUR | `eur-xlm` | | EUR | XRP | 10 EUR | 100000 EUR | `eur-xrp` | | POL | BNB | 300 POL | 3000000 POL | `pol-bnb` | | POL | EUR | 300 POL | 3000000 POL | `pol-eur` | | POL | USDC | 300 POL | 3000000 POL | `pol-usdc` | | POL | USDT | 300 POL | 3000000 POL | `pol-usdt` | | SOL | BNB | 0.3 SOL | 3000 SOL | `sol-bnb` | | SOL | BTC | 0.3 SOL | 3000 SOL | `sol-btc` | | SOL | ETH | 0.3 SOL | 3000 SOL | `sol-eth` | | SOL | EUR | 0.3 SOL | 3000 SOL | `sol-eur` | | SOL | USD | 0.3 SOL | 3000 SOL | `sol-usd` | | SOL | USDC | 0.3 SOL | 3000 SOL | `sol-usdc` | | SOL | USDT | 0.3 SOL | 3000 SOL | `sol-usdt` | | TRX | BNB | 100 TRX | 1000000 TRX | `trx-bnb` | | TRX | BTC | 100 TRX | 1000000 TRX | `trx-btc` | | TRX | ETH | 100 TRX | 1000000 TRX | `trx-eth` | | TRX | EUR | 100 TRX | 1000000 TRX | `trx-eur` | | TRX | USDC | 100 TRX | 1000000 TRX | `trx-usdc` | | TRX | USDT | 100 TRX | 1000000 TRX | `trx-usdt` | | TRX | XRP | 100 TRX | 1000000 TRX | `trx-xrp` | | USD | BNB | 10 USD | 100000 USD | `usd-bnb` | | USD | BTC | 10 USD | 250000 USD | `usd-btc` | | USD | ETH | 10 USD | 250000 USD | `usd-eth` | | USD | EUR | 10 USD | 100000 USD | `usd-eur` | | USD | SOL | 10 USD | 100000 USD | `usd-sol` | | USD | USDC | 10 USD | 250000 USD | `usd-usdc` | | USD | USDT | 10 USD | 250000 USD | `usd-usdt` | | USDC | AVAX | 10 USDC | 250000 USDC | `usdc-avax` | | USDC | BNB | 10 USDC | 250000 USDC | `usdc-bnb` | | USDC | BTC | 10 USDC | 250000 USDC | `usdc-btc` | | USDC | ETH | 10 USDC | 250000 USDC | `usdc-eth` | | USDC | EUR | 10 USDC | 250000 USDC | `usdc-eur` | | USDC | POL | 10 USDC | 250000 USDC | `usdc-pol` | | USDC | SOL | 10 USDC | 250000 USDC | `usdc-sol` | | USDC | TRX | 10 USDC | 250000 USDC | `usdc-trx` | | USDC | USD | 10 USDC | 250000 USDC | `usdc-usd` | | USDC | USDT | 10 USDC | 250000 USDC | `usdc-usdt` | | USDC | XLM | 10 USDC | 250000 USDC | `usdc-xlm` | | USDC | XRP | 10 USDC | 250000 USDC | `usdc-xrp` | | USDT | AVAX | 10 USDT | 250000 USDT | `usdt-avax` | | USDT | BNB | 10 USDT | 250000 USDT | `usdt-bnb` | | USDT | BTC | 10 USDT | 250000 USDT | `usdt-btc` | | USDT | ETH | 10 USDT | 250000 USDT | `usdt-eth` | | USDT | EUR | 10 USDT | 250000 USDT | `usdt-eur` | | USDT | POL | 10 USDT | 250000 USDT | `usdt-pol` | | USDT | SOL | 10 USDT | 250000 USDT | `usdt-sol` | | USDT | TRX | 10 USDT | 250000 USDT | `usdt-trx` | | USDT | USD | 10 USDT | 250000 USDT | `usdt-usd` | | USDT | USDC | 10 USDT | 250000 USDT | `usdt-usdc` | | USDT | XLM | 10 USDT | 250000 USDT | `usdt-xlm` | | USDT | XRP | 10 USDT | 250000 USDT | `usdt-xrp` | | XLM | ETH | 200 XLM | 2000000 XLM | `xlm-eth` | | XLM | EUR | 200 XLM | 2000000 XLM | `xlm-eur` | | XLM | USDC | 200 XLM | 2000000 XLM | `xlm-usdc` | | XLM | USDT | 200 XLM | 2000000 XLM | `xlm-usdt` | | XRP | BTC | 20 XRP | 200000 XRP | `xrp-btc` | | XRP | ETH | 20 XRP | 200000 XRP | `xrp-eth` | | XRP | EUR | 20 XRP | 200000 XRP | `xrp-eur` | | XRP | TRX | 20 XRP | 200000 XRP | `xrp-trx` | | XRP | USDC | 20 XRP | 200000 XRP | `xrp-usdc` | | XRP | USDT | 20 XRP | 200000 XRP | `xrp-usdt` | ## Operations matrix How you use these currencies through the API. Each operation links to its reference page. Every request needs `Authorization: Bearer ` from `oauth.token`, and a token whose role grants the capability shown. Send an `Idempotency-Key` on every write and reuse it only to retry the same request ([Idempotency](/concepts/idempotency-and-concurrency)). Statuses are shared across these operations; see [Operations](/concepts/operations) and [Transaction lifecycle](/guides/transaction-lifecycle). | Operation | What it does | Operations | Required capability | `Idempotency-Key` | Action token, waits and cancel | Sandbox simulation | | --- | --- | --- | --- | --- | --- | --- | | **Deposit** | Receive funds into an account: get receive details (bank account, CVU, IBAN or crypto address), then follow the deposits it records. | [`funding_endpoints.create`](/api/reference/funding-endpoints/funding-endpoints-create), [`deposit_instructions.create`](/api/reference/deposit-instructions/deposit-instructions-create), [`deposits.list`](/api/reference/deposits/deposits-list), [`deposits.get`](/api/reference/deposits/deposits-get) | `funding_endpoints.provision`, `deposit_instructions.create`, `deposits.read` | Required on `funding_endpoints.create` and `deposit_instructions.create`. | No approval step and no cancel route: a deposit can wait in `pending_admission` (the account cannot be credited yet) or `pending_compliance`, then runs as `executing`. | Sandbox-only [`sandbox.funding_endpoints.incoming_transfers`](/api/reference/sandbox/sandbox-funding-endpoints-incoming-transfers), [`sandbox.funding_endpoints.issuance_review`](/api/reference/sandbox/sandbox-funding-endpoints-issuance-review) | | **Withdrawal** | Send funds out of an account to a stored destination (bank account or crypto address) or, for crypto, an inline address. | [`withdrawal_destinations.create`](/api/reference/withdrawal-destinations/withdrawal-destinations-create), [`withdrawals.create`](/api/reference/withdrawals/withdrawals-create), [`withdrawals.get`](/api/reference/withdrawals/withdrawals-get), [`withdrawals.cancel`](/api/reference/withdrawals/withdrawals-cancel) | `withdrawal_destinations.create`, `withdrawals.create`, `withdrawals.read`, `withdrawals.manage` | Accepted on `withdrawal_destinations.create`, `withdrawals.create` and `withdrawals.cancel`; `withdrawals.create` also takes body `client_idempotency_key`. | Human callers send `X-Action-Token` from [`action_tokens.create`](/api/reference/action-tokens/action-tokens-create) on `withdrawals.create`; service accounts are exempt. Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `executing`. Cancel works only while it waits. | Sandbox-only [`sandbox.withdrawal_destinations.review`](/api/reference/sandbox/sandbox-withdrawal-destinations-review), [`sandbox.withdrawals.settlement`](/api/reference/sandbox/sandbox-withdrawals-settlement) | | **Conversion** | Exchange one currency for another inside an account, on a pair from the conversion catalog. A preview is indicative and non-binding. | [`conversions.preview`](/api/reference/conversions/conversions-preview), [`conversions.create`](/api/reference/conversions/conversions-create), [`conversions.get`](/api/reference/conversions/conversions-get), [`conversions.cancel`](/api/reference/conversions/conversions-cancel) | `conversions.create`, `conversions.read`, `conversions.manage` | Accepted on `conversions.preview`, `conversions.create` and `conversions.cancel`; `conversions.create` also takes body `client_idempotency_key`. | Human callers send `X-Action-Token` from [`action_tokens.create`](/api/reference/action-tokens/action-tokens-create) on `conversions.create`; service accounts are exempt. Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `admissible`. Cancel works only while it waits. | No simulation route | | **External settlement conversion** | A conversion whose source or target side settles with an external settlement source. Needs a client account with a matching external-settlement binding; ask your account manager. | [`external_settlement_conversions.create`](/api/reference/external-settlement-conversions/external-settlement-conversions-create), [`external_settlement_conversions.get`](/api/reference/external-settlement-conversions/external-settlement-conversions-get) | `external_settlement_conversions.create`, `external_settlement_conversions.read` | Accepted on `external_settlement_conversions.create`; `external_settlement_conversions.create` also takes body `client_idempotency_key`. | Human callers send `X-Action-Token` from [`action_tokens.create`](/api/reference/action-tokens/action-tokens-create) on `external_settlement_conversions.create`; service accounts are exempt. Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `admissible`. No cancel route. | No simulation route | | **Internal transfer** | Move funds between two accounts of the same tenant, for example from the master account to a client account. | [`internal_transfers.create`](/api/reference/internal-transfers/internal-transfers-create), [`internal_transfers.get`](/api/reference/internal-transfers/internal-transfers-get), [`internal_transfers.cancel`](/api/reference/internal-transfers/internal-transfers-cancel) | `internal_transfers.create`, `internal_transfers.read`, `internal_transfers.manage` | Accepted on `internal_transfers.create` and `internal_transfers.cancel`; `internal_transfers.create` also takes body `client_idempotency_key`. | Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `admissible`. Cancel works only while it waits. | No simulation route | | **On-ramp** | Bring external fiat or crypto in and credit the account in another currency, in one session. | [`on_ramp_sessions.create`](/api/reference/on-ramp-sessions/on-ramp-sessions-create), [`on_ramp_sessions.get`](/api/reference/on-ramp-sessions/on-ramp-sessions-get), [`on_ramp_sessions.cancel`](/api/reference/on-ramp-sessions/on-ramp-sessions-cancel) | `ramps.create`, `ramps.read`, `ramps.manage` | Accepted on `on_ramp_sessions.create` and `on_ramp_sessions.cancel`; `on_ramp_sessions.create` also takes body `client_idempotency_key`. | Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `admissible`. Cancel works only while it waits. | No simulation route | | **Off-ramp** | Debit the account and deliver another currency to an external fiat or crypto destination, in one session. | [`off_ramp_sessions.create`](/api/reference/off-ramp-sessions/off-ramp-sessions-create), [`off_ramp_sessions.get`](/api/reference/off-ramp-sessions/off-ramp-sessions-get), [`off_ramp_sessions.cancel`](/api/reference/off-ramp-sessions/off-ramp-sessions-cancel) | `ramps.create`, `ramps.read`, `ramps.manage` | Accepted on `off_ramp_sessions.create` and `off_ramp_sessions.cancel`; `off_ramp_sessions.create` also takes body `client_idempotency_key`. | Can wait in `pending_approval` until an approver decides ([approvals](/concepts/policies-and-approvals)), or in `pending_compliance`, then runs as `admissible`, which includes the wait for the customer's crypto. Cancel works only while it waits, including the wait for that crypto. | No simulation route | ### Sample requests One request per row, as a service account on sandbox. Bodies come straight from the contract examples; replace the account references with your own. A human caller adds `X-Action-Token` where the matrix says so. **Deposit.** Get a crypto deposit address for an account. For fiat, the [sandbox guide](/guides/sandbox-testing#ars-deposit-example) walks an ARS deposit end to end, and [Create and fund a client](/guides/create-and-fund-a-client) covers the whole setup. **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/funding-endpoints Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "crypto", "routing": { "asset": "USDC", "network": "ethereum" } } ``` **Withdrawal.** Pay out to a stored fiat destination. On sandbox, settle it with the simulation in [From balance to a settled withdrawal](/guides/sandbox-testing#from-balance-to-a-settled-withdrawal). **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawals Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "100.00" }, "rail": "fiat", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Conversion.** Preview with the same body first if you want indicative economics; the conversion itself may recompute them. **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USD", "value": "250.00" }, "to_currency": "BTC" } ``` **External settlement conversion.** Works only on a client account with an external-settlement binding, which your account manager sets up. **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/external-settlement-conversions Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "external_settlement_role": "external_source_spend", "source_amount": { "currency": "EUR", "value": "250.00" }, "target_currency": "BTC" } ``` **Internal transfer.** From the master account to a client account. **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/internal-transfers Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **On-ramp and off-ramp.** See [Ramps](/concepts/ramps) for the session model. The off-ramp body restates a stored fiat destination. **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/on-ramp-sessions Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" } ``` **Request URL — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/off-ramp-sessions Authorization: Bearer Idempotency-Key: Content-Type: application/json ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "USDC", "value": "250.00" }, "destination": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "route_owner_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "target_currency": "EUR", "target_rail": "fiat" } ``` ## Feature status One row per capability family of the contract. The number after each family is how many operations it has; each family links to its reference. | Capability | Status | What you can do | API families (operations) | | --- | --- | --- | --- | | Authentication, users and access | In the API | Service-account tokens, human sign-in by token exchange, roles and scoped capabilities. | [Auth](/api/reference/auth) (3), [Me](/api/reference/me) (3), [Users](/api/reference/users) (15), [User Invitations](/api/reference/user-invitations) (6), [Service Accounts](/api/reference/service-accounts) (7), [Roles](/api/reference/roles) (5), [Role Assignments](/api/reference/role-assignments) (4), [Identity Providers](/api/reference/identity-providers) (6), [Capabilities](/api/reference/capabilities) (2) | | Accounts and topology | In the API | Your enterprise, its master accounts, connected accounts (API: `client`) and their client accounts, with balances. | [Enterprises](/api/reference/enterprises) (10), [Commercial Agreements](/api/reference/commercial-agreements) (4), [Master Accounts](/api/reference/master-accounts) (2), [Clients](/api/reference/clients) (7), [Client Accounts](/api/reference/client-accounts) (6), [Financial Accounts](/api/reference/financial-accounts) (1), [Balances](/api/reference/balances) (2) | | Funding and deposits | In the API | Receive details per account and rail, the deposits they record, and the deposit catalog. | [Funding Endpoints](/api/reference/funding-endpoints) (4), [Deposit Instructions](/api/reference/deposit-instructions) (3), [Deposits](/api/reference/deposits) (2), [Payment Methods](/api/reference/payment-methods) (5), [Crypto Networks](/api/reference/crypto-networks) (3) | | Withdrawals and payout methods | In the API | Stored destinations, withdrawals to them, and the payout catalog. | [Withdrawals](/api/reference/withdrawals) (4), [Withdrawal Destinations](/api/reference/withdrawal-destinations) (7), [Payout Methods](/api/reference/payout-methods) (5) | | Conversions and pricing | In the API | Conversions on catalog pairs, indicative prices and fee previews. | [Conversions](/api/reference/conversions) (5), [Conversion Pairs](/api/reference/conversion-pairs) (2), [Prices](/api/reference/prices) (2), [Fee Previews](/api/reference/fee-previews) (1) | | External settlement | Not on sandbox | Conversions settled outside the platform, and the balances funded that way. They need a binding set up with your account manager. The service does not run on sandbox today. | [External Settlement Conversions](/api/reference/external-settlement-conversions) (3), [External Funding](/api/reference/external-funding) (1) | | Ramps | In the API | Fiat or crypto in and out with a conversion in one session. | [On-ramp Sessions](/api/reference/on-ramp-sessions) (4), [Off-ramp Sessions](/api/reference/off-ramp-sessions) (4) | | Internal transfers | In the API | Moves between accounts of the same tenant. | [Internal Transfers](/api/reference/internal-transfers) (4) | | Policies and approvals | In the API | Policy rules, approval cases and their decisions, and single-use action tokens for human callers. | [Policies](/api/reference/policies) (10), [Approvals](/api/reference/approvals) (6), [Action Tokens](/api/reference/action-tokens) (1) | | Events and webhooks | In the API | Event log, webhook subscriptions, delivery history, redelivery and replay. | [Events](/api/reference/events) (4), [Webhook Subscriptions](/api/reference/webhook-subscriptions) (11) | | Reporting and audit exports | In the API | Asynchronous activity exports, audit log search and audit exports. | [Operations Activity Exports](/api/reference/operations-activity-exports) (4), [User Action Audit Entries](/api/reference/user-action-audit-entries) (2), [User Action Audit Exports](/api/reference/user-action-audit-exports) (4) | | Verification (KYC and KYB) | In the API | Enterprise KYB and connected-account KYC, legal acceptances, and the request for production access. | [KYC](/api/reference/kyc) (9), [Legal](/api/reference/legal) (3), [Onboarding](/api/reference/onboarding) (2) | | Loans (read access) | Not on sandbox | Read a loan and its lifecycle history. No operation creates a loan. The loan service does not run on sandbox today. | [Loans](/api/reference/loans) (2) | | Sandbox simulations | Sandbox-only | Supply an external review or transfer outcome. These routes return 404 in production. | [Sandbox](/api/reference/sandbox) (6) | | Crypto checkout | Beta | Hosted crypto payments on sandbox through the beta Merchant API, using a platform access token. | [Crypto checkout](/beta/crypto-checkout) | ### Not in the API today The platform API has no refund, invoice or payment-link operation of its own. For a hosted crypto payment page on sandbox, see [Crypto checkout (beta)](/beta/crypto-checkout). ## How to check live for your account The tables above are a snapshot of the global catalog. These endpoints answer for your account now. They need a bearer token; the account-scoped ones also need an `account_ref` (`master-accounts/` or `client-accounts/`) or a `scope_ref` (`enterprises/` or `clients/`) inside your own scope. | Question | Operation | Scope | | --- | --- | --- | | Which crypto networks and assets exist at all? | [`crypto_networks.list`](/api/reference/crypto-networks/crypto-networks-list) | None | | Which networks can this enterprise or client use, per direction? | [`eligible_crypto_networks.list`](/api/reference/crypto-networks/eligible-crypto-networks-list) | `scope_ref` | | Which networks can this account use right now, per direction? | [`available_crypto_networks.list`](/api/reference/crypto-networks/available-crypto-networks-list) | `account_ref` | | Which fiat deposit methods can this account set up right now? | [`available_payment_methods.list`](/api/reference/payment-methods/available-payment-methods-list) | `account_ref` | | Which fiat deposit routes does this account have, and why is one blocked? | [`funding_routes.readiness`](/api/reference/funding-endpoints/funding-routes-readiness) | `account_ref` | | Which fiat payout methods is this enterprise or client eligible for? | [`eligible_payout_methods.list`](/api/reference/payout-methods/eligible-payout-methods-list) | `scope_ref` | | Which conversion pairs exist, with their bounds? | [`conversion_pairs.list`](/api/reference/conversion-pairs/conversion-pairs-list) | None | Get a token with your service account's credentials ([Authentication](/integrations/authentication)): ```bash export API="https://b2b2x-sandbox.youhodler.com/api" export TOKEN=$(jq -n --arg id "$CLIENT_ID" --arg secret "$CLIENT_SECRET" \ '{grant_type: "client_credentials", client_id: $id, client_secret: $secret}' | curl -s -X POST "$API/oauth/token" -H "Content-Type: application/json" -d @- | jq -r .access_token) ``` Then ask. Lists are paginated: pass `page_size` (up to 500) and follow `next_page_token` until it is `null`. `direction` is `deposit` (the default) or `withdrawal`. ```bash ACCOUNT_REF="client-accounts/" SCOPE_REF="enterprises/" curl -s "$API/crypto-networks?asset=USDC" -H "Authorization: Bearer $TOKEN" curl -s "$API/eligible-crypto-networks?scope_ref=$SCOPE_REF&direction=withdrawal" -H "Authorization: Bearer $TOKEN" curl -s "$API/available-crypto-networks?account_ref=$ACCOUNT_REF&direction=deposit" -H "Authorization: Bearer $TOKEN" curl -s "$API/available-payment-methods?account_ref=$ACCOUNT_REF" -H "Authorization: Bearer $TOKEN" curl -s "$API/funding-routes/readiness?account_ref=$ACCOUNT_REF" -H "Authorization: Bearer $TOKEN" curl -s "$API/eligible-payout-methods?scope_ref=$SCOPE_REF&asset=USD" -H "Authorization: Bearer $TOKEN" curl -s "$API/conversion-pairs?source_currency=ARS" -H "Authorization: Bearer $TOKEN" ``` Each answer is a current snapshot. Creating a funding endpoint, a withdrawal or a conversion checks its own requirements again, so a route can still be refused at that point. --- # What you can build > Use cases for the YouHodler Business API, each with a step-by-step guide built from real API calls: marketplaces and checkouts, crypto apps and embedded finance, treasury and international payments, moving ARS into USD abroad, and AI treasury agents. Source: https://business-api-docs.youhodler.com/use-cases Each guide below starts from a business goal and walks through the real API calls that reach it, on sandbox. Pick the one closest to what you are building. > **Start on sandbox:** Each guide runs on sandbox and says which steps are sandbox-only or on a separate API. ## How the use cases fit together Every use case runs on the same pieces: your product calls the API, money sits in accounts you open for yourself and your customers, and it moves in and out through funding endpoints, conversions and payouts, under your policies. ```mermaid flowchart LR P["Your product: shop, app, treasury tool or agent"] API["Business API"] A["Accounts: your master account and a client account per customer"] IN["Money in: bank details, crypto addresses, checkout"] CV["Conversions between currencies"] OUT["Money out: crypto payouts, bank payouts to your own account"] G["Controls: roles, policies, approvals, audit"] P --> API API --> A IN --> A A --> CV CV --> A A --> OUT G -.-> API ``` 1. Your product, whatever it is, talks to the Business API with a service account. 2. The API keeps money in accounts: your master account, and a client account for each customer (a connected account, API: `client`). 3. Money comes in through bank details, crypto addresses or a hosted checkout, and lands in one of those accounts. 4. Conversions move value between currencies inside the accounts. 5. Money goes out as crypto payouts, or as bank payouts to a bank account in your company's name. 6. Roles, policy rules and approvals decide who may do what, and every action is recorded. The guides below each follow one path through this picture. ## Main use cases - For marketplaces and online shops: [Marketplaces and checkouts](/use-cases/marketplaces-and-checkouts) — Give each seller an account, take buyers' crypto payments into it with Crypto checkout, reconcile per seller and pay sellers out. - For fintechs and apps: [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) — Create accounts for your customers, show balances, receive deposits, swap and withdraw, all inside your own product. - For finance and treasury teams: [Treasury and international payments](/use-cases/treasury-and-international-payments) — See positions across accounts, move liquidity between them, convert, pay abroad and reconcile. ## More guides - For Argentine companies: [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad) — Receive pesos, convert them to dollars after a non-binding preview and wire them to your company's bank account abroad, ready to pay suppliers. - For automation teams: [AI agents and treasury automation](/use-cases/ai-treasury-agent) — Let an agent watch balances, propose conversions and make permitted payments, inside policies and approvals, with an audit trail. ## Pick by goal | Your goal | Guide | Example app | | --- | --- | --- | | Take payments from buyers in crypto | [Crypto checkout](/beta/crypto-checkout) | — | | Run a marketplace with many sellers | [Marketplaces and checkouts](/use-cases/marketplaces-and-checkouts) | — | | Give your customers wallets and swaps | [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) | [crypto-wallet](/examples#crypto-wallet) | | Manage company liquidity across currencies | [Treasury and international payments](/use-cases/treasury-and-international-payments) | [treasury-dashboard](/examples#treasury-dashboard) | | Move pesos into dollars abroad to pay suppliers | [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad) | [treasury-dashboard](/examples#treasury-dashboard) | | Automate treasury with an agent | [AI agents and treasury automation](/use-cases/ai-treasury-agent) | [treasury-agent](/examples#treasury-agent) | ## Before you pick - Check that your currencies, networks and rails are covered: [Supported assets and status](/coverage). - Make a first call on sandbox: [Quickstart](/quickstart). - Learn the model in five minutes: [Concepts](/concepts). --- # AI agents and treasury automation > Let an automated agent watch balances, propose conversions and make permitted payments: a least-privilege service account, policy rules that hold large operations for a person's approval, idempotent writes, an audit trail that names the agent, and a kill switch. Vendor-neutral. Source: https://business-api-docs.youhodler.com/use-cases/ai-treasury-agent > **Status: In the API.** Every call on this page is in the public API contract. You want software to do routine treasury work: notice that the dollar buffer is low, propose converting surplus pesos, move money between your accounts, pay a supplier you already pay every month. You do not want that software to be able to empty the treasury, approve its own requests, or act without a trace. This guide shows how to run such an agent on the Business API. It is for automation and finance teams, and for the developer who builds the agent. The "agent" can be a scheduled job, a rules engine or a language model: the platform treats them all the same, and nothing here depends on a particular AI vendor or model. The outcome: - The agent has its **own identity**, a service account that can read and propose, or execute within limits, and nothing more. - **Policy rules on the platform**, not just checks inside the agent, hold anything large for a person to approve and refuse anything above a ceiling. - Every write carries an **idempotency key**, so a retry cannot pay twice. - The **audit trail** names the agent as the initiator and the person as the approver. - One call **switches the agent off**. A working example: [treasury-agent](/examples#treasury-agent) ([download the zip](/example-apps/treasury-agent.zip)) keeps a USD buffer topped up from surplus ARS, with a decision log and a mock mode you can run without credentials. ## How it works The agent proposes, the platform decides and executes, and people approve what the policy holds. ```mermaid sequenceDiagram participant Agent as Agent (service account) participant API as Business API participant Policy as Policy rules participant Person as Approver (console) Agent->>API: Read balances, price and conversion preview Agent->>API: POST /conversions with Idempotency-Key API->>Policy: Evaluate active rules for this conversion Policy-->>API: Require one approval API-->>Agent: 202, status pending_approval, approval_ref Agent->>Agent: Record the approval id and stop API-->>Person: Case appears under Approvals Person->>API: Approve, with MFA step-up API->>API: Execute the conversion as the agent API-->>Agent: Event operations.conversion.settled.v1 Agent->>API: GET the conversion, report the result ``` 1. The agent reads balances, an indicative price and a conversion preview. None of these move money. 2. It submits the conversion with an `Idempotency-Key`. 3. The platform evaluates the active policy rules for the operation. 4. A rule requires a person's approval, so the conversion stops at `pending_approval` and the response carries an `approval_ref`. 5. The agent records the approval reference and stops. It does not resubmit. 6. The approval case appears in the console under **Approvals**. 7. A person who is allowed to decide approves it, with an MFA step-up. 8. The platform executes the conversion under the agent's identity. 9. The platform publishes `operations.conversion.settled.v1` (or `failed`). 10. The agent reads the conversion and reports the result. Small operations under the rule's threshold skip steps 4 to 7 and execute straight away. Operations a deny rule matches are refused at step 3 with `422`. ## Before you start - **Sandbox access.** An enterprise, an account holding funds, and a person who can create service accounts, roles and policy rules. Those setup rights (`service_accounts.create`, `roles.create`, `role_assignments.create`, `policies.create`, `policies.manage`) belong to that person, never to the agent. - **Worth reading first:** [Identity](/concepts/identity), [Access](/concepts/access), [Policies and approvals](/concepts/policies-and-approvals), [Operations](/concepts/operations) and [Idempotency and concurrency](/concepts/idempotency-and-concurrency). - **The treasury calls themselves** (balances, conversions, transfers, payouts, reconciliation) are explained in [Smart treasury and international payments](/use-cases/treasury-and-international-payments). This page adds what changes when software, not a person, makes them. ## 1. Give the agent its own identity Create one service account per agent. Never let an agent use a person's credentials or share a key with another integration: the audit trail can only be as precise as the identity behind each call. In the console, service accounts are under **API Keys**. Bundle the capabilities into a role, then provision the account with that role in one call. Each capability below is the `x-required-capability` of the operation the agent calls. ### A read-and-propose agent It watches and suggests; a person executes the suggestion in the console. | Capability | Lets the agent call | | --- | --- | | `accounts.read` | `GET /master-accounts/{master_account_id}/balances`, `GET /client-accounts/{client_account_id}/balances`, `GET /master-accounts`, `GET /client-accounts` | | `conversions.read` | `GET /conversions`, `GET /conversions/{conversion_id}` | | `internal_transfers.read` | `GET /internal-transfers`, `GET /internal-transfers/{internal_transfer_id}` | | `withdrawals.read` | `GET /withdrawals`, `GET /withdrawals/{withdrawal_id}` | | `deposits.read` | `GET /deposits`, `GET /deposits/{deposit_id}` | | `withdrawal_destinations.read` | `GET /withdrawal-destinations` | | `events.read` | `GET /events`, `GET /events/{event_id}` | | `approvals.read` | `GET /approvals`, `GET /approvals/{approval_id}` | Prices and previews need no capability: `GET /prices/indicative`, `GET /prices/assets`, `POST /fee-previews`, `POST /conversions/preview` and `GET /conversion-pairs`. The account you ask about must still be inside the service account's scope. `GET /me/capabilities` tells the agent what it holds. ### An agent that executes within limits The same list, plus the create capabilities for the operations it may start: | Capability | Lets the agent call | | --- | --- | | `conversions.create` | `POST /conversions` | | `internal_transfers.create` | `POST /internal-transfers` | | `withdrawals.create` | `POST /withdrawals` | Add only the ones it needs: an agent that only converts gets `conversions.create` and no payout capability. Add `conversions.manage`, `internal_transfers.manage` or `withdrawals.manage` only if it should cancel its own operations. **`withdrawals.create` means "can pay any crypto address".** `POST /withdrawals` accepts an inline crypto `destination` with a `network` as well as a registered `destination_id`, and no policy condition matches on the destination. Withholding `withdrawal_destinations.create` does not keep the agent on registered destinations. Either do not grant `withdrawals.create`, or hold every withdrawal the agent starts for a person: a `require_approval` rule with an `initiator` condition and no amount condition (step 2). ### Never grant an agent | Capability | Why not | | --- | --- | | `approvals.decide` | It could take part in approving its own proposals. The platform does not count a service account as an approver anyway. | | `policies.create`, `policies.manage` | It could retire the rule that holds it. | | `roles.create`, `roles.manage`, `role_assignments.create`, `role_assignments.manage` | It could grant itself more. | | `service_accounts.create`, `service_accounts.manage`, `service_accounts.rotate_secret` | It could mint new credentials or undo its own revocation. | | `withdrawal_destinations.create`, `withdrawal_destinations.manage` | It could add or re-enable a payout destination of its choosing. Withholding them is not enough on its own: see `withdrawals.create` above. | ### Create the role and the account A person with the setup rights creates the role: ```http POST https://b2b2x-sandbox.youhodler.com/api/roles Authorization: Bearer Idempotency-Key: role-treasury-agent-001 Content-Type: application/json { "name": "Treasury agent", "description": "Reads balances and operations, converts and moves funds within policy limits", "permissions": [ "accounts.read", "conversions.read", "conversions.create", "internal_transfers.read", "internal_transfers.create", "withdrawals.read", "withdrawals.create", "withdrawal_destinations.read", "events.read", "approvals.read" ], "scope_ref": "enterprises/00000000-0000-4000-8000-000000000001" } ``` Then provisions the service account with it. Assign the role at the narrowest scope that covers the accounts the agent manages. For an agent that runs only your master account, grant it at the enterprise with `scope_propagation` `self`, as below. For an agent that serves one connected account, grant it at that connected account (API: `clients/`). > **subtree at the enterprise reaches customer money:** `subtree` at `enterprises/<id>` covers every connected account and client account under it. With the create capabilities above, the agent could move any customer's funds below your approval threshold. Use it only for an agent that must act on those accounts, and hold its operations with the rules in step 2. ```http POST https://b2b2x-sandbox.youhodler.com/api/service-accounts/provision Authorization: Bearer Idempotency-Key: sa-treasury-agent-001 Content-Type: application/json { "description": "Treasury agent", "parent_ref": "enterprises/00000000-0000-4000-8000-000000000001", "client_secret_ttl_seconds": 2592000, "roles": [ { "role_ref": "roles/00000000-0000-4000-8000-000000000003", "scope_ref": "enterprises/00000000-0000-4000-8000-000000000001", "scope_propagation": "self" } ] } ``` The `201` response carries `client_id`, `client_secret`, `principal_ref` (`service-accounts/`) and `role_assignments`. Three things to check: - `role_assignment_errors` must be empty. The account is created even when a grant fails, and the response is still `201`. - `client_secret` appears only in this response. Store it in your secret manager, never in the agent's prompt, code or logs. A retry with the same key returns the account without the secret. - `client_secret_ttl_seconds` (minimum 60) bounds how long a leaked secret works. A person rotates it with `POST /service-accounts/{service_account_id}/rotate-secret`. The agent then gets its token with the client-credentials grant; see [Authentication](/integrations/authentication). See [Provision service account with roles](/api/reference/service-accounts/service-accounts-provision) for every field. ## 2. Put the guardrails on the platform Limits inside the agent help, but the agent's own code or model can be wrong. Rules on the platform hold even then. Write them for the agent's service account specifically with an `initiator` condition. This rule holds every conversion the agent submits that is worth 5,000 USD or more until one person approves it: ```http POST https://b2b2x-sandbox.youhodler.com/api/policy-rules Authorization: Bearer Idempotency-Key: rule-agent-conversions-001 Content-Type: application/json { "name": "Treasury agent conversions above 5,000 USD", "description": "A person approves large conversions proposed by the treasury agent", "scope_ref": "enterprises/00000000-0000-4000-8000-000000000001", "operation_type": "conversion", "conditions": [ { "kind": "initiator", "initiator_ref": "service-accounts/00000000-0000-4000-8000-000000000002" }, { "kind": "amount_threshold", "amount_basis": "usd_equivalent", "operator": "gte", "threshold": {"value": "5000.00", "currency": "USD"} } ], "decision": { "kind": "require_approval", "reason": "agent_conversion_over_limit", "threshold": 1, "initiator_cannot_approve": true, "approver_role_ref": "roles/00000000-0000-4000-8000-000000000004" } } ``` A rule is created as a `draft` and does nothing until it is activated with the `etag` from the response: ```http POST https://b2b2x-sandbox.youhodler.com/api/policy-rules//activate Authorization: Bearer If-Match: Idempotency-Key: rule-agent-conversions-001-activate ``` Add a second rule for a hard ceiling: the same conditions with `operator` `gt`, a higher `threshold`, and a decision of `kind` `deny` with a `reason`. Write the same pair for `internal_transfer` if the agent may start those. For `withdrawal`, drop the amount condition: a `require_approval` rule with only the `initiator` condition holds every withdrawal the agent starts, because a withdrawal can go to any crypto address. How the platform applies rules: - **Most restrictive wins.** When several active rules match, `deny` beats `require_approval`, which beats `allow`. - **A rule that cannot be evaluated does not pass silently.** If a condition needs a value the platform cannot compute at that moment (for example the USD equivalent of the amount), a `deny` or `require_approval` rule that would otherwise match asks for an approval instead. - **Conditions per operation type.** `conversion`: `amount_threshold`, `asset`, `asset_class`, `conversion_asset_class_pair`, `initiator`. `internal_transfer`: `amount_threshold`, `asset`, `asset_class`, `direction`, `initiator`. `withdrawal`: `amount_threshold`, `asset`, `asset_class`, `initiator`. No condition matches on the withdrawal destination, so a person approving each withdrawal is what keeps payouts on known destinations. - **A refusal is an error, not a status.** A deny rule answers the create request with `422`, `code` `not_admissible`, `data.source` `policy` and `data.reason` `POLICY_BREACH` (or `LIMIT_EXCEEDED`), and no operation snapshot comes back. The console shows rules under **Policies**. See [Create policy rule](/api/reference/policies/policy-rules-create). ### When the agent's operation needs approval The create request still succeeds, with `202`. The operation's `status` is `pending_approval` and `approval_ref` holds `approval_id`, `reason_code` (the rule's `reason`) and `expires_at`. The agent should record the approval id, report it, and stop. Submitting again would only create a second held operation, so keep one open proposal at a time. The approval case, `GET /approvals/{approval_id}` (needs `approvals.read`), shows its `status` (`pending`, `approved`, `rejected`, `cancelled` or `expired`), `requirement_snapshot.required_human_approvals`, `collected_human_approvals` and `initiated_by`, the agent. A case the policy raises expires 24 hours after it opens unless someone decides. **Who can decide.** A person, never a service account. They need `approvals.decide` with a grant covering the operation's scope, the approver role if the rule names one, and they cannot be the initiator when `initiator_cannot_approve` is `true`. `GET /approvals/{approval_id}/eligible-approvers` lists them. The decision is `POST /approvals/{approval_id}/approve` or `POST /approvals/{approval_id}/reject`, made in the console under **Approvals** or by the person's own client. Both can ask for an MFA step-up (`401 insufficient_user_authentication`). One rejection closes the case whatever the quorum. **What happens next.** On approval the operation continues and executes under the agent's identity. The platform resolves the agent's rights again at that moment, so a role revoked in the meantime is not used. On rejection or expiry the operation ends `failed`, with `failure_reason` `APPROVAL_REJECTED` or `APPROVAL_EXPIRED`. The events `operations.conversion.pending_approval.v1` and `operations.conversion.approved.v1`, followed by `.settled.v1` or `.failed.v1`, let the agent follow without polling. The same events exist for withdrawals and internal transfers. ### Action tokens and human step-up When a **person's** token submits a conversion, a withdrawal or an external settlement conversion, the request also needs an `X-Action-Token` header. The person's client gets the token from `POST /action-tokens` with `{"action": "conversion.create", "command": }`. The token is bound to that person and that exact command, lasts five minutes and works once, and issuing it can require an MFA step-up. Service accounts are exempt and cannot get one: the request is refused, with `401` from the MFA check or with `403`. So: - An agent on its own service account sends no action token. The policy rule is its brake. - For "the agent drafts, a person confirms", let the agent prepare the exact request body and have the person's session issue the action token for it and submit it. The token proves the person approved those exact amounts, and the operation is attributed to the person. See [Issue action token](/api/reference/action-tokens/action-tokens-create). ## 3. What the agent reads | Question | Call | Notes | | --- | --- | --- | | How much is there? | `GET /master-accounts/{master_account_id}/balances`, `GET /client-accounts/{client_account_id}/balances` | Plan with `available`; `held` is reserved for operations in flight. | | What does it cost right now? | `GET /prices/indicative` | Non-binding. `account_ref` is required; the price is the one that account would get. | | What fees apply? | `POST /fee-previews` | Non-binding; reserves nothing. | | What would this conversion return? | `POST /conversions/preview` | `binding` is always `false`; check `execution_min_source_amount`. | | Which pairs exist? | `GET /conversion-pairs` | Global catalog, not a per-account guarantee. | | What happened? | `GET /conversions`, `GET /internal-transfers`, `GET /withdrawals`, `GET /deposits` | One status list for all families. | | Where may money go? | `GET /withdrawal-destinations` | The registered destinations. The API does not limit the agent to them; an approval rule on its withdrawals does. | | What changed? | `GET /events` | Or webhooks a person sets up; see [Events and webhooks](/guides/events-and-webhooks). | | What waits for a person? | `GET /approvals` with `scope_ref` and `status=pending` | | | What may I do? | `GET /me/capabilities` | Check it at start-up; refuse to run with rights from the list above. | For example, the price of covering an 8,000 USD shortfall from pesos: ```http GET https://b2b2x-sandbox.youhodler.com/api/prices/indicative?from_asset=ARS&to_asset=USD&amount_basis=to&to_amount=8000.00&account_ref=master-accounts/00000000-0000-4000-8000-000000000001 Authorization: Bearer ``` `from_amount` in the answer is what it would cost. Then preview that amount with `POST /conversions/preview` to see the fees; the request and response are in [Smart treasury and international payments](/use-cases/treasury-and-international-payments). ## 4. What the agent does Every write follows the same pattern: preview, choose an idempotency key, write the key down, submit, follow the operation, report. **Convert.** ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: treasury-agent-7f3c2a10-5b1e-4c55-9a8e-2f1d0c3b4a59 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": {"value": "11764705.89", "currency": "ARS"}, "to_currency": "USD" } ``` **Move funds between your own accounts.** ```http POST https://b2b2x-sandbox.youhodler.com/api/internal-transfers Authorization: Bearer Idempotency-Key: treasury-agent-0b8d6e2c-31a4-4f7b-8c19-6a5e4d3c2b10 Content-Type: application/json { "amount": {"value": "2500.00", "currency": "USD"}, "source_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "target_ref": "client-accounts/00000000-0000-4000-8000-000000000005" } ``` **Pay a destination that is already registered.** The agent sends the destination's id; it never sends bank details or an address. ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawals Authorization: Bearer Idempotency-Key: treasury-agent-c4a1e9f2-7d3b-4e0a-b5c6-1f2e3d4c5b6a Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "amount": {"value": "1200.00", "currency": "USD"}, "rail": "fiat", "withdrawal_destination_id": "00000000-0000-4000-8000-000000000006" } ``` For a crypto payout the stored destination is `destination_id` with `rail` `crypto`. `POST /withdrawals` also accepts a one-time inline `destination` for crypto; an agent should never use it, and nothing on the platform stops it from doing so except an approval rule on its withdrawals (step 2). **Idempotency.** Use one key per decision, for example derived from the agent's own decision id, and store it before sending. On a timeout, `429`, `502` or `503`, send the same body with the same key: the platform returns the first answer instead of creating a second operation. The answer is kept for 24 hours. A different body with a used key returns `409 idempotency_conflict`. After an operation has failed, a new attempt needs a new key. ### Handle the outcome | Answer | Meaning | What the agent does | | --- | --- | --- | | `202`, `status` `settled` | Executed. | Report the figures: `target_amount`, `applied_rate`, `fee_summary`. | | `202`, `status` `requested`, `admissible` (conversion, internal transfer) or `executing` (withdrawal) | Accepted, still moving. | Follow the operation or its events until a final status. | | `status` `executed` or `ledger_visible` | In the enum, but the platform does not set either today. | Treat it as not final: report it and keep reading. | | `202`, `status` `pending_approval` | Held by a policy rule. | Record `approval_ref.approval_id`, report, stop. Do not resubmit. | | `202`, `status` `pending_compliance` | Held for a compliance review. | Wait; the platform resumes it. | | `status` `failed` or `cancelled` | Ended without moving the principal. | Read `failure_reason`; do not retry blindly. | | `422` `not_admissible`, `data.source` `policy` | Refused by a deny rule. | Report it; a person must change the request or the rule. | | `403` | Missing capability or account outside scope. | Stop and report; do not look for another way. | | `401` `principal_revoked` | The service account was revoked or suspended. | Stop for good. | | `429`, `502`, `503`, or no answer | Temporary. | Retry with the same key and backoff. | Final statuses are `settled`, `partially_settled`, `failed` and `cancelled`. Treat every other status as not final, as the [transaction lifecycle](/guides/transaction-lifecycle#what-each-status-means) does. See [Errors](/concepts/errors) for the error envelope and [Rate limits](/concepts/rate-limits) for backoff. ## 5. Keep an audit trail The platform records who did what. The agent records why. - **On every operation**, `subject_attribution.authenticated_principal` is the agent's service account (`kind` `service`, its id). The same block is on every event the operation publishes. - **On the approval case**, `initiated_by` is the agent and `decision.decided_by` is the person who approved or rejected it. - **In the audit log**, `GET /user-action-audit-entries/search?enterprise_ref=&authenticated_principal=service-accounts/&occurred_from_utc=&occurred_to_utc=` returns what the agent initiated (`audit.read`, a capability for your compliance team, not for the agent). Entries about its operations have `action_family` `financial_operation_audit` and the operation id in `correlation_id`. The decisions on them are entries with `action_family` `approval_decision`, where `attribution.initiated_by` is the agent, `attribution.approved_by` the person, and `correlation_id` the same operation id. The audit log records requests, holds, decisions, failures and cancellations; settlement itself is in the operation and its events. - **Exports** for auditors and accounting: `POST /user-action-audit-exports` (`audit.create_export`) and `POST /operations-activity-exports` (`operations_reports.create_export`), in `csv` or `json`. - **The agent's own log**: for every decision, the inputs it saw, what it proposed and why, the preview, the idempotency key and the operation id. Only the agent knows its reasons; keep them next to the platform's record. **Acting on behalf of a person.** If your integration exchanges a person's identity token for an access token (see [Identity](/concepts/identity#acting-on-behalf-of-a-human)), the platform records that person as the actor; it does not keep the integration as a separate actor. The person's rights apply, and their money movements need their action token. Use this only when that person is really deciding. An agent acting on its own uses its own service account, so the record says so. ## 6. Resources for agent builders | Resource | What it is | | --- | --- | | [`/llms.txt`](/llms.txt) | Index of every docs page with a one-line description. | | [`/llms-full.txt`](/llms-full.txt) | All docs pages in one file. | | `/llms/.md` | Each page as Markdown, for example [this page](/llms/use-cases/ai-treasury-agent.md). | | [`/openapi.json`](/openapi.json) | The contract. Each operation carries `x-required-capability`, so you can derive the capability list from the calls your agent makes. | | [`/openapi-sandbox.json`](/openapi-sandbox.json) | Adds the sandbox-only simulation routes. | | [Errors](/concepts/errors), [Rate limits](/concepts/rate-limits), [Idempotency](/concepts/idempotency-and-concurrency) | How to branch on failures, back off and retry safely. | Give a model the documentation and the observation it must decide on, never the credentials or the access token. Keep the API calls in your own code, which applies the limits below to whatever the model returns. ## Safety checklist - [ ] **Scoped credentials.** One service account per agent, a role with only the capabilities above, assigned at the narrowest scope. None of the "never grant" capabilities. The secret in a secret manager, with a bounded `client_secret_ttl_seconds`. - [ ] **Approval thresholds on the platform.** A `require_approval` rule with an `initiator` condition for the agent and an amount threshold, and a `deny` rule above a hard ceiling, for each operation type it may start. Activated, and tested on sandbox. - [ ] **Payouts held for a person.** `withdrawals.create` lets the agent pay any crypto address, because `POST /withdrawals` accepts an inline `destination`. Either do not grant it, or activate a `require_approval` rule with an `initiator` condition and no amount condition for all of the agent's withdrawals. The agent also pays only destinations a person registered (`destination_id`) and does not hold `withdrawal_destinations.create`, but that is its own discipline, not a platform control. - [ ] **Dry run first.** Run with previews only (`POST /conversions/preview`, `POST /fee-previews`, `GET /prices/indicative`) until its proposals look right. They move nothing and need no capability. - [ ] **Hard limits in the agent too.** Validate every proposal (currency, decimal string, per-operation maximum, reserve to keep) before any call, whatever produced it. - [ ] **Idempotency key on every write**, stored before sending, reused on retry. - [ ] **One open proposal at a time.** While an operation is `pending_approval`, propose nothing new. - [ ] **Watch it.** Subscribe to the operation events, and review the audit search for the agent's service account regularly. - [ ] **Kill switch.** A person revokes the service account with `POST /service-accounts/{service_account_id}/revoke` (needs `service_accounts.manage`). From the next request the agent's calls fail with `401 principal_revoked`, even with a token that has not expired. Then reject its pending approval cases. To pause rather than stop, revoke its role assignment with `POST /role-assignments/{role_assignment_id}/revoke`. ## Test it on sandbox Sandbox-only Fund the account with a simulated deposit as in [Sandbox testing](/guides/sandbox-testing), then: 1. Check that your pair exists for your account: `GET /conversion-pairs` and a `POST /conversions/preview`. Adjust the agent's currencies if not. 2. Create the role, the service account and the policy rule above, and activate the rule. 3. Run the agent in preview-only mode, then for real with an amount above the threshold. The conversion stops at `pending_approval`. 4. Approve it in the console under **Approvals**, signed in as a person who holds the approver role the rule names. 5. Revoke the service account and confirm the agent's next call answers `401 principal_revoked`. The [treasury-agent](/examples#treasury-agent) example does steps 3 to 5 for you, and its mock mode shows the whole flow without credentials. ## Related - [Smart treasury and international payments](/use-cases/treasury-and-international-payments): the treasury calls in detail. - [Example apps](/examples): treasury-agent and the others, each with a mock mode. - [Policies and approvals](/concepts/policies-and-approvals), [Access](/concepts/access), [Identity](/concepts/identity). - Reference: [Service accounts](/api/reference/service-accounts), [Roles](/api/reference/roles), [Policies](/api/reference/policies), [Approvals](/api/reference/approvals), [Audit log](/api/reference/user-action-audit-entries). --- # Convert ARS to USD and wire it abroad > How an Argentine company receives pesos, previews an ARS to USD conversion, converts and wires the dollars over SWIFT or Fedwire to its own bank account abroad, from which it pays overseas suppliers. Funding endpoints, conversions, withdrawal destinations and withdrawals. Source: https://business-api-docs.youhodler.com/use-cases/ars-to-usd-abroad > **Status: In the API.** Every step is in the public API contract, and sandbox-only steps are marked. An Argentine company that earns in pesos has to pay suppliers abroad in US dollars. With the Business API it receives ARS into its own account, converts the pesos to USD after a non-binding preview, and wires the dollars over SWIFT or a US domestic wire to its own bank account abroad, from which it pays the supplier. Each step is an operation you can track, approve and reconcile. This guide is for finance and payments teams deciding whether the flow fits, and for the developer who builds it. > **Who receives the wire:** A USD bank payout goes to a bank account held in your own company's name. The payout provider registers each destination as your company's account and sends the wire with your company's verified legal name as the beneficiary, whatever `beneficiary_name` the destination carries. So this flow moves dollars to your company's bank account abroad, and you pay the supplier from that account. Paying a supplier's bank account directly is not supported. ## At a glance | Question | Answer | | --- | --- | | Where the pesos arrive | An Argentine CVU issued to your account (`fiat_rail`: `local_bank_transfer`) | | Conversion | ARS to USD. Read the current limits from `GET /conversion-pairs` | | Where the dollars go | Over SWIFT (`swift`) or US domestic wire (`fedwire`) to a bank account in your company's name, registered once | | Which account pays | Your company's master account (console: Master Account, often named "Treasury"). A client account cannot register a USD bank destination | | What the bank receives | `amount` minus the payout fee. The fee is deducted from the amount you send | | Controls | Approval policies, compliance review, idempotent retries, step-up confirmation for people | | Tracking | Operation statuses, webhooks, balances and activity exports | ## Before you start - **Sandbox access and an API key.** Create a service account in the console under **API Keys** with these capabilities: `funding_endpoints.provision`, `funding_endpoints.read`, `kyc.verify`, `accounts.read`, `conversions.create`, `conversions.read`, `withdrawal_destinations.create`, `withdrawal_destinations.read`, `withdrawals.create` and `withdrawals.read`. Add `sandbox_simulator.run` and `enterprises.read` for the sandbox steps (the walkthrough reads your enterprise until it is `operational`) and `webhooks.create` if you subscribe to events. See [Authentication](/integrations/authentication) for the access token. - **Company verification (KYB) is complete.** An Argentine company also completes the international-account intake before it can hold USD bank details: call `POST /kyc/international-intake/prepare` (capability `kyc.verify`), then finish the questionnaire in the verification widget. Until then `GET /funding-routes/readiness?account_ref=` lists the USD routes with the reason `fiat_international_verification_required`. See [KYC](/api/reference/kyc). - **Your master account reference.** List it with `GET /master-accounts?scope_ref=enterprises/`; the reference has the form `master-accounts/`. - **USD bank details on the same master account.** Create a USD funding endpoint (`fiat_rail`: `swift` or `fedwire`) as in Step 1. Dollar payouts leave from this USD account, so a USD bank destination cannot be registered until the master account has one. In the console this is **Fiat Funding → Get bank details**. - **Worth reading first:** [Accounts](/concepts/accounts), [Funding endpoints](/concepts/funding-endpoints), [Conversions and pricing](/concepts/conversions-and-pricing), [Withdrawal destinations](/concepts/withdrawal-destinations), [Policies and approvals](/concepts/policies-and-approvals) and [Transaction lifecycle and webhooks](/guides/transaction-lifecycle). [Coverage](/coverage) lists the currencies, rails and operations. ## How it works ```mermaid sequenceDiagram participant You as Your system participant API as Business API participant Bank as Your bank abroad participant Supplier as Supplier You->>API: POST /funding-endpoints (ARS CVU) Note over You,API: Customers or your local bank send ARS to the CVU You->>API: POST /conversions/preview (ARS to USD) You->>API: POST /conversions API-->>You: operations.conversion.settled.v1 You->>API: POST /withdrawal-destinations (your USD bank account, once) You->>API: POST /withdrawals (USD, fiat) API->>Bank: SWIFT or Fedwire payment API-->>You: operations.withdrawal.settled.v1 Bank->>Supplier: You pay the invoice from your bank ``` 1. Get an Argentine CVU for your master account and receive pesos into it. 2. Check that the ARS to USD pair is active and preview the conversion. 3. Convert ARS to USD in the same master account. 4. Register your company's USD bank account abroad once as a withdrawal destination. 5. Send a USD withdrawal to that destination. 6. Follow each operation to a final status through reads or webhooks. 7. Pay the supplier's invoice from your bank account. This last step happens at your bank, outside the Business API. Every `POST` below takes an `Idempotency-Key` header. Send a new key for each new action and the same key when you retry it; a different body under a used key returns `409 idempotency_conflict`. ## Step 1 — Receive pesos Create an ARS funding endpoint on your master account. It issues a CVU that any Argentine bank can transfer to. ```http POST https://b2b2x-sandbox.youhodler.com/api/funding-endpoints Authorization: Bearer Idempotency-Key: ars-cvu-001 Content-Type: application/json { "rail_class": "fiat", "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "routing": { "asset": "ARS", "fiat_rail": "local_bank_transfer" } } ``` Read the endpoint with `GET /funding-endpoints/?account_ref=&rail_class=fiat` until `status` is `active`. The CVU is `account_number` inside `fiat_routing.bank_details`. A CVU carries its own legal terms; the [sandbox guide](/guides/sandbox-testing#1-create-an-ars-funding-endpoint) explains how a person accepts them (a service-account token skips that check) and what `failed` with `party_profile_incomplete` or `party_not_supported` means. Create the USD funding endpoint from the prerequisites the same way, with `"asset": "USD"` and `"fiat_rail": "swift"` or `"fedwire"`. Once pesos arrive, check the balance: ```http GET https://b2b2x-sandbox.youhodler.com/api/master-accounts/00000000-0000-4000-8000-000000000001/balances?asset=ARS Authorization: Bearer ``` Spend from `available`. Funds under a hold appear in `held`, and `total` = `available` + `held`. **In the console:** the CVU is under **Fiat Funding**, the incoming transfer under **Operations**, and the balance under **Balances**. ## Step 2 — Check the pair and preview the rate Confirm that the ARS to USD pair is active and read its limits: ```http GET https://b2b2x-sandbox.youhodler.com/api/conversion-pairs?source_currency=ARS&target_currency=USD Authorization: Bearer ``` The item carries `active`, `min_source_amount` and `max_source_amount` (in ARS). The pair list is the platform's catalog: it does not promise that your account can convert, or at which rate. Preview the conversion for your account to see the economics: ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions/preview Authorization: Bearer Idempotency-Key: ars-usd-preview-001 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": { "value": "5000000.00", "currency": "ARS" }, "to_currency": "USD" } ``` Read `economics`: `source_gross_amount` is what leaves the ARS balance, `fee_summary` is the conversion fee taken from it, `source_principal_amount` is what is converted, and `target_amount` is the USD you receive. The preview is not a quote: `binding` is always `false`, it reserves nothing, and the conversion may recompute the rate and fees when it runs. See [Conversions and pricing](/concepts/conversions-and-pricing). ## Step 3 — Convert ARS to USD Submit the conversion with the same fields: ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: ars-usd-conversion-001 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": { "value": "5000000.00", "currency": "ARS" }, "to_currency": "USD" } ``` The response is `202` with the operation: `id`, `status`, and, once known, `target_amount`, `applied_rate` and `fee_summary`. Follow it with `GET /conversions/` until `status` is `settled`, then read the USD balance with `GET /master-accounts//balances?asset=USD`. A person's token, unlike a service account's, also needs an `X-Action-Token` header: issue it with `POST /action-tokens` and the body `{"action": "conversion.create", "command": }`. See [Action tokens](/api/reference/action-tokens). **In the console:** the conversion appears under **Operations**; people can also start one from **Balances → Convert**. If a policy requires approval, the conversion waits in **Approvals** with status `pending_approval`. ## Step 4 — Register your USD bank account abroad Register your company's bank account once as a fiat withdrawal destination on the master account and reuse it for every transfer. A fiat destination needs an `Idempotency-Key` (header or body `idempotency_key`). For an account with an IBAN, paid over SWIFT: ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawal-destinations Authorization: Bearer Idempotency-Key: own-usd-account-001 Content-Type: application/json { "rail_class": "fiat", "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "fiat_routing": { "fiat_rail": "swift", "method": "bank_transfer", "currency": "USD", "beneficiary_name": "Importadora Ejemplo SA", "reference_hint": "Treasury transfer", "bank_coordinates": { "scheme": "iban", "iban": "DE89370400440532013000", "bic": "COBADEFFXXX", "account_holder_name": "Importadora Ejemplo SA", "bank_name": "Commerzbank AG", "country": "DE", "bank_address": { "lines": ["Kaiserplatz"], "city": "Frankfurt am Main", "region": null, "postal_code": "60311", "country": "DE" } } } } ``` Use your company's legal name as `beneficiary_name` and `account_holder_name`. `bic` and `bank_address` may be `null` in the schema, but a `swift` destination is refused without them. Give the bank address in at most two `lines`. Other bank account shapes use `"scheme": "local_account"` with `account_number` and `routing_codes`: | Your bank account | `fiat_rail` | `bank_coordinates` | | --- | --- | --- | | Abroad, with an IBAN | `swift` | `scheme: "iban"`, `iban`, `bic`, `bank_address` | | Abroad, without an IBAN | `swift` | `scheme: "local_account"`, `account_number`, `routing_codes`, `bic`, `bank_address` | | In the United States | `fedwire` | `scheme: "local_account"`, `account_number`, `routing_codes` with exactly one ABA routing number (`{"type": "aba", "value": "<9 digits>"}`), `account_type` (`checking` or `savings`) | The response is `201` with the destination `id` and `status`. The payout provider reviews a new bank account before it can be used, and the destination is `disabled` during that review. Read it until `status` is `active`: ```http GET https://b2b2x-sandbox.youhodler.com/api/withdrawal-destinations/?rail_class=fiat&account_ref=master-accounts/00000000-0000-4000-8000-000000000001 Authorization: Bearer ``` There is no webhook for the review result; poll the destination. A destination that cannot be set up is refused with `422` and the code `provisioning_rejected`. `data.reason` says why: | `data.reason` | Cause | What to do | | --- | --- | --- | | `payout_account_not_supported` | `account_ref` is a client account | Register the destination on the master account | | `payout_funding_details_required` | The master account has no bank details in that currency | Create the USD funding endpoint first | | `payout_bank_details_incomplete` | A field the rail needs is missing, or the bank address does not fit | Add `bic`, `bank_address`, the ABA code or `account_type` as in the table above | | `payout_verification_required` | Your company is not yet approved for USD bank accounts | Complete KYB and the international-account intake | Use `POST /withdrawal-destinations//disable` to stop new payouts to an account and `/retire` to remove it for good. **In the console:** registered bank accounts are used for external payouts under **Payments → Payout (External)**. ## Step 5 — Send the dollars The payout fee is deducted from the amount you send: your USD balance is debited `amount`, and the bank receives `amount` minus the fees. Preview the fee first when the received amount matters: ```http POST https://b2b2x-sandbox.youhodler.com/api/fee-previews Authorization: Bearer Idempotency-Key: usd-transfer-2026-117-fee Content-Type: application/json { "subject_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "operation_type": "withdrawal_fiat", "service_type": "withdrawal_fiat", "principal_amount": { "value": "3200.00", "currency": "USD" } } ``` `fee_preview.fee_summary.total` is the fee for that amount. To have a given sum arrive, raise `amount` until `amount` minus the previewed fee equals it. The preview is not binding: the fee is computed again when the payout runs. Then send the withdrawal to the stored destination. The bank details come from the destination, never from this request: ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawals Authorization: Bearer Idempotency-Key: usd-transfer-2026-117 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "rail": "fiat", "withdrawal_destination_id": "aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "amount": { "value": "3200.00", "currency": "USD" } } ``` Derive the idempotency key from your own payment reference, so a retry after a timeout cannot send the same transfer twice. USD takes at most two decimal places; more digits return `400 invalid_request` with `data.reason` `amount_scale_exceeded` before anything is held. The response is `202` with the operation `id`, `status`, `principal_amount` and `fee_summary`. As with conversions, a person's token needs an `X-Action-Token` issued with `"action": "withdrawal.create"` and the same withdrawal body. **In the console:** the payout appears under **Payments** and **Operations**. ## Handle the outcome Conversions and withdrawals share one status list, but each uses only part of it. A withdrawal ends as `settled`, `failed` or `cancelled`. A conversion can also end as `partially_settled`. | Status | Reported by | Meaning | Console label | | --- | --- | --- | --- | | `requested` | Both | Accepted, checks not finished | — | | `pending_approval` | Both | A policy requires a person to approve it | Shown in **Approvals** | | `pending_compliance` | Both | Held for compliance review | In compliance review | | `admissible` | Conversion | Passed the checks and running | Ready to process | | `executing` | Withdrawal | Passed the checks; the amount is held and the payout is with the bank rail until the bank confirms | Processing | | `settled` | Both | Final: funds converted or delivered | Settled | | `failed` | Both | Final: read `failure_reason`. A failed withdrawal releases the held amount back to `available` | Failed | | `cancelled` | Both | Final: cancelled while it waited for approval or compliance | Cancelled | | `partially_settled` | Conversion | Final: part of the conversion settled and the rest did not. Read the operation and the balances before retrying | — | The enum has three more values you will not see here: `pending_admission` belongs to deposits, and the platform does not set `executed` or `ledger_visible` today. If you ever read one of those two, treat it as not final and keep reading. Treat only `settled` as done. The public event catalog has no event for `partially_settled`, so read the conversion if no final event arrives. [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) covers the statuses and events of every operation family. **Webhooks.** Subscribe through [Webhook subscriptions](/api/reference/webhook-subscriptions) to `operations.conversion.settled.v1`, `operations.conversion.failed.v1`, `operations.withdrawal.settled.v1` and `operations.withdrawal.failed.v1`, and to the `pending_approval` and `pending_compliance` events of both families if your team needs to act on them. After an approval, a withdrawal emits `operations.withdrawal.executing.v1` and a conversion `operations.conversion.approved.v1`. `GET /events/types` (capability `events.read`) lists the current catalog. After an event, read the operation for its current state. **Cancelling.** `POST /conversions//cancel` (capability `conversions.manage`) and `POST /withdrawals//cancel` (capability `withdrawals.manage`) work only while the operation waits in `pending_approval` or `pending_compliance`. Once it is `admissible` or `executing`, the call answers `409 state_conflict` with `data.reason` `operation_not_cancellable`. **Common errors.** | Response | Cause | What to do | | --- | --- | --- | | `400` `action_token_required` or `action_token_rejected` | A person's token without a valid `X-Action-Token` | Issue a fresh action token for exactly this body | | `400` `invalid_request`, `amount_scale_exceeded` | Too many decimal places | Round USD to two decimals | | `403` | The key lacks a capability or the account is outside its scope | Add the capability listed in Before you start | | `409` `idempotency_conflict` | A used key with a different body | Use a new key for a new action | | `422` `not_admissible` or `unsupported_currency` | The account, route or policy does not allow the operation; see `data.reason` | Fix the setup named in `data.reason` | | `422` `provisioning_rejected` | The bank destination cannot be set up | See the reasons in Step 4 | See [Errors](/concepts/errors). **Reconciling.** List operations per account with `GET /withdrawals?account_ref=` and `GET /conversions?account_ref=`, compare with the balances, and use `POST /operations-activity-exports` (capability `operations_reports.create_export`) for a period report (console: **Reporting**). [Smart treasury and international payments](/use-cases/treasury-and-international-payments#reconcile) shows the export calls. ## Test it on sandbox > **Status: Sandbox-only.** The `/sandbox/*` routes below return 404 in production and need the capability `sandbox_simulator.run`. Each simulation returns `202` with a `simulation_id`, which is not an operation ID: follow the ordinary reads. Full details are in [Sandbox testing](/guides/sandbox-testing). 1. **Approve your company.** Sandbox-only Start verification with `POST /kyc/access-token`, then call `POST /sandbox/enterprises//kyb-review` with `{"outcome": "approved"}`. It fills missing company data with synthetic Argentine details and approves every level in one call. Read `GET /enterprises/` until `admission_state` is `operational`, usually about two minutes; the [Quickstart](/quickstart#2-find-your-scope-reference) lists the states in between. 2. **Complete the international-account intake.** Sandbox-only Call `POST /kyc/international-intake/prepare`, then run the same `kyb-review` simulation again. The intake is a separate level that `prepare` adds after the company's verification, so the first call did not cover it; this call fills and approves it. `GET /funding-routes/readiness` should no longer show `fiat_international_verification_required` for USD. 3. **Activate the USD bank details.** Sandbox-only If the USD funding endpoint stays under review, call `POST /sandbox/funding-endpoints//issuance-review` with `rail_class`, `account_ref` and `"outcome": "approved"`. 4. **Simulate the incoming pesos.** Sandbox-only ```http POST https://b2b2x-sandbox.youhodler.com/api/sandbox/funding-endpoints//incoming-transfers Authorization: Bearer Idempotency-Key: ars-deposit-001 Content-Type: application/json { "rail_class": "fiat", "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "amount": { "value": "5000000.00", "currency": "ARS" } } ``` 5. **Approve the bank destination.** Sandbox-only Call `POST /sandbox/withdrawal-destinations//review` with `{"account_ref": "", "outcome": "approved"}`, then read the destination until it is `active`. 6. **Settle the payout.** Sandbox-only Once the withdrawal's `status` is `executing`, call `POST /sandbox/withdrawals//settlement` with `{"outcome": "settled"}`, or `{"outcome": "failed", "reason": "Sandbox test"}` to test the failure path. A `409 simulation_target_not_ready` means the provider has not accepted the payment yet; retry with the same `Idempotency-Key` after a few seconds. Normal screening, admission and approval controls still run on sandbox. There is no simulation for a compliance decision: if a conversion or payout stops at `pending_compliance`, contact your YouHodler representative. ## Related - [Smart treasury and international payments](/use-cases/treasury-and-international-payments): balances, sweeps, conversions and reconciliation around this flow - [Coverage](/coverage): supported assets, networks, rails and operations - [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) - [Example apps](/examples): the treasury dashboard previews and runs conversions against the same endpoints - [Sandbox testing](/guides/sandbox-testing): currencies, providers and every simulation - [Conversions and pricing](/concepts/conversions-and-pricing), [Withdrawal destinations](/concepts/withdrawal-destinations), [Policies and approvals](/concepts/policies-and-approvals) - API reference: [Conversions](/api/reference/conversions), [Withdrawal destinations](/api/reference/withdrawal-destinations), [Withdrawals](/api/reference/withdrawals), [Funding endpoints](/api/reference/funding-endpoints) --- # Crypto apps and embedded finance > Give each of your customers an account with balances, crypto deposit addresses, swaps and withdrawals inside your own product, using clients, client accounts, funding endpoints, conversions and withdrawals. In the public API contract; sandbox-only steps are marked. Source: https://business-api-docs.youhodler.com/use-cases/crypto-app-and-embedded-finance You run a fintech or consumer app and want every customer to hold crypto inside your product: see a balance, receive a deposit on their own address, swap one asset for another and send funds out. This guide walks through the API calls behind each of those screens, in the order you would build them. > **Status: In the API.** Every call in this guide is in the public API contract. Steps marked Sandbox-only return 404 in production. ## What you build | Screen in your app | What it does | API operations | | --- | --- | --- | | Sign-up | Creates the customer and their account, starts verification | `clients.create`, `client_accounts.create`, `kyc.clients.sessions`, `kyc.clients.status` | | Wallet home | Shows balances per asset | `client_accounts.balances` | | Receive | Shows a deposit address for an asset and network, lists incoming deposits | `eligible_crypto_networks.list`, `funding_endpoints.create`, `deposits.list` | | Swap | Shows a preview, then converts | `conversion_pairs.list`, `conversions.preview`, `conversions.create` | | Send | Saves an external address, then withdraws to it | `withdrawal_destinations.create`, `withdrawals.create` | | Activity | Shows each deposit, swap and withdrawal with its status | `deposits.list`, `conversions.list`, `withdrawals.list`, webhooks | A runnable version of these screens is in the [crypto-wallet example app](/examples#crypto-wallet) ([download the zip](/example-apps/crypto-wallet.zip)). It has a mock mode, so you can click through it without credentials. ## Before you start - **Sandbox access and a service account.** Create the service account in the console under **API Keys** and exchange its credentials for a token as described in [Authentication](/integrations/authentication). If you have not made a first call yet, do the [Quickstart](/quickstart) first. - **Your enterprise ref.** `GET /me/profile` returns it in `workspace.ref`, for example `enterprises/11111111-1111-4111-8111-111111111111`. - **Capabilities** for the service account's role: | Step | Capabilities | | --- | --- | | 1. Create a customer | `clients.create`, `clients.read`, `accounts.create`, `accounts.read`, `kyc.verify` | | 2. Balances | `accounts.read` | | 3. Deposits | `funding_endpoints.provision`, `funding_endpoints.read`, `deposits.read` | | 4. Swap | `conversions.create`, `conversions.read` | | 5. Withdraw | `withdrawal_destinations.create`, `withdrawal_destinations.read`, `withdrawals.create`, `withdrawals.read` | | 6. Stay in sync | `webhooks.create`, `events.read` | | Sandbox simulations | `sandbox_simulator.run` | - **Coverage.** Check that the assets and networks you need are listed in [Supported assets and status](/coverage). The samples below use USDC on `ethereum` and a USDC to BTC swap because the contract examples do; your account's own list comes from the discovery calls in steps 3 and 4. - **Concepts worth five minutes:** [Accounts](/concepts/accounts) (balances), [Topology and refs](/concepts/topology-and-refs) (who owns what), [Operations](/concepts/operations) (one status model for deposits, swaps and withdrawals). In the samples, send `Authorization: Bearer ` with every request. Money is always an object with a decimal string, such as `{"value": "100.00", "currency": "USDC"}`. ## How it works ```mermaid sequenceDiagram participant App as Your backend participant API as Business API participant Chain as Blockchain App->>API: POST /clients API-->>App: client id and default client account App->>API: POST /kyc/clients/client_id/sessions API-->>App: verification link App->>API: POST /funding-endpoints API-->>App: deposit address Chain->>API: customer sends crypto to the address API-->>App: webhook operations.deposit.settled.v1 App->>API: GET /client-accounts/client_account_id/balances App->>API: POST /conversions/preview App->>API: POST /conversions API-->>App: webhook operations.conversion.settled.v1 App->>API: POST /withdrawal-destinations App->>API: POST /withdrawals API->>Chain: sends crypto to the saved address API-->>App: webhook operations.withdrawal.settled.v1 ``` 1. Your backend creates a connected account (API: `client`) for the customer. The response carries the id of a client account that holds the balances. 2. Your backend starts a verification session and shows the customer the verification link. Money cannot move until the customer is verified. 3. Your backend asks for a deposit address (a crypto funding endpoint) for one asset on one network and shows it on the Receive screen. 4. The customer sends crypto to that address. The platform detects it, creates a deposit and credits the client account. Your backend learns about it from a webhook or by listing deposits. 5. Your backend reads balances for the wallet home screen. 6. For a swap, your backend shows a preview, then creates a conversion. 7. For a send, your backend saves the external address as a withdrawal destination, then creates a withdrawal to it. 8. Webhooks tell your backend when each deposit, conversion and withdrawal reaches a final status. ## Step 1 — Create the customer Each customer of your app is a connected account (API: `client`) under your enterprise. Creating one also creates its first client account, the account that holds balances and that every later call refers to. **Create the connected account — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/clients Authorization: Bearer Idempotency-Key: signup-user-0042 Content-Type: application/json ``` ```json { "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111", "display_name": "Ana Torres", "external_id": "user-0042" } ``` In the `201` response keep two values: - `id`: the client id. As a ref it is `clients/`. - `default_client_account`: the ref of the account created with the client, for example `client-accounts/33333333-3333-4333-8333-333333333333`. Pass it as `account_ref` in the steps below. Put your own user id in `external_id`. You can find the client again with `GET /clients?scope_ref=&external_id=user-0042`. See [Create client](/api/reference/clients/clients-create). **In the console:** the customer appears under **Connected Accounts**, and their account under **Client Accounts**. ### Add another account (optional) One client account is enough for a wallet with several assets, because balances are kept per asset inside it. Create a second one only when the customer needs separate pots, such as "Spending" and "Savings". **Create an additional client account — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/client-accounts Authorization: Bearer Idempotency-Key: signup-user-0042-savings Content-Type: application/json ``` ```json { "scope_ref": "clients/22222222-2222-4222-8222-222222222222", "display_name": "Savings" } ``` The response `id` gives you the new ref, `client-accounts/`. See [Create client account](/api/reference/client-accounts/client-accounts-create). ### Verify the customer A client account can receive, convert or send money only after its client is verified. Until then a request for a deposit address returns `422 not_admissible` with `data.reason` set to `CLIENT_NOT_VERIFIED`. A conversion or withdrawal is refused the same way: the create call answers `422 not_admissible` with that reason, and the operation is recorded as `failed`. Start a verification session for the customer: **Start verification — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/kyc/clients/22222222-2222-4222-8222-222222222222/sessions Authorization: Bearer Content-Type: application/json ``` ```json { "applicant_type": "individual", "country": "AR" } ``` The response has a `verification_link` to a hosted verification page and an `access_token` for embedding the verification form in your own onboarding. Use `applicant_type` `company` when your customer is a business. Send the customer through one of them, then follow the result: **Read the verification status — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/kyc/clients/22222222-2222-4222-8222-222222222222/status Authorization: Bearer ``` The review is done when `status` is `completed`; `outcome` is then `approved`, `rejected` or `resubmission_required`. The event `kyc.verification.reviewed.v1` tells you when to read the status again. A connected account counts as verified when `GET /clients/{client_id}` returns `kyb_stage` `verified` (a company) or `kyc_stage` `verified` (a person); money can move from then on. See the [KYC reference](/api/reference/kyc). Sandbox-only On sandbox you do not need to fill in the form. After starting the session, supply the review outcome yourself: **Simulate an approved review — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/sandbox/clients/22222222-2222-4222-8222-222222222222/kyc-review Authorization: Bearer Idempotency-Key: kyc-review-user-0042 Content-Type: application/json ``` ```json { "outcome": "approved" } ``` A `202` means the simulation was accepted; read the status until it is `completed`. See [Simulate client verification review](/api/reference/sandbox/sandbox-clients-kyc-review). **In the console:** open the customer under **Connected Accounts** to see their verification state. ## Step 2 — Show balances Read the balances of the client account for the wallet home screen. **Read balances — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/client-accounts/33333333-3333-4333-8333-333333333333/balances Authorization: Bearer ``` **Response — 200 application/json** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": null, "overdraft_limit": null, "overdraft_used": null, "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "client_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` Each item is one asset with three numbers. Show `available` as the amount the customer can swap or send now; `held` is reserved by operations in flight, and `total` is the sum of the two. [Accounts](/concepts/accounts) explains the split. An asset appears in the list once the account has held it. Add `?asset=USDC` to read one asset; an asset the account has never held returns `404`. See [Get client-account balances](/api/reference/balances/client-accounts-balances). **In the console:** the same numbers are on the **Balances** page of the connected account. ## Step 3 — Receive a crypto deposit ### Find the networks the customer can use **List networks for deposits — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/eligible-crypto-networks?scope_ref=clients/22222222-2222-4222-8222-222222222222&direction=deposit Authorization: Bearer ``` **Response — 200 application/json** ```json { "items": [ { "active": true, "assets": [ "USDC" ], "code": "ethereum", "display_name": "Ethereum" }, { "active": true, "assets": [ "USDC" ], "code": "polygon", "display_name": "Polygon" } ], "next_page_token": null } ``` Each item is a network (`code`, `display_name`) with the `assets` it carries. Build the asset and network pickers of your Receive screen from this list. Add `&asset=USDC` to list only the networks for one asset. See [List eligible crypto networks](/api/reference/crypto-networks/eligible-crypto-networks-list). ### Create the deposit address A deposit address is a crypto funding endpoint: a lasting route into one account for one asset on one network. **Create a deposit address — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/funding-endpoints Authorization: Bearer Idempotency-Key: user-0042-usdc-ethereum Content-Type: application/json ``` ```json { "rail_class": "crypto", "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "routing": { "asset": "USDC", "network": "ethereum" } } ``` **Response — 201 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` Show `crypto_routing.endpoint.address` to the customer, together with `crypto_routing.endpoint.memo` when it is not `null`. Show the address only while `status` is `active`. If it is `provisioning`, read the endpoint again with `GET /funding-endpoints/?rail_class=crypto`. Create the address once per customer, asset and network, and store its `id`. To show it again, list what the account already has with `GET /funding-endpoints?account_ref=&rail_class=crypto` instead of creating another. Funding endpoint or deposit instruction? For crypto you only need the funding endpoint. `POST /deposit-instructions` creates fiat payment instructions and rejects crypto. [Funding endpoints](/concepts/funding-endpoints) explains how the two relate. See [Provision funding endpoint](/api/reference/funding-endpoints/funding-endpoints-create). **In the console:** the address is listed under **Crypto**, in the **Receive** section of the connected account. ### List deposits When crypto arrives at the address, the platform creates a deposit and credits the account. **List deposits for the account — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/deposits?account_ref=client-accounts/33333333-3333-4333-8333-333333333333 Authorization: Bearer ``` Each item has `principal_amount`, `status`, `funding_endpoint_id` (the address it came through) and `settled_at`. The balance includes the deposit once its status is `settled`. On the way a deposit is `requested`, then `executing`; it can also wait in `pending_admission` (the account cannot be credited yet) or `pending_compliance` while checks run, but never for an approver. Show it as "processing" until it is `settled`. See [List deposits](/api/reference/deposits/deposits-list). Sandbox-only To test without sending real crypto, simulate an incoming transfer to the address: **Simulate a 250 USDC deposit — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/sandbox/funding-endpoints/44444444-4444-4444-8444-444444444444/incoming-transfers Authorization: Bearer Idempotency-Key: user-0042-deposit-001 Content-Type: application/json ``` ```json { "rail_class": "crypto", "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "amount": { "value": "250.00", "currency": "USDC" } } ``` A `202` means the simulation was accepted, not that the balance has changed: read deposits and balances to see the result. A crypto simulation works only when the custody provider behind the address supports it; otherwise the call returns `422 simulation_not_supported_for_route`. An address that is not `active`, or that belongs to another account, returns `409 simulation_target_not_ready`. More in [Sandbox testing](/guides/sandbox-testing). **In the console:** deposits are listed under **Crypto**, in the **Deposit history** section, and under **Operations**. ## Step 4 — Execute a swap A swap is a conversion inside one client account: it debits one asset and credits another. ### Find the pairs **List pairs that sell USDC — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/conversion-pairs?source_currency=USDC Authorization: Bearer ``` **Response — 200 application/json** ```json { "items": [ { "active": true, "display_order": 0, "id": "usdc-btc", "max_source_amount": "100000.00", "min_source_amount": "10.00", "settlement_model": "internal_platform", "source_currency": "USDC", "target_currency": "BTC" } ], "next_page_token": null } ``` Each pair is one direction, from `source_currency` to `target_currency`, with `min_source_amount` and `max_source_amount`. The list is the platform's catalog, not a promise for a particular account; the preview below is the check for the customer's account. See [List conversion pairs](/api/reference/conversion-pairs/conversion-pairs-list). ### Preview **Preview the swap — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions/preview Authorization: Bearer Content-Type: application/json ``` ```json { "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "from_amount": { "value": "100.00", "currency": "USDC" }, "to_currency": "BTC" } ``` Show the customer `to_amount` (what they receive), `fee_summary.total` (what they pay in fees) and `indicative_price.price` (the rate). `min_source_amount` is the lower bound for the amount the customer enters. The preview is for display only: `binding` is always `false`. It reserves no funds and locks no rate, and the conversion can use a different rate and fee when it executes. Say so on the confirmation screen. [Conversions and pricing](/concepts/conversions-and-pricing) has the details. See [Preview a conversion](/api/reference/conversions/conversions-preview). ### Convert Send the same three fields when the customer confirms. **Create the conversion — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: user-0042-swap-001 Content-Type: application/json ``` ```json { "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "from_amount": { "value": "100.00", "currency": "USDC" }, "to_currency": "BTC" } ``` The `202` response is the conversion with its current `status`. Keep its `id` and read it with `GET /conversions/` until the status is final (see [Handle the outcome](#handle-the-outcome)). On a `settled` conversion, `target_amount` is what the customer received, `applied_rate` the rate used and `fee_summary` the fees charged. See [Create conversion](/api/reference/conversions/conversions-create). **In the console:** the conversion appears under **Operations**, in the **Conversions** tab. ## Step 5 — Withdraw ### Save the external address A withdrawal destination is a saved external address. Crypto destinations are kept in an address book that belongs to a scope, here the customer's client. **Save a crypto address — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawal-destinations Authorization: Bearer Idempotency-Key: user-0042-destination-001 Content-Type: application/json ``` ```json { "rail_class": "crypto", "scope_ref": "clients/22222222-2222-4222-8222-222222222222", "crypto_routing": { "asset": "USDC", "network": "ethereum", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "Ana's hardware wallet" } } ``` Keep the `id` from the `201` response. Choose `network` from `GET /eligible-crypto-networks?scope_ref=&direction=withdrawal`: a withdrawal is refused when the asset cannot be sent on that network. To fill the "saved addresses" list of your Send screen, call `GET /withdrawal-destinations?rail_class=crypto&scope_ref=`. [Withdrawal destinations](/concepts/withdrawal-destinations) explains the model. See [Register withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-create). **In the console:** saved addresses are under **Crypto**, in the **Recipients** section. ### Create the withdrawal **Withdraw to the saved address — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawals Authorization: Bearer Idempotency-Key: user-0042-withdrawal-001 Content-Type: application/json ``` ```json { "rail": "crypto", "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "amount": { "value": "50.00", "currency": "USDC" }, "destination_id": "55555555-5555-4555-8555-555555555555" } ``` The `202` response is the withdrawal with its current `status`, often `executing`, and a `fee_summary`. Keep its `id` and read it with `GET /withdrawals/` until the status is final. While the withdrawal is in flight its amount moves from `available` to `held` in the balance. Always send an `Idempotency-Key` on a withdrawal and reuse it when you retry after a timeout, so the customer is never paid twice. [Idempotency and concurrency](/concepts/idempotency-and-concurrency) explains replays. See [Create withdrawal](/api/reference/withdrawals/withdrawals-create). ### When a policy asks for approval Your enterprise can set policy rules, for example "withdrawals above a limit need a second person". When a rule applies, the withdrawal is created with `status` `pending_approval` and an `approval_ref`. Nothing leaves the account until an eligible person approves the case; a rejection or expiry ends the withdrawal without sending anything. Show the customer "waiting for review". [Policies and approvals](/concepts/policies-and-approvals) explains rules, approval cases and who may decide. ### When a person, not your backend, sends the request A service account can create conversions and withdrawals directly. If your integration instead calls the API with a token that acts for a signed-in person, that person must confirm each conversion and withdrawal: get a single-use token from `POST /action-tokens` and send it in the `X-Action-Token` header. Without it the request returns `400` with code `action_token_required`. Issuing the token can ask the person for a stronger sign-in first. See [Policies and approvals](/concepts/policies-and-approvals) and [Issue action token](/api/reference/action-tokens/action-tokens-create). **In the console:** the withdrawal appears under **Operations**, in the **Crypto** tab. A case waiting for a decision is listed under **Approvals**, where an eligible operator approves or rejects it. ## Step 6 — Keep your app in sync Polling works for a prototype. In production, let the platform tell you when something changes. Create one webhook subscription for operation events: **Subscribe to operation and verification events — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/webhook-subscriptions Authorization: Bearer Idempotency-Key: wallet-webhook-001 Content-Type: application/json ``` ```json { "url": "https://example.com/webhooks/business-api", "secret": "", "event_types": ["operations.*.v1", "kyc.verification.reviewed.v1"] } ``` The events to act on in a wallet app: | Event | What to do | | --- | --- | | `kyc.verification.reviewed.v1` | Read the verification status; unlock the wallet when approved | | `operations.deposit.settled.v1` | Refresh balances; notify the customer of the deposit | | `operations.conversion.settled.v1`, `operations.conversion.failed.v1` | Update the swap in the activity list; refresh balances | | `operations.withdrawal.pending_approval.v1` | Show "waiting for review" | | `operations.withdrawal.settled.v1`, `operations.withdrawal.failed.v1`, `operations.withdrawal.cancelled.v1` | Update the withdrawal; refresh balances | Treat a webhook as a signal to read the resource again, not as the record itself. If your endpoint was down, catch up with `GET /events`. [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) covers delivery, signatures, retries and how to rebuild state. **In the console:** subscriptions are listed under **Webhooks**. ## Handle the outcome Deposits, conversions and withdrawals share one status model, and each uses part of it: a deposit or a withdrawal runs as `executing`, a conversion as `admissible`; only deposits use `pending_admission`, and deposits never use `pending_approval` or `cancelled`. Map it to what your customer sees: | `status` | Final? | Show the customer | | --- | --- | --- | | `requested`, `admissible`, `executing` | No | Processing | | `pending_approval` | No | Waiting for review | | `pending_compliance`, `pending_admission` | No | Processing; checks are running | | `executed`, `ledger_visible` | No | Processing. In the enum but not set today; if one appears, keep reading | | `settled` | Yes | Completed | | `partially_settled` | Yes | Completed in part; show the amounts from the operation | | `failed` | Yes | Failed; `failure_reason` says why | | `cancelled` | Yes | Cancelled | - An operation never leaves a final status, so stop polling there. - After any final status, read balances again instead of calculating them yourself. - Errors use one envelope with a `code` and often `data.reason`; see [Errors](/concepts/errors). `422 not_admissible` with `CLIENT_NOT_VERIFIED` means step 1 is not finished for that customer. - For reconciliation, list operations per account (`GET /deposits`, `GET /conversions`, `GET /withdrawals`, each with `account_ref`) and compare with your own records by operation `id`. ## Test it on sandbox > **Status: Sandbox-only.** The simulation routes below exist on sandbox only and need the `sandbox_simulator.run` capability. A full pass through this guide on sandbox, without real funds or a real identity check: 1. Create the client (step 1) and start a verification session. 2. Approve it with `POST /sandbox/clients//kyc-review` and wait for the status to be `completed`. 3. Create a USDC deposit address (step 3). 4. Credit it with `POST /sandbox/funding-endpoints//incoming-transfers`, then read deposits and balances. 5. Preview and create a conversion (step 4), then read it until `settled`. 6. Save a destination and create a withdrawal (step 5), then read the withdrawal to follow its status. What sandbox does not simulate: the settlement of a crypto withdrawal. `POST /sandbox/withdrawals//settlement` supports fiat withdrawals only, so a crypto withdrawal on sandbox follows the sandbox custody provider. Read the withdrawal to see where it ends. All simulations answer `202` and work asynchronously. The full list, with error codes, is in [Sandbox testing](/guides/sandbox-testing). ## Example app The [crypto-wallet example](/examples#crypto-wallet) is a small Node.js server with a plain HTML frontend that implements this guide: one demo customer, balances, Receive, Swap with preview and confirm, Send to a saved address and an activity list with statuses. It needs no npm dependencies. - [Download crypto-wallet.zip](/example-apps/crypto-wallet.zip) - `npm run start:mock` runs it against a built-in fake of the API, with a "simulate deposit" button, so you can try it without credentials. - `npm start` runs it against sandbox with your service account. All example apps are listed on [Example apps](/examples). ## Related - [Quickstart](/quickstart): a first sandbox call in fifteen minutes. - [Supported assets and status](/coverage): assets, networks and operations. - [Transaction lifecycle and webhooks](/guides/transaction-lifecycle): statuses and events in depth. - [Sandbox testing](/guides/sandbox-testing): every simulation route. - Concepts: [Accounts](/concepts/accounts), [Funding endpoints](/concepts/funding-endpoints), [Withdrawal destinations](/concepts/withdrawal-destinations), [Conversions and pricing](/concepts/conversions-and-pricing), [Policies and approvals](/concepts/policies-and-approvals). - Reference: [Clients](/api/reference/clients), [Client accounts](/api/reference/client-accounts), [Funding endpoints](/api/reference/funding-endpoints), [Deposits](/api/reference/deposits), [Conversions](/api/reference/conversions), [Withdrawals](/api/reference/withdrawals). - Other use cases: [What you can build](/use-cases). --- # Marketplaces and checkouts > Give each seller a connected account (API: client) with a client account, take buyers' crypto payments into the seller's account with Crypto checkout, reconcile per seller and pay sellers out. Source: https://business-api-docs.youhodler.com/use-cases/marketplaces-and-checkouts You run a marketplace or an online shop and want buyers to pay in crypto, with each payment credited to the seller who made the sale. This guide shows how to give every seller an account, where the buyer's payment comes in, and how to reconcile and pay the seller out. > **Status: In the API.** Sellers, accounts, balances, deposits, exports, events and withdrawals are in the public API contract. Taking the payment uses [Crypto checkout (beta)](/beta/crypto-checkout), which accepts a platform access token. ## What you build | Part of your product | What it does | API | | --- | --- | --- | | Seller onboarding | Each seller becomes a connected account with a client account that receives its sales | `clients.create`, `client_accounts.create` | | Taking the payment | A hosted payment page for each order, paid into the seller's account | [Crypto checkout](/beta/crypto-checkout) | | Seller earnings | What each seller received and their balance | `client_accounts.balances`, `deposits.list` | | Reconciliation | Deposits per seller, exports for finance, events | `deposits.list`, `operations_activity_exports.create`, `events.list`, webhook subscriptions | | Seller payouts | Send a seller's balance to their own wallet | `withdrawal_destinations.create`, `withdrawals.create` | ## Before you start - **Sandbox access and a service account.** Create the service account in the console under **API Keys** and exchange its credentials for a token as described in [Authentication](/integrations/authentication). New to the API? Do the [Quickstart](/quickstart) first. - **Your enterprise ref.** `GET /me/profile` returns it in `workspace.ref`, for example `enterprises/11111111-1111-4111-8111-111111111111`. - **Capabilities** for the service account's role: | Step | Capabilities | | --- | --- | | 1. Create a seller | `clients.create`, `clients.read`, `accounts.create`, `accounts.read` | | Reconcile | `deposits.read`, `accounts.read`, `operations_reports.create_export`, `events.read`, `webhooks.create` | | Pay out | `withdrawal_destinations.create`, `withdrawals.create` | | Sandbox simulations | `sandbox_simulator.run` | - **Concepts worth five minutes:** [Topology and refs](/concepts/topology-and-refs) (enterprise, connected accounts and their accounts), [Accounts](/concepts/accounts) (balances) and [Operations](/concepts/operations) (the shared status model of deposits, transfers and withdrawals). Samples use the sandbox base URL. Money is always an object with a decimal string, such as `{"value": "45.00", "currency": "USD"}`. ## How it works ```mermaid sequenceDiagram participant Buyer participant Shop as Your server participant Checkout as Crypto checkout participant API as Business API Shop->>API: POST /clients and POST /client-accounts for each seller Buyer->>Shop: Pay for an order Shop->>Checkout: payment request for the seller Shop-->>Buyer: redirect to the hosted payment page Buyer->>Checkout: sends the crypto Checkout-->>Shop: webhook once the seller's account is credited Shop->>API: GET /deposits and balances of the seller account Shop->>API: POST /withdrawals to pay the seller out ``` 1. When a seller signs up, your server creates a connected account (API: `client`) for them and a client account that will receive their sales. 2. A buyer pays for an order on a hosted payment page of [Crypto checkout](/beta/crypto-checkout), and the money is credited to the seller. 3. Later, your server reads the seller's deposits and balance to reconcile, and pays the seller out with a withdrawal. ## Step 1 — Create the seller and their account Each seller is a connected account (API: `client`) under your enterprise. Send your own seller id as `external_id`, so that you can find the seller again with `GET /clients?scope_ref=&external_id=…` (`scope_ref` is required). **Create the connected account — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/clients Authorization: Bearer Idempotency-Key: seller-pampa-leather Content-Type: application/json ``` ```json { "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111", "display_name": "Pampa Leather Co.", "external_id": "seller-pampa-leather", "metadata": {"marketplace_seller_id": "seller-pampa-leather"} } ``` Keep `id` from the `201` response: the seller's ref is `clients/`. The client comes with a first client account (`default_client_account`). To keep sales apart from anything else the seller holds, open a dedicated client account for them: **Open the seller's sales account — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/client-accounts Authorization: Bearer Idempotency-Key: seller-pampa-leather-sales Content-Type: application/json ``` ```json { "scope_ref": "clients/88888888-8888-4888-8888-888888888888", "display_name": "Sales" } ``` Store the returned `id` as the seller's receiving account, `client-accounts/`. In the console the seller appears under **Connected accounts**, and this account as a client account of that connected account. **Verify the seller before the first sale.** A connected account counts as verified when `GET /clients/{client_id}` returns `kyb_stage` `verified` (a company) or `kyc_stage` `verified` (a person). The platform refuses a deposit address for an unverified seller's account ([Provision funding endpoint](/api/reference/funding-endpoints/funding-endpoints-create) answers `422 not_admissible` with `CLIENT_NOT_VERIFIED`), and Crypto checkout takes payments only for verified connected accounts. Start verification as described in [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) (step 1). On sandbox Sandbox-only you can approve it with [Simulate client verification review](/api/reference/sandbox/sandbox-clients-kyc-review). ## Step 2 — Take the buyer's payment Use [Crypto checkout (beta)](/beta/crypto-checkout) on sandbox. Connect the seller's receiving account to Checkout and use a platform access token with `deposits.read` and `funding_endpoints.provision` on that account. Create a checkout with the seller's `account_ref` and your `order_id`, then send the buyer to the returned hosted page. When a webhook arrives, read the checkout and fulfil the order once its status is `paid`. ## Where the money lands A payment settles into the seller's connected account, so nothing has to be split afterwards: the deposit and the balance belong to the seller, and that is the attribution. - **What arrived.** Each payment becomes a crypto deposit on the seller's account. [List deposits](/api/reference/deposits/deposits-list) with `account_ref` set to the seller's account; a deposit's `fee_summary` breaks the fee into components. Crypto checkout reports the same payment per order, with its gross, fees and net; see [Fees](/beta/crypto-checkout#fees). - **The seller's balance.** [Get client-account balances](/api/reference/balances/client-accounts-balances) for the seller's account shows `available`, `held` and `total` per asset. **Take your commission.** Two ways exist today. A fee in your enterprise commercial agreement for the `deposit_crypto` service, for all connected accounts or for one, is deducted from every crypto deposit into that seller's accounts and paid into your enterprise's default master account. It appears as an `enterprise_fee` component in the deposit's `fee_summary`. See [Commercial agreements](/concepts/commercial-agreements). Or move your share yourself with an internal transfer from the seller's client account to your master account after the sale: **Move the commission to your master account — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/internal-transfers Authorization: Bearer Idempotency-Key: commission-ORD-1042 Content-Type: application/json ``` ```json { "source_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "target_ref": "master-accounts/22222222-2222-4222-8222-222222222222", "amount": {"value": "4.50", "currency": "USDT"} } ``` The transfer answers `202` and follows the shared [operation statuses](/concepts/operations); it is done when its status is `settled`. If you prefer to hold buyers' money yourself and pay sellers later, take payments with one of your master accounts as the checkout’s `account_ref`, and move each seller's share with the same internal transfer, master account to client account. ## Reconcile - **Per seller, from deposits.** [List deposits](/api/reference/deposits/deposits-list) with `account_ref` set to the seller's account. - **Per order, from Crypto checkout.** Use the checkout ID to read the payment with a platform token that has `deposits.read` on the receiving account. Match its `order_id` to the order in your shop. - **Events.** The platform's own events cover the account side, for example `operations.deposit.settled.v1` for each credited deposit. Subscribe with a [webhook subscription](/api/reference/webhook-subscriptions/webhook-subscriptions-create) and backfill with [List events](/api/reference/events/events-list). These are separate from the Crypto checkout webhooks: checkout says which order was paid, platform events say what happened on the account. See [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) and [Events and webhooks](/guides/events-and-webhooks). For finance, an operations activity export covers a period, filtered to sellers or accounts and to deposits: **Export a month of seller deposits — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/operations-activity-exports Authorization: Bearer Idempotency-Key: export-2026-10-sellers Content-Type: application/json ``` ```json { "format": "csv", "requested_scope": { "kind": "enterprise", "ref": "enterprises/11111111-1111-4111-8111-111111111111" }, "filter_criteria": { "date_from_utc": "2026-10-01T00:00:00Z", "date_to_utc": "2026-10-31T23:59:59Z", "client_refs": ["clients/88888888-8888-4888-8888-888888888888"], "operation_families": ["deposit"] } } ``` Read the export until its `status` is `ready`, then download it from `download_path`. See [Create operations activity export](/api/reference/operations-activity-exports/operations-activity-exports-create). ## Pay sellers out A seller's balance stays in their client account until you move it. To send it to the seller's own wallet, register the wallet once as a withdrawal destination for the seller (`withdrawal_destinations.create` with `scope_ref` set to the seller's `clients/`), then withdraw from the seller's account: **Pay a seller out — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/withdrawals Authorization: Bearer Idempotency-Key: payout-pampa-2026-10 Content-Type: application/json ``` ```json { "account_ref": "client-accounts/33333333-3333-4333-8333-333333333333", "amount": {"value": "40.00", "currency": "USDT"}, "rail": "crypto", "destination_id": "44444444-4444-4444-8444-444444444444" } ``` The withdrawal answers `202` and is final at `settled`, `failed` or `cancelled`. Policies can send it to approval first (`pending_approval`). The full walkthrough, including destinations and statuses, is step 5 of [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance); for fiat payouts see [Treasury and international payments](/use-cases/treasury-and-international-payments). ## Refunds, invoices and payment links The platform API has no refund, invoice or payment-link operation of its own. For a hosted crypto payment page on sandbox, create a checkout for the order and use its returned URL. See [Crypto checkout (beta)](/beta/crypto-checkout). ## Test it on sandbox 1. Create a seller and their account (step 1), start the seller's verification session, then approve it with [Simulate client verification review](/api/reference/sandbox/sandbox-clients-kyc-review) Sandbox-only. Read the client until `kyb_stage` or `kyc_stage` is `verified`, usually in a few minutes. 2. Take a test payment for the seller as described under [Test on sandbox](/beta/crypto-checkout#test-a-payment) in the Crypto checkout guide. 3. Check the deposit and the seller's balance, then pay part of it out (above). ## Related - [Crypto checkout](/beta/crypto-checkout): payment requests, the hosted page, statuses, webhooks and beta limits. - [Topology and refs](/concepts/topology-and-refs), [Accounts](/concepts/accounts), [Operations](/concepts/operations). - [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) for verification, deposits and withdrawals per connected account. --- # Smart treasury and international payments > How a finance team manages liquidity through the Business API: read balances on the master account and client accounts, move funds with internal transfers, price and run conversions, send money abroad through withdrawal destinations, apply policies and approvals, and reconcile with activity exports and events. Source: https://business-api-docs.youhodler.com/use-cases/treasury-and-international-payments > **Status: In the API.** Every call on this page is in the public API contract. A finance team that holds money in several currencies and accounts needs to know where the money is, move it where it is needed, convert it at a known price, send it abroad, and prove afterwards what happened. This page shows how to do each of those jobs through the API, so that your own treasury system or a scheduled job can do them without anyone opening the console. It is for treasury and finance leads who want to see what can be automated, and for the developer who writes the automation. ## At a glance | Treasury job | API call | Console screen | | --- | --- | --- | | See positions | `GET /financial-accounts`, `GET /master-accounts//balances`, `GET /client-accounts//balances` | **Balances** | | Move funds between your accounts | `POST /internal-transfers` | **Payments** | | Price before converting | `GET /prices/indicative`, `POST /fee-previews`, `POST /conversions/preview` | **Balances → Convert** | | Convert | `POST /conversions` | **Balances → Convert**, **Operations** | | Send money abroad | `POST /withdrawal-destinations`, `POST /withdrawals` | **Payments → Payout (External)** | | Control who can do what | `POST /policy-rules`, `GET /approvals` | **Policies**, **Approvals** | | Reconcile | `POST /operations-activity-exports`, `GET /events` | **Reporting**, **Operations** | [Coverage](/coverage) lists the assets, networks, rails and operations you can use in these calls. ## Before you start - **Sandbox access and an API key.** Create a service account in the console under **API Keys**. The calls on this page need `accounts.read`, `clients.read`, `internal_transfers.create`, `internal_transfers.read`, `conversions.create`, `conversions.read`, `withdrawals.create`, `withdrawals.read`, `operations_reports.create_export` and `operations_reports.read`. Add `events.read` and `webhooks.create` for events, and `policies.read` and `approvals.read` to read controls. Grant a treasury job only the capabilities it uses. See [Authentication](/integrations/authentication) for the access token. - **Your enterprise reference.** `GET /me/profile` returns it as `workspace.ref`, in the form `enterprises/`. - **Worth reading first:** [Accounts](/concepts/accounts), [Operations](/concepts/operations), [Conversions and pricing](/concepts/conversions-and-pricing), [Policies and approvals](/concepts/policies-and-approvals) and [Idempotency and concurrency](/concepts/idempotency-and-concurrency). ## How it fits together Your company holds one master account (console: Master Account, often named "Treasury") and, if you serve customers or run separate business units, one or more connected accounts (API: `client`), each with its own client accounts. Money enters and leaves over bank and crypto rails; inside the platform it moves between your accounts as internal transfers and changes currency as conversions. ```mermaid flowchart LR subgraph Company["Your company"] ERP["ERP and accounting"] TMS["Treasury service or scheduled jobs"] Team["Finance team in the console"] end subgraph Platform["YouHodler Business API"] Master["Master account"] ClientA["Client account A"] ClientB["Client account B"] Controls["Policies and approvals"] Records["Operations, events and exports"] end RailsIn["Rails in: bank transfers and crypto deposits"] RailsOut["Rails out: bank payouts and crypto withdrawals"] RailsIn --> Master RailsIn --> ClientA RailsIn --> ClientB ClientA -- internal transfer --> Master ClientB -- internal transfer --> Master Master -- conversion --> Master Master --> RailsOut TMS -- API calls --> Master TMS -- API calls --> Controls Team -- approves --> Controls Controls -- gates --> Master Master --> Records Records -- webhooks and exports --> ERP ``` 1. Money arrives on a bank or crypto rail into the master account or into a client account. 2. Your treasury service reads balances and moves funds between your accounts with internal transfers, for example sweeping client accounts into the master account. 3. The master account converts one currency into another. 4. The master account sends money out through a bank payout or a crypto withdrawal. 5. Policies decide which of these operations run at once and which wait for a person to approve them in the console. 6. Every movement is an operation with a status. Webhooks and activity exports carry the results to your ERP and accounting. ## Read positions List every account of your enterprise in one call. Master accounts come first, then client accounts with the name of the connected account that owns them: ```http GET https://b2b2x-sandbox.youhodler.com/api/financial-accounts?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&status=active Authorization: Bearer ``` Each item has `type` (`master_account` or `client_account`), `account_ref`, `display_name`, `owner_display_name` and `status`. The list is paginated: pass `next_page_token` back as `page_token` until it is `null`. Then read the balances of each account. The path takes the bare ID, the part of `account_ref` after the slash: ```http GET https://b2b2x-sandbox.youhodler.com/api/master-accounts/00000000-0000-4000-8000-000000000001/balances Authorization: Bearer ``` ```http GET https://b2b2x-sandbox.youhodler.com/api/client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1/balances Authorization: Bearer ``` **Response — 200 application/json** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": "400.00", "overdraft_limit": "500.00", "overdraft_used": "100.00", "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "master_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` One item per asset. Plan with `available`: it excludes funds under a hold. `held` is reserved for operations in flight, such as a payout that has not settled, and `total` is `available` plus `held`. Add `?asset=USD` to read one asset; an asset the account has never held returns `404`, so treat that as a zero balance. **In the console:** **Balances**. ## Move funds between your accounts An internal transfer moves one asset between two accounts of your enterprise: master account to client account, client account to master account, or between client accounts. It does not change the currency and does not leave the platform. ```http POST https://b2b2x-sandbox.youhodler.com/api/internal-transfers Authorization: Bearer Idempotency-Key: sweep-2026-11-19-aaaaaaa1-ars Content-Type: application/json { "source_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "target_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "amount": { "value": "1250000.00", "currency": "ARS" } } ``` The response is `202` with the operation `id` and `status`. Follow it with `GET /internal-transfers/` or the `operations.internal_transfer.settled.v1` and `operations.internal_transfer.failed.v1` events. `source_ref` and `target_ref` must differ. Always send an `Idempotency-Key`. Without one each retry creates a new transfer. Build the key from what makes the movement unique for you (the date, the account and the asset in the example), so that a job that runs twice moves the money once. **In the console:** internal transfers are listed under **Payments** as "Transfer in (Internal)" and "Transfer out (Internal)", and under **Operations**. ## Price before you convert Three calls answer three different questions. None of them reserves funds or locks a rate. | Question | Call | What it returns | | --- | --- | --- | | What is the market rate right now? | `GET /prices/indicative` | The raw indicative price for a pair and an amount. No fee fields | | What will the fee be? | `POST /fee-previews` | The fee for a planned operation of a given type and amount | | What will this account receive? | `POST /conversions/preview` | Rate, fee and resulting amount together, for one account | **Indicative price.** Anchor the amount on either side. To ask how many pesos buy 10,000 dollars, set `amount_basis=to`: ```http GET https://b2b2x-sandbox.youhodler.com/api/prices/indicative?from_asset=ARS&to_asset=USD&amount_basis=to&to_amount=10000&account_ref=master-accounts/00000000-0000-4000-8000-000000000001 Authorization: Bearer ``` To price an amount you hold, send `amount_basis=from` and `from_amount` instead. Send exactly one of the two amounts. `indicative_price.price` is the amount of `to_asset` per unit of `from_asset`, and `expires_at` says how long the figure is worth showing. **Fee preview.** `operation_type` and `service_type` name the operation you plan: `conversion`, `internal_transfer`, `withdrawal_fiat` or `withdrawal_crypto`. ```http POST https://b2b2x-sandbox.youhodler.com/api/fee-previews Authorization: Bearer Idempotency-Key: fee-preview-ars-usd-001 Content-Type: application/json { "subject_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "operation_type": "conversion", "service_type": "conversion", "principal_amount": { "value": "5000000.00", "currency": "ARS" } } ``` Read `fee_preview.fee_summary.total`. **Conversion preview.** This is the one to show to a person or to check against a limit before converting: ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions/preview Authorization: Bearer Idempotency-Key: ars-usd-preview-2026-11-19 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": { "value": "5000000.00", "currency": "ARS" }, "to_currency": "USD" } ``` **Response — 200 application/json** ```json { "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "economics": { "binding": false, "fee_summary": { "components": [ { "amount": { "currency": "USD", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USD", "value": "1.00" } }, "indicative_rate": "0.00002", "source_gross_amount": { "currency": "USD", "value": "250.00" }, "source_principal_amount": { "currency": "USD", "value": "249.00" }, "target_amount": { "currency": "BTC", "value": "0.00498000" } }, "execution_min_source_amount": { "currency": "USD", "value": "25.00" }, "expires_at": null, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USD", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USD", "value": "1.00" } }, "from_amount": { "currency": "USD", "value": "250.00" }, "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "expires_at": null, "price": "0.00002", "price_type": "indicative", "provider_hint": null }, "min_source_amount": { "currency": "USD", "value": "25.00" }, "principal_amount": { "currency": "USD", "value": "249.00" }, "to_amount": { "currency": "BTC", "value": "0.00498000" } } ``` In `economics`, `source_gross_amount` is what leaves the source balance, `fee_summary` is the fee taken from it, `source_principal_amount` is what is converted and `target_amount` is what arrives. `min_source_amount` is the smallest amount the pair accepts. `binding` is always `false`: the conversion computes the rate and the fees again when it runs. See [Conversions and pricing](/concepts/conversions-and-pricing). Which pairs exist, and their limits, come from `GET /conversion-pairs?source_currency=ARS&target_currency=USD`. ## Convert Send the same three fields as the preview: ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: ars-usd-2026-11-19-001 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": { "value": "5000000.00", "currency": "ARS" }, "to_currency": "USD" } ``` The response is `202` with the operation. Follow `GET /conversions/` until `status` is `settled`; then `target_amount`, `applied_rate` and `fee_summary` hold the executed figures. Listen for `operations.conversion.settled.v1` and `operations.conversion.failed.v1` instead of polling when you can. A service account converts with its capability alone. A person's token also needs an `X-Action-Token` header, issued by `POST /action-tokens` for exactly this request body. See [Action tokens](/api/reference/action-tokens). **In the console:** **Balances → Convert**; the conversion then appears under **Operations**. ## Send money abroad Money leaves through a withdrawal to a withdrawal destination that you register once and reuse: 1. `POST /withdrawal-destinations` registers a bank account (`rail_class`: `fiat`) or a crypto address (`rail_class`: `crypto`). 2. `POST /withdrawals` sends an `amount` from an account to that destination. Two rules shape a treasury design: - **Bank payouts leave from the master account, to a bank account in your company's own name.** A USD or EUR bank destination is registered on the master account, and the payout provider sends the transfer with your company as the beneficiary. Sweep client accounts into the master account first, then pay out from there. - **The payout fee is deducted from the amount you send.** The account is debited `amount`, and the destination receives `amount` minus the fees in `fee_summary`. [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad) walks through the whole flow: the bank destination and its review, the fee preview, the withdrawal, its statuses and the sandbox simulations. This page does not repeat it. ## Set controls Automation should not be able to move unlimited amounts by itself. Three controls sit between a request and its execution: - **Capabilities.** A service account can only call what its role grants. A job that sweeps balances needs `internal_transfers.create` and no payout capability. See [Access](/concepts/access). - **Policy rules.** A rule names an `operation_type` (`withdrawal`, `conversion`, `internal_transfer` and others), conditions and a decision at a scope, for example that payouts above a threshold need a person's approval. Rules are created as drafts and take effect when activated. Read the active ones with `GET /policy-rules?scope_ref=`. - **Approvals.** An operation caught by a rule stops at `pending_approval` and carries an `approval_ref`. A person approves or rejects it in the console under **Approvals**; your system can list the open cases with `GET /approvals?scope_ref=&status=pending` and follow the events: `operations.withdrawal.pending_approval.v1`, then `operations.withdrawal.executing.v1` once it is approved. For conversions and internal transfers the pair is `pending_approval` and `approved`, for example `operations.conversion.approved.v1`. Treat `pending_approval` as a normal state, not an error: keep the operation ID, tell the finance team, and continue when the operation moves on. [Policies and approvals](/concepts/policies-and-approvals) explains the model and who is eligible to approve. ## Reconcile **Statuses.** Internal transfers, conversions and withdrawals share one status list. Count an operation as done only when it is `settled`. `failed` and `cancelled` are final without a movement of the principal; read `failure_reason`. `partially_settled` is final too, for conversions and internal transfers: part of the amount moved and the rest did not, so read the operation and the balances before you retry. Every other value means the operation is still in progress or needs attention. [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) explains each status and event. **Period export.** An activity export is a file with one row per operation in a time range. Create it for the whole enterprise, or for one master account, connected account or client account: ```http POST https://b2b2x-sandbox.youhodler.com/api/operations-activity-exports Authorization: Bearer Idempotency-Key: month-end-2026-10 Content-Type: application/json { "format": "csv", "requested_scope": { "kind": "enterprise", "ref": "enterprises/11111111-1111-4111-8111-111111111111" }, "filter_criteria": { "date_from_utc": "2026-10-01T00:00:00Z", "date_to_utc": "2026-11-01T00:00:00Z" } } ``` **Response — 201 application/json** ```json { "format": "csv", "byte_size": 32768, "download_path": "/operations-activity-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 150, "status": "ready", "storage_location": null } ``` The export is built in the background. Read `GET /operations-activity-exports/` until `status` is `ready` (`queued` and `running` come first; `failed` carries `failure_reason`), then download the file from `download_path`: ```http GET https://b2b2x-sandbox.youhodler.com/api/operations-activity-exports//download Authorization: Bearer ``` `format` `csv` returns a CSV file and `json` returns one JSON object per line. Each row is one operation: its ID, family and status, the accounts involved, the asset and amount on each side, the fees and the failure reason. Narrow the file with `filter_criteria.operation_families`, `assets` or `client_account_refs`. The file expires at `expires_at_utc`; after that create a new export. **Events.** For reconciliation during the day, subscribe a webhook to the `settled` and `failed` events of the families you use, or read the same events with `GET /events?event_type_pattern=operations.*&from_date=`. `ledger.transaction.posted.v1` reports each ledger posting. See [Events and webhooks](/guides/events-and-webhooks). **In the console:** **Reporting** for exports, **Operations** for single operations. ## Example workflows Each recipe is a job you can schedule. All of them use the calls above. ### Sweep client accounts into the master account Use this to concentrate funds collected on client accounts before converting or paying out. 1. List client accounts: `GET /financial-accounts?scope_ref=enterprises/&type=client_account&status=active`. 2. For each one, read `GET /client-accounts//balances`. 3. For each asset whose `available` is above the amount you keep on the account, create the transfer: ```http POST https://b2b2x-sandbox.youhodler.com/api/internal-transfers Authorization: Bearer Idempotency-Key: sweep-2026-11-19-bbbbbbb2-usdc Content-Type: application/json { "source_ref": "client-accounts/bbbbbbb2-bbbb-4bbb-8bbb-bbbbbbbbbbb2", "target_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "amount": { "value": "8400.00", "currency": "USDC" } } ``` 4. Follow each transfer to `settled` with `GET /internal-transfers/` or the `operations.internal_transfer.settled.v1` event. 5. Read `GET /master-accounts//balances` to confirm the new position. Transfer `available`, never `total`: held funds cannot be moved. ### Convert surplus ARS to USD above a threshold Use this to stop pesos from accumulating beyond what you need for local payments. 1. Read the peso balance: `GET /master-accounts//balances?asset=ARS`. A `404` means the account holds no ARS; stop. 2. Compute the surplus: `available` minus the amount you keep in pesos. Stop if it is below the pair's `min_source_amount` from `GET /conversion-pairs?source_currency=ARS&target_currency=USD`; cap it at `max_source_amount`. 3. Preview it with `POST /conversions/preview` and compare `economics.target_amount` with the lowest result your treasury policy accepts. Stop and alert a person if it is lower. 4. Convert: ```http POST https://b2b2x-sandbox.youhodler.com/api/conversions Authorization: Bearer Idempotency-Key: ars-surplus-2026-11-19 Content-Type: application/json { "account_ref": "master-accounts/00000000-0000-4000-8000-000000000001", "from_amount": { "value": "12500000.00", "currency": "ARS" }, "to_currency": "USD" } ``` 5. Follow `GET /conversions/`. On `settled`, record `target_amount` and `applied_rate`. On `pending_approval`, wait for the finance team. On `failed`, read `failure_reason` and leave the pesos for the next run. To react when pesos arrive instead of running on a timer, start the job from the `operations.deposit.settled.v1` event. One idempotency key per run (the date in the example) keeps a repeated run from converting twice. ### Month-end reconciliation export Use this to close the books for a period. 1. Create the export for the month with `POST /operations-activity-exports`, as in [Reconcile](#reconcile). `date_to_utc` must be later than `date_from_utc`. 2. Read `GET /operations-activity-exports/` until `status` is `ready`. 3. Download `GET /operations-activity-exports//download` and load the rows into your ledger, matching on the operation ID you stored when you created each operation. 4. Read the balances of every account, as in [Read positions](#read-positions), and compare them with your ledger's closing balances. 5. List anything not `settled`, `partially_settled`, `failed` or `cancelled` and follow it up before closing the period. Reconcile each `partially_settled` operation by the amounts it actually moved. ## Try it on sandbox Run the calls above against the sandbox base URL. To put money on an account first, simulate an incoming transfer Sandbox-only as described in [Sandbox testing](/guides/sandbox-testing); the simulation routes return 404 in production. The treasury dashboard in [Example apps](/examples) runs these calls from a small web app, and works without credentials in mock mode. ## Related - [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad): the international payout, step by step - [Coverage](/coverage): supported assets, networks, rails and operations - [Transaction lifecycle and webhooks](/guides/transaction-lifecycle) - [Example apps](/examples): the treasury dashboard - [Liquidity distribution workflow](/workflows/distribution-and-liquidity) - API reference: [Balances](/api/reference/balances), [Financial accounts](/api/reference/financial-accounts), [Internal transfers](/api/reference/internal-transfers), [Prices](/api/reference/prices), [Fee previews](/api/reference/fee-previews), [Conversions](/api/reference/conversions), [Withdrawals](/api/reference/withdrawals), [Policies](/api/reference/policies), [Approvals](/api/reference/approvals), [Operations activity exports](/api/reference/operations-activity-exports), [Events](/api/reference/events) --- # Example apps > Three small apps you can download and run against the sandbox or a built-in mock: a customer wallet, a treasury dashboard and a policy-governed treasury agent. Node.js 20, no dependencies. Source: https://business-api-docs.youhodler.com/examples Each app shows one integration end to end, in a few hundred lines you can read in one sitting. Download it, run it against a built-in mock to click through without credentials, then point it at the sandbox with your service account. > **Sandbox:** The examples run against the sandbox. Production access is granted after a review; see [Overview](/intro). ## What every example has - **Node.js 20 or later and no npm dependencies.** No build step: unzip, `npm start`. - **A small server and a plain HTML page.** The server holds the credentials and the access token; the browser never sees them. - **Mock mode.** `npm run start:mock` runs against a built-in fake of the endpoints the app uses, with responses shaped like the API contract examples. The page says when mock mode is on. The fake does not model the platform's rules, so use the sandbox to learn real behaviour. - **Sandbox mode.** Copy `.env.example` to `.env`, fill in the sandbox base URL and the service account's client id and secret, then `npm start`. The README lists the capabilities the service account needs. - **Tests.** `npm test` runs offline against the fake. ## The apps ### crypto-wallet **Status:** In the API A customer wallet inside your product: balances, a deposit address for a chosen asset and network, a swap with a preview, a withdrawal to a saved destination, and an activity list. Guide: [Crypto apps and embedded finance](/use-cases/crypto-app-and-embedded-finance) · Download: [crypto-wallet.zip](/example-apps/crypto-wallet.zip) ### treasury-dashboard **Status:** In the API Balances across the master account and client accounts, a conversion with a preview, an internal transfer, and recent operations with their statuses. Guide: [Treasury and international payments](/use-cases/treasury-and-international-payments) · Download: [treasury-dashboard.zip](/example-apps/treasury-dashboard.zip) ### treasury-agent **Status:** In the API A rule-based agent that reads balances, proposes a conversion, previews it, submits it, and handles each outcome: executed, held for approval, or refused. Every decision goes to an append-only log, and a `--dry-run` flag only previews. The decision function is pluggable, so a model-driven agent can replace the rule. Guide: [AI agents and treasury automation](/use-cases/ai-treasury-agent) · Download: [treasury-agent.zip](/example-apps/treasury-agent.zip) ## Run one ```bash unzip crypto-wallet.zip && cd crypto-wallet npm run start:mock # click through without credentials cp .env.example .env # then fill in the sandbox values npm start # the same app against the sandbox npm test # offline tests against the mock ``` Each app prints the local URL it serves on. Its README explains which screen calls which API operation. ## Next steps - New to the API: start with the [Quickstart](/quickstart). - Check your currencies and rails: [Supported assets and status](/coverage). - Keep your system in sync: [Transaction lifecycle](/guides/transaction-lifecycle). --- # Authentication > How to obtain access tokens for the B2B2X public API, including service-account credentials, human sign-in via token exchange, and the sandbox environment. Source: https://business-api-docs.youhodler.com/integrations/authentication The B2B2X public API is bearer-token authenticated. Tokens are issued by `POST /oauth/token` and presented in the `Authorization: Bearer` header on every subsequent call. There are two integration patterns, matching the two [actor types](/concepts/identity#actor-types) the platform recognises. > **Practical rule:** Use a service principal token for routine machine-to-machine traffic. Use a human token obtained through token exchange when an action requires an eligible human decision. ## Base URL **Sandbox** ``` https://b2b2x-sandbox.youhodler.com/api ``` **Production** ``` https://b2b.youhodler.com/api ``` ## Sandbox Sandbox tenants and credentials are issued through the [business-api landing page](https://business-api.youhodler.com/). Until a tenant is provisioned, `POST /oauth/token` calls against the sandbox return `400 invalid_request` with the message `invalid credentials` — that is expected, not a contract issue. See [Sandbox simulations](/guides/sandbox-testing) for the currency-to-rail support table and an ARS deposit example. ## Service Principal Credentials Each service account has a `client_id` and a `client_secret` that are shown once at creation. The `client_id` is the service account's `id`, a UUID. Store the pair as you would any production credential. Exchange them for an access token with the OAuth 2.0 client-credentials grant: **Request URL — POST** ```http POST /oauth/token ``` **Request Body — application/json** ```json { "grant_type": "client_credentials", "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "" } ``` **Response — application/json** ```json { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiOGUyZjFhMCJ9.sig", "expires_in": 3600, "issued_token_type": "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" } ``` The resulting token's effective actor is the service principal itself. Authorization is checked against the role assignments granted to that service principal — see [Access](/concepts/access). ### Refused Credentials `POST /oauth/token` refuses a bad client credential with `400 invalid_request`, `data.reason` `missing_required_field` and the message `invalid credentials`. An unknown or non-UUID `client_id`, a wrong or expired secret and a revoked service account all receive this same response, so it does not reveal which client ids exist. Omitting `client_id` or `client_secret` is also a `400 invalid_request`, and a missing or unsupported `grant_type` returns `400 unsupported_grant_type`. The token endpoint returns `401 unauthorized` only with `data.reason` `assertion_predates_suspension`: the subject token or client assertion was issued before a suspension of the human or the identity provider. Obtain a fresh assertion from the identity provider before retrying. ## Acting On Behalf Of A Human For actions that require an identifiable human actor of record (approvals, sensitive transitions, governance changes) the integration exchanges a federated human's identity assertion for a platform token that *acts on behalf of* the human. This uses RFC 8693 token exchange: **Request URL — POST** ```http POST /oauth/token ``` **Request Body — application/json** ```json { "grant_type": "urn:ietf:params:oauth:grant-type:token-exchange", "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "<...>", "subject_token": "", "subject_token_type": "urn:ietf:params:oauth:token-type:id_token" } ``` **Response — application/json** ```json { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiOGUyZjFhMCJ9.sig", "expires_in": 3600, "issued_token_type": "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" } ``` The resulting token's `subject` is the human; the integration's service client credentials select the workspace; the resulting public-edge principal and subject are the human. Authorization uses that human's role assignments. The public API rejects delegated `actor_token` exchange and `x-on-behalf-of` headers; it does not preserve a separate service transport actor. See [Identity → Acting On Behalf Of A Human](/concepts/identity#acting-on-behalf-of-a-human) for the canonical model. The `password` grant is intentionally not supported. Human authentication always goes through an external identity provider. ## Using The Token Send the access token on every API call: ``` Authorization: Bearer Content-Type: application/json Idempotency-Key: # accepted on POSTs; required where documented If-Match: # only where the endpoint requires it ``` See [Idempotency And Concurrency](/concepts/idempotency-and-concurrency) for the headers, and [Errors](/concepts/errors) for what to expect when something goes wrong. ## Token Expiry And Refresh Tokens expire after `expires_in` seconds. Re-issue a fresh token by calling `POST /oauth/token` again with the same credentials — the client-credentials flow does not return a refresh token. Token responses bypass the durable idempotency cache, so each request issues a fresh token. Service-account creation differs: a retry with the same `Idempotency-Key` returns the created account without `client_secret`. See [Idempotency And Concurrency](/concepts/idempotency-and-concurrency#idempotency). Partner token exchanges authenticated with `client_id` and `client_secret` also return an access token only. A fresh exchange requires a fresh `subject_token` from the IdP. Direct console sign-in through a registered IdP, without client credentials, returns `refresh_token` and `session_expires_in` together. The session has a one-hour idle limit and a twelve-hour absolute limit by default. Renew with `grant_type=refresh_token`; renewal rotates the refresh token and never resets the absolute limit or makes the authentication evidence more recent. Persist a cryptographically random `next_refresh_token` with the current token before renewal. If the response is lost, an ordinary refresh with the same pair can recover the committed successor without extending its deadlines. Retrying a spent token without its active successor revokes the session. See [Issue access token](/api/reference/auth/oauth-token) for the exact recovery and reauthentication-promotion contract. On sign-out, call [Revoke a refresh token](/api/reference/auth/oauth-revoke). Revocation ends the refresh session; already-issued access tokens retain their normal expiry. Approval decisions and action-token issuance require authentication no older than fifteen minutes and can request reauthentication before proceeding. --- # Access > Authorization model: action classes (machine-native vs human-governed), capabilities and scopes, role assignments, and propagation. Source: https://business-api-docs.youhodler.com/concepts/access Access answers *what an actor is allowed to do, and where*. Who the actor is — human, machine, federated, on-behalf-of — is the [Identity](/concepts/identity) concern; this page covers the authorization layer that sits on top. The model is the same for every actor: a single capability/scope/role system applies to humans, service principals, platform-hosted users, and federated users. Governance never splits into two systems for different identity sources. > **Practical rule:** Authorize by capability and scope, not by actor type. The same capability can be granted to a human, a service principal, or both — inside whichever perimeter is appropriate. ## Action Classes Not every API action needs the same kind of accountability: - **Machine-native** — repeatable, deterministic work where the human behind the request does not change its business meaning. Reads, reconciliation, webhook maintenance, routine provisioning. Service principal as actor is normal. - **Human-governed** — actions that require an identifiable actor of record: governance changes, sensitive lifecycle mutations, payout destination changes, anything subject to four-eyes or approval. A real human must be on the request, even when the transport is machine-driven (see [Acting On Behalf Of A Human](/concepts/identity#acting-on-behalf-of-a-human)). ## Capabilities And Scopes Authorization is expressed through two independent axes: - **Capabilities** describe *what* an actor can do — `clients.read`, `clients.manage`, and so on. They are atomic, named permissions. - **Scopes** describe *where* the actor can do it. A scope can be a whole topology perimeter (`enterprise`, `client`) or narrow further to a specific account (`master-account`, `client-account`). A caller is allowed an operation only if both axes match: they hold the required capability, and that capability is granted inside a scope that covers the target resource. The benefit is real least-privilege without exploding into bespoke roles per resource. You can grant the same capability broadly (the whole enterprise) or narrowly (one client account) by changing only the scope. Each grant also declares how far it reaches inside the topology graph: - **subtree** — the grant covers the named scope and everything under it; an enterprise-level subtree grant reaches every client and client account inside. - **self** — the grant covers only the exact named scope, with no descendants; useful for narrow exceptions. Propagation is part of the assignment, not an implicit property of the topology, so you opt in to coverage rather than getting it by accident. ## Roles And Role Assignments Capabilities are bundled into reusable **roles**. A **role assignment** binds a role to an actor inside a specific scope. Three layers, three responsibilities: 1. `Capability` — atomic permission name 2. `Role` — named bundle of capabilities 3. `RoleAssignment` — `(actor, role, scope)` triple that grants the role to the actor inside that scope Roles are reusable across actors and scopes — the same `Treasury Ops` role can be assigned to a human user inside one client and to a service principal inside another, without duplicating the bundle. Revoking access removes a role assignment; it does not delete the actor or the role. ## How This Appears In The API **Request URL — POST** ```http POST /role-assignments ``` **Request Body — application/json** ```json { "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Response — application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` --- # Accounts > Master and client accounts as the operating-account layer: balance reads (available, held, total) and overdraft semantics. Source: https://business-api-docs.youhodler.com/concepts/accounts An account is where money sits. Your business has master accounts for its own funds, and each connected account (API: `client`) has client accounts for that customer's funds. Every account shows, asset by asset, what can be spent now, what is reserved for payments in progress, and the total. [Topology and Refs](/concepts/topology-and-refs) introduces `MasterAccount` and `ClientAccount` as the operating-account layer of the tenant graph. This page covers what is special about that layer: how balances behave and how balance reads are shaped for reconciliation. Three guarantees worth designing around: - **Authoritative reads.** A balance change is visible exactly once, at one well-defined moment. Internal transfers move both sides together — the two ends cannot drift. - **Stable ownership.** Your account ref keeps owning the same funds regardless of what happens to the underlying infrastructure. There is nothing custody-shaped to model in your integration. - **Free vs reserved is explicit.** Operations in flight reserve funds without hiding them. You always know what you can act on right now. > **Practical rule:** Read balances and post operations against an account ref. Never try to read a balance off an enterprise or a client directly — balances do not live at the relationship layer. ## Balance Reads Balance reads return a composite owner view, asset by asset, with three numbers: - **`available`** — what the account can act on right now - **`held`** — what is reserved against in-flight operations or pending settlements - **`total`** — the sum of `available` and `held` The split is deliberate. Operations in flight reserve funds without removing them from the visible total, so your code can answer two different questions cleanly: "can I move $X right now?" reads `available`; "what does this account own at rest and in flight?" reads `total`. ### How A Hold Moves Through An Operation A withdrawal reserves its amount when it starts executing. The example follows a withdrawal of 250 from an account that holds 1000 of the same asset. ```mermaid flowchart LR B1["Before: available 1000, held 0, total 1000"] B2["Executing: available 750, held 250, total 1000"] B3["Settled: available 750, held 0, total 750"] B4["Refused or failed: available 1000, held 0, total 1000"] B1 -->|"execution starts, 250 reserved"| B2 B2 -->|"rail settles, hold consumed"| B3 B2 -->|"rail refuses, hold released"| B4 ``` 1. Before the operation, the whole balance is `available`. 2. When execution starts, the requested amount moves from `available` to `held`. `total` does not change, so the money is still visible as yours. 3. When the operation reaches `settled`, the hold is consumed: `held` and `total` both go down by the amount. Fees are taken out of the reserved amount, not added on top, so the recipient receives the amount minus fees. 4. If the rail refuses the payment or the operation fails, the hold is released and the amount returns to `available`. Waiting for a decision reserves nothing. While an operation is in `pending_approval` or `pending_compliance`, the balance is unchanged; the funds are checked when the review clears, and the operation ends in `failed` if the account no longer covers it. An internal transfer posts both sides in one step, so it has no hold to watch. In the console: the **Balances** page shows the same three numbers in the columns Available, Held and Total, per account and asset. Balance reads are owner-centric, not transaction-centric — they describe an account's state at a moment, not the activity that produced it. For activity, see [Operations](/concepts/operations) and [Events and Webhooks](/concepts/events-and-webhooks). ## Overdraft > **Availability:** Master-account overdraft is implemented. Limit administration is a private platform-staff surface; partner integrations read overdraft information through the ordinary account balance API. For a master account with a configured limit, balance items expose `overdraft_limit`, `overdraft_used`, and `overdraft_headroom`. Headroom is the configured limit minus the amount used. These fields are separate from `available`, `held`, and `total`; do not treat the credit limit as funded cash. Read the [master-account balances](/api/reference/balances/master-accounts-balances) or [client-account balances](/api/reference/balances/client-accounts-balances) reference for the response shape. Overdraft fields are nullable, and client accounts do not currently receive a client credit line through these APIs. Changing a limit requires the platform operator's staff workflow. The partner OpenAPI intentionally excludes those administration endpoints. ## How This Appears In The API **Request URL — GET** ```http GET /client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/balances ``` **Response — application/json** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": null, "overdraft_limit": null, "overdraft_used": null, "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "client_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` --- # Commercial Agreements > Versioned fee configuration, with public enterprise agreement management and platform-managed service bindings. Source: https://business-api-docs.youhodler.com/concepts/commercial-agreements A `CommercialAgreement` is the versioned configuration that controls how fees are applied to operations inside a tenant scope. The platform models two distinct levels: a platform-level agreement between the platform and the enterprise, and an enterprise-level agreement between the enterprise and its end clients. > **Public API:** Enterprise agreement versions can be listed, read, created, and superseded through the Commercial Agreements reference . Platform agreement administration remains private. ## What Belongs Here Two agreement levels apply at different boundaries: - **PlatformCommercialAgreement** binds services to a providing platform operator and defines platform fees for the enterprise. Platform staff manage this configuration. - **EnterpriseCommercialAgreement** defines service fee schedules for all clients of an enterprise or one named client. `client_scope` selects `all_clients` or `single_client`. Each version carries `version`, `status`, `effective_from`, `effective_to`, and `service_bindings`. Fee schedules support fixed, basis-point, fixed-plus-basis-point, and tiered models, with optional minimum and maximum fees. Money values use `value` and `currency`. ## Managing Enterprise Versions | Action | Public endpoint | | --- | --- | | List versions for an enterprise and client scope | [GET /enterprise-commercial-agreements](/api/reference/commercial-agreements/enterprise-commercial-agreements-list) | | Read a version by ID | [GET /enterprise-commercial-agreements/:id](/api/reference/commercial-agreements/enterprise-commercial-agreements-get) | | Create a version with an effective start and service bindings | [POST /enterprise-commercial-agreements](/api/reference/commercial-agreements/enterprise-commercial-agreements-create) | | End an existing version's effective window | [POST /enterprise-commercial-agreements/:id/supersede](/api/reference/commercial-agreements/enterprise-commercial-agreements-supersede) | Use a new version for a new fee schedule. Superseding records `effective_to` on the existing version; it does not submit the replacement schedule. The caller must have the required commercial-agreement capabilities and scope coverage for the enterprise and client selection. ## Fees On Operations The agreement configures pricing. An operation's fee summary records the fees applied to that operation. Use [pricing previews](/concepts/conversions-and-pricing#pricing-surfaces) to inspect the current economics, and the operation response to reconcile the resulting charges. --- # Conversions And Pricing > Three-layer conversion model: discovery (conversion pairs), pricing surfaces (indicative, fee preview, full preview), and execution as a tracked operation. Source: https://business-api-docs.youhodler.com/concepts/conversions-and-pricing Conversions are how the platform moves value between two assets. The public API splits the model into three distinct layers — discovery, pricing, and execution — so integrators can browse, preview, and execute independently. A pricing artifact is not an operation, and an operation is not a market reference. Keeping them as distinct objects keeps integration code aligned with the platform's internal model. > **Practical rule:** Use the preview surfaces to show the customer what a conversion will look like. Treat a `Conversion` as the only artifact that actually moves value. ## Mental Model Three layers, each with its own surface: - **Discovery** — which corridors are supported (`ConversionPair`) - **Pricing** — what the rate and fees look like before committing (`prices/indicative`, `fee-previews`, `conversions/preview`) - **Execution** — the canonical operation that moves value (`Conversion`) Discovery is configuration. Pricing is read-only and time-bounded. Execution is a write that produces a lifecycle-tracked operation. ## Conversion Pairs A `ConversionPair` represents a supported conversion corridor — `(source_currency, target_currency)` plus static source-amount bounds and active status. Discover corridors with [GET /conversion-pairs](/api/reference/conversion-pairs/conversion-pairs-list) and read one by catalog ID with [GET /conversion-pairs/:id](/api/reference/conversion-pairs/conversion-pairs-get). Discovery is global reference data: a pair existing means the corridor is allowed, not that any specific size will fill at any specific rate. Pricing for a real request still goes through the preview surfaces. Account and tenant scope filters are not accepted by discovery; use conversion preflight for account eligibility. ## Pricing Surfaces Three pricing surfaces serve three different questions, in order of detail: - **`prices/indicative`** — *what is the rate right now?* A non-binding rate for a `(base, quote)` pair. Useful for UI tickers, dashboards, and rough sizing. No commitment, no expiry. - **`fee-previews`** — *what fees would apply to a conversion of this size?* Returns the fee components and an indicative rate at the moment of issue. Read-only; reserves nothing. - **`conversions/preview`** — *what would the whole conversion look like?* Returns `economics` with source gross amount, fee summary, source principal amount, indicative rate, and target amount. `binding` is always `false`; `expires_at` may be `null`. None of these surfaces reserve liquidity or commit the platform to a specific outcome. They reflect pricing rules and commercial agreements at the moment they were issued. ## Executable Quotes > **Preview availability:** The partner conversion API currently exposes non-binding previews. It has no public executable Quote resource or quote ID to submit for execution. An executable quote would commit to economics for a bounded time. The current [conversion preview](/api/reference/conversions/conversions-preview) does not reserve funds or lock a rate; creating a conversion may recompute fees and pricing before ledger posting. ## Conversion Operations A `Conversion` is the canonical execution surface. The create request names the source/target asset, the amount, and the account scope; once accepted it becomes a lifecycle-tracked `OperationView` with status, executed amounts, and attribution. Cancellation is available while the operation has not reached a terminal status. Terminal status reflects the realized outcome — the exact rate, fees, and amounts that ledger recognized. ## How This Appears In The API **Request URL — POST** ```http POST /conversions/preview ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USD", "value": "250.00" }, "to_currency": "BTC" } ``` **Response — application/json** ```json { "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "economics": { "binding": false, "fee_summary": { "components": [ { "amount": { "currency": "USD", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USD", "value": "1.00" } }, "indicative_rate": "0.00002", "source_gross_amount": { "currency": "USD", "value": "250.00" }, "source_principal_amount": { "currency": "USD", "value": "249.00" }, "target_amount": { "currency": "BTC", "value": "0.00498000" } }, "execution_min_source_amount": { "currency": "USD", "value": "25.00" }, "expires_at": null, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USD", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USD", "value": "1.00" } }, "from_amount": { "currency": "USD", "value": "250.00" }, "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "expires_at": null, "price": "0.00002", "price_type": "indicative", "provider_hint": null }, "min_source_amount": { "currency": "USD", "value": "25.00" }, "principal_amount": { "currency": "USD", "value": "249.00" }, "to_amount": { "currency": "BTC", "value": "0.00498000" } } ``` --- # Errors > Common error envelope returned by the public API, the HTTP status to error-shape mapping, and how integrators should branch on errors. Source: https://business-api-docs.youhodler.com/concepts/errors Every error response on the public API uses the same JSON envelope, so an integration can write one parser that handles every failure mode. HTTP status carries the broad category; the body carries a stable machine-readable `code`, a human message, and an optional `data` object with structured context. > **Practical rule:** Branch your error handling on HTTP status first, then on `body.code`. Treat `data.reason` as the documented refinement of a code. Match only fields and reason values documented for the endpoint. ## Error Envelope Every error response carries the same shape, regardless of the HTTP status: ```json { "code": "not_admissible", "message": "The operation was refused", "data": { "reason": "CLIENT_NOT_VERIFIED", "source": "verification" } } ``` - **`code`** — stable, machine-readable identifier for the error. Use this in your branching logic. - **`message`** — human-readable description, suitable for logs or developer tooling. Not localized; not safe to surface to end users verbatim. - **`data`** — optional, documented context such as `reason`, admission `source`, legal document version, or `retry_after_ms`. Internal service fields are not generally exposed. The [OpenAPI JSON download](/openapi.json) includes the shared error response schemas under `components.responses`. ## HTTP Status Mapping The HTTP status tells you which kind of failure happened. The same status can carry different `code` values depending on the situation, but the high-level meaning is fixed: | Status | Meaning | Typical causes | | --- | --- | --- | | `400 Bad Request` | The request payload, query, or parameter shape is invalid. | Missing required field, malformed JSON, bad enum value. | | `401 Unauthorized` | Authentication failed. | Missing, expired, or invalid bearer token. `POST /oauth/token` refuses a bad client credential with `400 invalid_request` instead. | | `403 Forbidden` | Authenticated, but not allowed to perform this operation in this scope. | Capability not granted, scope outside granted authority. | | `404 Not Found` | The referenced resource does not exist or is not visible to the caller. | Wrong id, resource in another tenant, resource retired. | | `409 Conflict` | The request conflicts with the current state of the resource. | Idempotency-key mismatch, lifecycle precondition not met. | | `410 Gone` | The endpoint is retired. | Use the documented replacement. | | `412 Precondition Failed` | The `If-Match` ETag did not match the current resource version. | Concurrent update; re-read and retry. | | `422 Unprocessable Entity` | A valid request is not admissible. | Verification, lifecycle, policy, or compliance gate refused it. | | `429 Too Many Requests` | A rate limit was exceeded. | Use `data.retry_after_ms` when present; otherwise back off. | | `500 Internal Server Error` | An unexpected internal failure occurred. | Inspect the error and retry only as appropriate for the operation. | | `502 Bad Gateway` | An upstream system the platform depends on returned an error. | Dependency failure; preserve idempotency when retrying. | | `503 Service Unavailable` | Operation temporarily not available. | Maintenance, load shedding; retry with backoff. | Rate limits currently come from upstream services; the edge does not send a `Retry-After` header. Both 500 and 503 can use `temporarily_unavailable`, so branch on HTTP status as well as the code. For idempotency-related conflicts, see [Idempotency And Concurrency](/concepts/idempotency-and-concurrency). ## Code Conventions `code` values are stable strings. Common codes include `unauthorized`, `invalid_request`, and `forbidden_capability_scope`. Match the exact documented code and any `data.reason` refinement; do not derive codes from the human message. ## How This Appears In The API **Response — 401 application/json** ```json { "code": "unauthorized", "message": "Token expired" } ``` **Response from POST /oauth/token — 400 application/json** ```json { "code": "invalid_request", "message": "invalid credentials", "data": {"reason": "missing_required_field"} } ``` **Response — 400 application/json** ```json { "code": "invalid_request", "message": "amount.value: Invalid input" } ``` **Response — 412 application/json** ```json { "code": "precondition_failed", "message": "etag mismatch", "data": {"reason": "etag_mismatch"} } ``` --- # Events And Webhooks > Pull-based event audit history and push-based webhook delivery: how each works and when to use which. Source: https://business-api-docs.youhodler.com/concepts/events-and-webhooks Every change that matters, such as a withdrawal settling, is recorded as an event. You can read the history of events at any time, or ask the platform to send them to a URL on your side (a webhook) as they happen, so your systems learn about a payment without polling. Event delivery is split into two public surfaces. These surfaces are related but not interchangeable. One is a pull-based audit stream. The other is a push-based delivery configuration that lets external systems react to state changes as they happen. > **Practical rule:** Treat `Events` as the replay-safe audit source and `WebhookSubscription` as the delivery mechanism. Do not treat webhook delivery as the only source of truth. ## Mental Model The event model exists so integrations can support both: - active delivery to downstream systems - delayed reconciliation, replay, and traceability The two public surfaces divide that responsibility cleanly. ## Events `BackboneEvent` gives tenants a canonical audit and lifecycle stream with: - `event_type` - `aggregate` - `trace_id` - `subject_attribution` - event `data` Use the events API when you need filtered history, traceability, or delayed reconciliation. ## Webhook Endpoints `WebhookSubscription` lets a tenant register outbound delivery targets. Important behaviors: - updates use `If-Match` - status transitions are explicit - each subscription is scoped to an enterprise (`enterprises/`) or to a client (`clients/`) through its `scope_ref` Use webhook endpoints when you want operational events pushed to your own systems. ## Delivery And Replay ```mermaid flowchart LR C["State change, for example a withdrawal settles"] E["Event stored: GET /events"] S["Matching active webhook subscriptions"] D["Delivery: POST to your URL"] Y["Your endpoint"] R["retrying, with a growing wait"] Q["dlq: attempts used up"] C --> E E --> S S --> D D --> Y Y -->|"2xx"| OK["delivered"] Y -->|"error, timeout or redirect"| R R --> D R --> Q Q -->|"redeliver or replay"| D ``` 1. A state change is stored as an event with an `event_type`, such as `operations.withdrawal.settled.v1`. It can be read with `GET /events` whatever happens to delivery. 2. Each active subscription whose `event_types` match gets a delivery, which starts as `pending`. 3. The platform sends the event to the subscription `url`. A `2xx` answer marks the delivery `delivered`. Redirects are not followed. 4. Any other answer, a timeout or a connection error marks it `retrying`. The next attempt waits longer each time: about one second at first, doubling, and never more than five minutes. `next_retry_at` and `attempt_count` on the delivery show where it stands. 5. When the configured number of attempts is used up, the delivery ends in `dlq`. 6. To try again, redeliver a delivery that never succeeded (`POST /webhook-subscriptions/{subscription_id}/deliveries/{delivery_id}/redeliver`), or replay a stored event to your subscriptions (`POST /events/{event_id}/replay`). Replay also sends an event again after it was delivered. A paused subscription does not buffer: events published while it is paused are not delivered, and its pending deliveries fail without a send attempt. After you enable it again, replay the events you missed. Your endpoint can receive the same event more than once, so process each event idempotently, keyed on its `id`. Event types, payload shape, signature checks and the full retry schedule are in the [transaction lifecycle guide](/guides/transaction-lifecycle#webhooks). In the console: subscriptions are on the **Webhooks** page (under More), titled "Webhook Subscriptions", with a "Send test delivery" action that calls `POST /webhook-subscriptions/{subscription_id}/test`. Use webhook delivery for real-time reaction, but keep event retrieval available for: - retry and backfill - downstream outage recovery - audit reconstruction - traceable lifecycle review That split keeps delivery concerns separate from canonical history. ## How This Appears In The API **Response — application/json** ```json { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Request Body — application/json** ```json { "event_types": [ "operations.withdrawal.settled.v1" ], "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "secret": "wh_secret_placeholder", "url": "https://example.com/webhooks" } ``` --- # Funding Endpoints > Durable inbound routes for a tenant: rail class, asset, and the relationship between funding endpoints, deposit instructions, and deposits. Source: https://business-api-docs.youhodler.com/concepts/funding-endpoints A funding endpoint is the set of details someone uses to pay money into an account: bank details for a bank transfer, or a deposit address for crypto. You set it up once for an account, and every payment that arrives through it is credited to that account as a deposit. A `FundingEndpoint` describes a route money can come **into** the platform on behalf of a tenant. It binds the receiving account (`account_ref`, a master account or a client account), a rail class (`fiat` or `crypto`), and the routing details that the platform uses to generate deposit instructions and reconcile inbound activity. Funding endpoints are configuration objects, not transactions. They define the inbound surface; deposits and deposit instructions are what flow through that surface at runtime. > **Practical rule:** Treat a funding endpoint as the durable inbound contract for a tenant. Treat deposit instructions and deposits as the per-event artifacts produced against it. ## Mental Model A funding endpoint answers three questions for the platform: - **Who is funding?** — `account_ref` names the master account or client account that receives the funds, and through it the enterprise or client that owns the money. - **On which rail?** — `rail_class` is either `fiat` or `crypto`. - **For which asset?** — the asset the endpoint accepts. Routing details (`fiat_routing` or `crypto_routing`) carry the rail-specific configuration the platform needs to receive funds and tag them back to the correct tenant. ### Money In, Step By Step ```mermaid flowchart LR S["Sender: a bank account or an external wallet"] FE["Funding endpoint: dedicated bank details or a crypto deposit address"] DI["Deposit instruction: shared bank details plus a payment reference"] D["Deposit operation"] B["Account balance"] S -->|"crypto, or fiat with a dedicated account"| FE S -->|"fiat through a shared account"| DI FE --> D DI --> D D -->|"settled"| B ``` 1. **Pick the route.** Crypto always uses a funding endpoint: `POST /funding-endpoints` mints the deposit address for an asset and network. For fiat, `GET /funding-routes/readiness` lists the deposit routes of an account, and each route's `attribution_mode` names the setup call: `virtual_account` means a dedicated account through `POST /funding-endpoints`; `payment_reference` means the platform's shared account plus a reference through `POST /deposit-instructions`. 2. **Hand the details to the sender.** The API never pulls money in; the sender pays from their own bank or wallet. A fiat payment on a shared account must carry the reference. 3. **The platform records a deposit.** When the payment is detected, a `deposit` operation appears for the account. Read it with `GET /deposits`. 4. **The balance is credited.** When the deposit reaches `settled`, the amount is in the account's `available` balance. A deposit in `pending_admission` has arrived but waits for the receiving account to be in order, for example for verification to complete. Sandbox-only On sandbox, replace step 2 with `POST /sandbox/funding-endpoints/{funding_endpoint_id}/incoming-transfers`; see [Sandbox simulations](/guides/sandbox-testing). In the console: fiat details are on the **Fiat Funding** page, described there as a "dedicated account" or a "shared account plus a payment reference". Crypto deposit addresses are on the **Crypto** page, under Receive. Incoming payments appear on the **Payments** page as "Pay in (External)". ## Lifecycle A funding endpoint moves through these lifecycle states: - `provisioning` — the endpoint has been requested but is not yet ready to receive funds (address generation or rail setup is in progress) - `active` — accepting new inbound activity - `failed` — fiat only: the provider could not set the endpoint up. Its `failure` object carries a `code` and says whether the request is `retryable`. Crypto endpoints never report this status. - `disabled` — temporarily not accepting new inbound activity - `retired` — terminal; no longer in use Disabling and retirement are configuration changes; they do not affect funds already received through prior deposit instructions. ## Relationship To Other Resources Read the layering in this order: 1. `FundingEndpoint` — the durable inbound route for a tenant 2. `DepositInstruction` — a per-event payment instruction generated against the endpoint (account number, memo, deposit address, etc.) 3. `Deposit` — the actual inbound event observed on the rail and attributed back to the tenant Multiple deposit instructions and many deposits typically share one funding endpoint over its lifetime. For sandbox route availability, including ARS over `local_bank_transfer`, see [Sandbox simulations](/guides/sandbox-testing). ## How This Appears In The API **Request URL — GET** ```http GET /funding-endpoints?account_ref=client-accounts/44444444-4444-4444-8444-444444444444&rail_class=crypto ``` **Response — application/json** ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" }, { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USD", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": null, "failure": null, "fiat_rail": "fedwire", "fiat_routing": { "asset": "USD", "attribution_mode": "virtual_account", "bank_details": null, "beneficiary_name": null, "fiat_rail": "fedwire", "reference": null }, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "fiat", "status": "provisioning", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` --- # Console, landing and API terms > Glossary mapping the words on the landing page, the labels in the admin console and the API resource names and typed refs for the same objects — enterprise, master account, connected account (client), client account, balances, wallets, funding endpoints, payouts and withdrawals, API keys and service accounts, approvals, webhooks — with a plain definition of each and the words the API does not use. Source: https://business-api-docs.youhodler.com/concepts/glossary The landing page, the admin console and the API sometimes use different words for the same thing. A head of payments reads "client accounts" on the landing, an operator clicks **Connected Accounts** in the console, and a developer calls `/clients`. This page lines the three up, with a one-line definition of each object, so nobody mistakes one product for two. > **Status: In the API.** Every API term on this page is in the public API contract, except the checkout row, which is a separate API. How to read the table: - **Landing**: words on the public landing page. - **Console**: labels in the admin console. "Under More" means the item sits in the sidebar's collapsible More section. - **API**: the `resource` value an object reports, or the operation family, with the typed ref its identifier is written as; where the object has neither, its path. See [Topology and Refs](/concepts/topology-and-refs). ## Accounts And Money | Plain meaning | Landing | Console | API | | --- | --- | --- | --- | | Your company: the business that signed up. It owns users, keys, rules and accounts. | "your business" | "Your business" (Compliance, Onboarding) | `enterprise`, `enterprises/` | | An account that holds your own funds, your treasury. | "Treasury tools", "accounts" | "Master Account" with a short code, or the account's own name, such as "Treasury" | `master_account`, `master-accounts/` | | A customer you serve, business or person. It records who they are and whether they are verified; it holds no money itself. | "clients", "customers" | **Connected Accounts**, "Connected account" | `client`, `clients/` | | An account that holds one customer's funds, apart from yours and from other customers'. | "Client accounts" | **Client Accounts** (inside a connected account), "Client Account" with a short code | `client_account`, `client-accounts/` | | What an account holds per asset: spendable now, reserved for payments in progress, and the sum. | "check balances" | **Balances**, columns Available, Held and Total | `available`, `held`, `total` on `GET /master-accounts/{master_account_id}/balances` and `GET /client-accounts/{client_account_id}/balances` | | Details someone pays into: a crypto deposit address, or bank details dedicated to one account. | "Funding", "Fund accounts" | **Fiat Funding**, a "dedicated account"; **Crypto**, Receive, "Deposit addresses" | funding endpoint, `/funding-endpoints` | | Bank details of the platform's shared account plus a payment reference that tells the platform which account to credit. | "Funding" | **Fiat Funding**, a "shared account plus a payment reference" | deposit instruction, `/deposit-instructions` | | One payment that arrived in an account. | "receive payments" | **Payments**, "Pay in (External)"; **Crypto**, "Deposit history" | family `deposit`, read only at `GET /deposits` | | Money sent out of an account to a bank account or a crypto address. | "Payouts", "Payments & Payouts" | **Payments**, "Payout (External)"; **Balances**, Withdraw; **Crypto**, Send, "Withdrawal history" | family `withdrawal`, `/withdrawals` | | A saved recipient of payouts: a bank account or a crypto address. | — | **Crypto**, "Recipients"; "Add bank account" in the bank withdrawal form | withdrawal destination, `/withdrawal-destinations` | | A kind of bank payout a scope may use. Read only. | — | "Method" in the bank withdrawal form, listed from `GET /eligible-payout-methods` | payout method, `/payout-methods` (catalog) and `/eligible-payout-methods` (per scope) | | Money moved between your own accounts and your customers' accounts. Nothing leaves the platform. | "move liquidity" | **Balances**, Transfer; **Payments**, "Transfer in (Internal)", "Transfer out (Internal)", "Internal transfer" | family `internal_transfer`, `/internal-transfers` | | Changing one asset into another inside an account. | "Conversion" | **Balances**, Convert; **Operations**, Conversions | families `conversion` and `external_settlement_conversion`; supported pairs at `/conversion-pairs` | | Moving between fiat and crypto in one session. | "On-ramp and off-ramp" | No page of its own | families `on_ramp` and `off_ramp`, `/on-ramp-sessions` and `/off-ramp-sessions` | | A hosted checkout for an order paid in crypto. Beta | — | **Crypto → Checkout** | Not in the public contract: payment requests on the separate Checkout API, see [Crypto checkout](/beta/crypto-checkout) | ### Wallets Neither the landing nor the API has a wallet object; there is no `wallet` resource. What a reader calls a wallet is one of three things: - **The money it holds** is a balance on a master account or a client account ([Accounts](/concepts/accounts)). - **An address to receive crypto** is a crypto funding endpoint: the console lists it on the **Crypto** page under "Deposit addresses", and its copy button is labelled "Wallet address" ([Funding Endpoints](/concepts/funding-endpoints)). - **An outside wallet you pay to** is a withdrawal destination: the console's recipient form asks for its "Wallet address" ([Withdrawal Destinations](/concepts/withdrawal-destinations)). The one place the API itself says wallet is the navigation section key `wallet_balances` (see below), which stands for balances. ### Connected Account Or Client Account A connected account (API: `client`) is the customer; a client account (API: `client_account`) is where that customer's money sits. One connected account can have several client accounts. Balances, deposits and payouts always name a client account, never the connected account. The landing's "client accounts" means the whole feature: an account for every customer. ### Payout Or Withdrawal They are the same operation. The landing says payout; the console says both ("Payout (External)" on **Payments**, Withdraw on **Balances**); the API says `withdrawal`. On the console's **Payments** page, "Payout (External)" is a withdrawal, while "Transfer out (Internal)" is an internal transfer to another of your accounts: no money leaves the platform. ### Funding Endpoint Or Deposit Instruction Both tell a sender where to pay. A funding endpoint is set up once per account and asset: every crypto deposit address, and fiat routes that open a dedicated account. A deposit instruction uses the platform's shared bank account and adds a payment reference that the sender must put on the transfer. Which one a fiat route uses is shown by `attribution_mode` in `GET /funding-routes/readiness`: `virtual_account` for a funding endpoint, `payment_reference` for a deposit instruction. ## Operations And Controls | Plain meaning | Landing | Console | API | | --- | --- | --- | --- | | Any money movement, tracked with one set of statuses. | "operation records", "clear operation states" | **Operations**; **Payments** for deposits, payouts and transfers | operation families such as `deposit`, `withdrawal`, `conversion`, with a shared `status` ([Operations](/concepts/operations)) | | Money that reached its destination: the successful final status. | "Settlement", "Clear final states" | "Settled" | `settled`, with `settled_at` | | A rule that decides which operations need sign-off. | "Controls", "limits" | **Policies** (under More), "Policy Rules" | `policy_rule`, `/policy-rules` | | A sign-off request for one operation, decided by eligible people. | "approvals", "Approval records" | **Approvals**; Compliance, "Payment approvals" | `approval`, `/approvals` | | A single-use confirmation a person gives for one sensitive command. | — | A confirmation step before a withdrawal or conversion is sent | action token from `POST /action-tokens`, sent in `X-Action-Token` | | Verification of your business and of each customer. | "compliance built in" | **Compliance**, Onboarding, "Your business" and "Connected accounts" | `GET /kyc/status`, `GET /kyc/clients/{client_id}/status` | | A person who signs in to the console, and what they may do. | "Roles" | **Users**, **Roles** | `human_actor` at `/users`; `role`; `role_assignment` | | Fee terms agreed with your business. | — | **Fee Manager** (under More) | `/enterprise-commercial-agreements`; `fee_summary` on each operation | ## Integration | Plain meaning | Landing | Console | API | | --- | --- | --- | --- | | Credentials your systems use to call the API, limited to the roles you grant. | "API key", "Scoped service accounts" | **API Keys** (under More), "Client ID" and "Client Secret" | `service_account`, `/service-accounts`; exchange its credentials for an access token at `POST /oauth/token` | | A URL on your side that receives events as they happen. | "Webhooks" | **Webhooks** (under More), "Webhook Subscriptions" | `webhook_subscription`, `/webhook-subscriptions`; each send is a `webhook_delivery` | | A record of something that changed, readable at any time. | "event history", "structured event streams" | No page of its own | `event`, `GET /events` | | Files of operations for reconciliation. | "internal reporting" | **Reporting**, "Operations Exports" | `/operations-activity-exports` | | Who did what in the console and the API. | "activity history" | Compliance, "Audit trail" | `/user-action-audit-entries/search`, `/user-action-audit-exports` | ### API Key Or Service Account The console calls it an API key; the API calls it a service account. Creating one gives a client ID and a client secret, shown once. Your server sends them to `POST /oauth/token` and gets a short-lived access token, which is what each API call carries. See [Authentication](/integrations/authentication). ## Navigation Sections In The API The console builds its sidebar from the capabilities you hold in the selected business or connected account, which it reads from `GET /me/capabilities`. `GET /me/navigation` returns six section keys, each with a `visibility` of `enabled`, `read_only` or `hidden`. It returns no display labels. The table gives the console pages closest to each key, judged by the capabilities the section requires. | Section key | Closest console pages | | --- | --- | | `wallet_balances` | Balances | | `treasury` | Balances actions (Transfer, Convert, Withdraw), Fiat Funding, Crypto, Approvals | | `transactions` | Operations, Payments, Approvals | | `end_clients` | Connected Accounts, Client Accounts | | `access_control` | Users, Roles | | `integrations` | API Keys, Webhooks | ## Words You Will Not Find In The API These words come up in plans and conversations but name nothing in the public API contract. Use what exists instead. - **Refund.** The platform API has no refund operation. To send money back, save the payer's bank account or address as a withdrawal destination and make a withdrawal to it. An operation still waiting in `pending_approval` or `pending_compliance` can be cancelled instead; see [Operations](/concepts/operations). - **Invoice.** The platform API has no invoice object. To know who paid, give each payer a funding endpoint or a deposit instruction with its own reference, then match the resulting deposits ([Funding Endpoints](/concepts/funding-endpoints)). On sandbox, you can create a hosted checkout for an order. - **Payment link.** Not in the public contract. The closest thing is a Crypto checkout payment request and its hosted payment page, on a separate API: see [Crypto checkout](/beta/crypto-checkout). - **`confirming` status.** An operation in progress is `executing` (withdrawals and deposits) or `admissible` (conversions, transfers and ramps), or waits in `pending_approval`, `pending_compliance` or, for a deposit, `pending_admission`. - **`refunded` status.** A withdrawal that does not go out ends in `failed`, and its reserved amount goes back to `available`. - **`pending` or `completed` for an operation.** Operations use `requested` and `settled`. `pending` is a status of approvals and webhook deliveries, and `completed` a status of verification, not of operations. - **Wallet.** See [Wallets](#wallets) above. --- # Idempotency And Concurrency > Retry-safe POST requests and endpoint-specific ETag preconditions. Source: https://business-api-docs.youhodler.com/concepts/idempotency-and-concurrency Use `Idempotency-Key` to retry a POST without repeating its effect. Use `If-Match` where an endpoint requires a precondition on the current resource version. The endpoint reference lists whether each header is required. ## Idempotency The edge caches successful responses for eligible POST requests for 24 hours. Some operations require the header; others generate an internal key or accept a body or query key instead. Omitting the header skips the edge response cache and does not by itself make a retry safe. Follow the operation's documented requirements. Credentials are never replayed. Operations that issue one bypass the cache entirely, so each call issues a new credential: `POST /oauth/token`, service-account secret rotation, action tokens, KYC access tokens and client verification sessions, and invitation acceptance. Service-account creation and provisioning are deduplicated instead: a retry with the same key and body returns the created account again, without `client_secret`. The secret appears only in the first response. - Choose a distinct key for each logical request, at most 128 characters long. - Reuse the key and the same body when retrying that request. - The key is scoped to the HTTP method, the concrete URL path and the authenticated caller: its principal, tenant boundary and subject. The only POSTs that accept no bearer token, `POST /oauth/token` and invitation acceptance, bypass the cache. The edge hashes the body, not query parameters; keep query parameters unchanged when retrying. - A completed replay returns the original status and body while the key is retained. A replayed service-account creation omits `client_secret`. - Reusing a key with a different body returns `409 idempotency_conflict`. Concurrent duplicates wait for the original transaction and then replay its result. For example, creating a client requires a key: ```http POST /clients Authorization: Bearer Idempotency-Key: client-create-001 Content-Type: application/json ``` See [Create client](/api/reference/clients/clients-create) for the body. If a financial operation later fails asynchronously, retrying its original acceptance with the same key still returns that acceptance. A new execution attempt needs a new key after you have inspected the failed operation. ## Concurrency Control Use the current resource ETag on operations whose reference lists `If-Match`. For example, [Update client](/api/reference/clients/clients-update) requires it: ```http PATCH /clients/ Authorization: Bearer If-Match: Content-Type: application/json ``` A mismatched precondition returns `412 precondition_failed`. Re-read the resource, reconcile the intended change, and retry with its current ETag. A missing required header can return `400`. ETags and preconditions are endpoint-specific. Client suspension and financial operation cancellation, for example, do not accept an `If-Match` precondition. Do not assume that every PATCH or lifecycle action performs an ETag comparison. --- # Identity > Actor types, how human actors are sourced (platform-hosted vs federated), acting on behalf of a human via token exchange, and attribution layers. Source: https://business-api-docs.youhodler.com/concepts/identity Identity answers *who is making a call*. Humans and machines are distinct actor types with distinct lifecycles — not one resource with a flag — so the same enterprise can mix human operators, automations, and federated identities without collapsing them into one opaque "user". What an actor is allowed to do lives in [Access](/concepts/access). > **Practical rule:** Use service accounts for machine-to-machine traffic. Use human users for console operators and federated identities. Never share a credential between a human and an automation. ## Actor Types Two first-class actor types are exposed in the public API: - **Human actor** — a real person; can be platform-hosted or federated through an external identity provider - **Service principal** — a non-human caller (integration, automation, service account) ## How Human Actors Are Sourced Two ways of bringing humans into an enterprise: - **Platform-hosted users** — identity lives on the platform; the enterprise creates and manages them through the public API. - **Federated users** — identity lives in a partner IdP. The platform trusts identity assertions from configured providers and JIT-provisions a regular `users/{id}` record on first successful federated auth. Subsequent logins reuse it. Both are first-class human actors in the same model — same role assignments, same approval cases, same governance flows. The difference is only where the identity is sourced and where authentication happens. ## Acting On Behalf Of A Human A backend-to-backend integration does not mean every call is made *as* a service account. Many actions require a real human actor of record — to preserve attribution, satisfy four-eyes rules, keep approval cases meaningful, and keep the audit trail human-anchored. The platform supports this through standard token exchange ([RFC 8693](https://www.rfc-editor.org/rfc/rfc8693)): a service integration presents a federated human's identity assertion and obtains a platform access token whose effective actor is that human, scoped by the human's role assignments — not the service account's. The integration code is the same as a regular machine call; what changes is *who the platform records as the actor of record* and which authorization rules apply. The resulting human token carries the human identity into the platform; a service credential does not substitute for a human decision where governance requires one. The current public edge sets the authenticated principal and subject to that human and does not preserve a separate service transport actor. It rejects `actor_token` exchange and `x-on-behalf-of` headers. ## Attribution Layers A single request can name several distinct parties. The platform stores them separately so audit, approvals, and incident review stay unambiguous: - **Authenticated principal** — who presented credentials and passed authentication - **Subject** — the primary subject of the access token - **Actor** — a separate party acting on behalf of the subject in a delegated request. The public API does not issue delegated tokens, so on public calls, exchanged human tokens included, no separate actor is set and the human is both principal and subject - **Actor of record** — who, in business terms, initiated the action - **Approver** — who approved a sensitive action, when applicable These layers do not have to coincide. They are recorded on operations and events so a later reader can answer not just *what happened* but *who decided what, who carried it, and who approved it*. Identity source (`platform-managed` vs `federated`) is kept explicit on human attribution. ## Client-Scoped Identities In a B2B2X model, an enterprise often manages identities scoped to a specific `Client` rather than to the whole enterprise perimeter. Three composable patterns exist, and an enterprise can mix them — including for the same `Client`: - **Enterprise-driven client users** — the enterprise creates and manages human users scoped to a `Client`. The end client does not log in directly; all human-governed actions on that client flow through enterprise-provisioned identities. - **Client-delegated client users** — the enterprise delegates user management to the client. Client-scoped users authenticate to the platform directly and act within their own `Client` perimeter. The enterprise remains the relationship owner. - **Enterprise machine principals with cross-client scope** — a service principal scoped across a subset or all of the enterprise's clients, for programmatic access without per-client human users. A single `Client` can carry several patterns at once. Authorization resolves per principal × target perimeter, and audit always names the actor of record alongside the target client and account. ## How This Appears In The API **Request URL — POST** ```http POST /service-accounts ``` **Request Body — application/json** ```json { "description": "Withdrawal automation account", "external_id": "sa-ext-001", "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Response — application/json** ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` --- # Operations > Canonical operation model that unifies multiple financial families behind an OperationView core and family-specific read details with a shared lifecycle. Source: https://business-api-docs.youhodler.com/concepts/operations An operation is one movement of money: a deposit, a withdrawal, a conversion, a transfer between your own accounts, or an on-ramp or off-ramp. Whatever the kind, it reports the same set of statuses, so one field tells you where the money is and whether anyone still has to act. The public money-movement model is centered on `OperationView`. Multiple families use different request bodies, but they converge on one lifecycle shape, one status model, and family-specific read surfaces for operators and integrations. Conceptually, this is the page that turns many endpoints into one execution story. > **Practical rule:** Read family-specific create requests as entry points. Read `OperationView` as the canonical runtime state once the request exists in the system. ## Mental Model An operation starts as a family-specific request, then becomes a canonical readable object with lifecycle, fee, attribution, and approval context. That lets an integrator do two useful things: - submit different financial families through the correct request surface - consume one normalized runtime model after submission ## Family Types The current public families include: - `deposit` - `withdrawal` - `conversion` - `external_settlement_conversion` - `internal_transfer` - `on_ramp` - `off_ramp` ## Lifecycle Status `OperationStatus` tracks the lifecycle from request to outcome, including: - `requested` - `admissible` - `pending_approval` - `pending_admission` - `pending_compliance` - `executing` - `executed` - `partially_settled` - `settled` - `ledger_visible` - `failed` - `cancelled` ### The Usual Path Most operations take the short route below. The full state machine, with the event that marks each step, is in the [transaction lifecycle guide](/guides/transaction-lifecycle). ```mermaid flowchart LR R["requested"] C["Checks: policy, compliance, account"] W["pending_approval or pending_compliance"] A["admissible or executing"] S["settled"] F["failed"] X["cancelled"] R --> C C -->|"passes"| A C -->|"a person must decide"| W C -->|"denied"| F W -->|"cleared"| A W -->|"rejected or expired"| F W -->|"you cancel"| X A -->|"money delivered"| S A -->|"does not complete"| F ``` 1. The operation is recorded as `requested`. 2. The platform checks it against your policy rules, compliance screening and the state of the account. 3. If the checks pass, the operation is on its way. A withdrawal reports `executing`, and its amount is held on the account; a deposit reports `executing` once it is cleared. Conversions, internal transfers and ramp sessions report `admissible` while they run. A create response can already carry this status. 4. If a person has to decide first, it waits in `pending_approval` (one of your approvers, see [Policies and Approvals](/concepts/policies-and-approvals)) or `pending_compliance` (a compliance review). Once cleared, it continues from step 3. A rejected, cancelled or expired approval ends the operation in `failed`. Deposits are the exception: policies do not apply to them, so a deposit never waits in `pending_approval`; it can wait in `pending_compliance` or `pending_admission` (below). 5. `settled` means the money moved and `settled_at` is set. `failed` means it did not, for example because the rail refused a payout; `failure_reason` says why. 6. A cancel request that the platform accepts ends the operation in `cancelled`. Withdrawals, conversions, internal transfers and ramp sessions have a cancel endpoint, and it works only while the operation waits in `pending_approval` or `pending_compliance` (an off-ramp session also while it waits for the customer's crypto). Deposits and external settlement conversions cannot be cancelled. `settled`, `failed` and `cancelled` are final. So is the rarer `partially_settled`: some legs of a multi-leg operation settled and others did not. `executed` and `ledger_visible` are in the enum but are not set today; if you ever read one, treat it as not final and keep reading the operation. `pending_admission` applies to deposits only: the funds have arrived, and the deposit is credited once the receiving account is in order (`admission_hold_reason` says what it waits for). In the console: the **Operations** and **Payments** pages show a status badge. Some statuses are worded for operators: `admissible` is "Ready to process", `executing` is "Processing", `pending_compliance` is "In compliance review" and `pending_admission` is "Waiting for admission". ## Nested Structure `OperationView` is not just an amount and a status. It usually combines: - `account_ref` - `principal_amount` - `fee_summary` - `approval_ref` - `subject_attribution` - `failure_reason` - `family_params` Read that as a layered object: 1. execution boundary 2. monetary intent 3. governance context 4. attribution 5. family-specific details ## Operation View The canonical operation read model includes: - `account_ref` - `principal_amount` - `fee_summary` - `approval_ref` - `failure_reason` - `subject_attribution` - `family_params` This lets integrators render one lifecycle model across multiple financial families. ## How This Appears In The API **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "100.00" }, "rail": "fiat", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Withdrawal read response — 200 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "dispatch_attempt_id": null, "failure_reason": null, "family": "withdrawal", "family_flow_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [], "fill_rate": null, "hold_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": null, "rail": "ethereum", "rail_class": "crypto", "release_transaction_id": null, "settled_at": null, "settlement_evidence": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z", "withdrawal_attempt_id": null } ``` --- # Policies And Approvals > Policy rules, approval decisions, and action tokens for governed operations. Source: https://business-api-docs.youhodler.com/concepts/policies-and-approvals A policy rule is how you decide which payments need a second pair of eyes: for example, any withdrawal above a limit must be approved by people holding a given role before it runs. An approval is that decision. The payment waits until an eligible person approves or rejects it, and nothing moves in between. Control-plane resources determine whether a requested action proceeds as submitted or requires an explicit governance outcome first. The public API exposes policy rules, approval cases, and action tokens as separate resources. > **Public API:** Policy rules and approvals are published with request and response schemas. Use the Policies , Approvals , and Action Tokens references. ## How A Governed Operation Runs The example is a withdrawal started by a person and caught by a rule whose decision is `require_approval`. ```mermaid sequenceDiagram participant I as Initiator participant P as Business API participant A as Approver I->>P: Ask for an action token P-->>I: Single-use token, after MFA if required I->>P: Create withdrawal with X-Action-Token P->>P: Evaluate active policy rules P-->>I: Operation in pending_approval with approval_ref A->>P: Read the approval case A->>P: Approve or reject, after MFA if required P->>P: Resume the operation as the initiator P-->>I: executing, then settled, or failed if rejected ``` 1. **Confirm the command.** A human caller issues an action token with `POST /action-tokens` and sends it in `X-Action-Token` with the create request. The token is single-use and bound to that exact command. Issuing it can require MFA step-up. Service accounts skip this step; it applies to withdrawal, conversion and externally settled conversion creation. 2. **Submit.** The operation is created, for example with `POST /withdrawals`. 3. **Policy decides.** The platform evaluates the active rules for the operation type and scope. A rule's decision is `allow`, `deny` or `require_approval`. 4. **The operation waits.** With `require_approval`, the operation reports `pending_approval` and its `approval_ref` points at the approval case. No funds are reserved while it waits. 5. **An approver decides.** An eligible person reads the case and calls `POST /approvals/{approval_id}/approve` or `POST /approvals/{approval_id}/reject`. The rule sets how many approvals are needed (`threshold`), which role may give them (`approver_role_ref`) and whether the initiator is excluded (`initiator_cannot_approve`). A decision can require MFA step-up. 6. **Execute or stop.** Once the required approvals are collected, the case is `approved` and the operation continues to `executing` and then `settled`. If the case is `rejected`, `cancelled` or `expired`, the operation ends in `failed`. In the console: rules live on the **Policies** page (under More), and waiting cases on the **Approvals** page. An approval's details show "Approvals required", "Why approval is needed" and "Initiator may approve". ## What Belongs Here **Policy rules** declare conditions and a decision for an operation type at a scope. Create a rule with [POST /policy-rules](/api/reference/policies/policy-rules-create), edit its draft with [PATCH /policy-rules/:id](/api/reference/policies/policy-rules-update), then activate it. Update, activate, and retire require `If-Match` for the current version. Reads use `policies.read`, creation uses `policies.create`, and lifecycle changes use `policies.manage`; target scope checks also apply. **Approval cases** hold explicit decisions when governed execution requires review. List or read cases, discover [eligible approvers](/api/reference/approvals/approvals-eligible-approvers), then approve, reject, or cancel through the corresponding action endpoint. Decision capability alone does not establish eligibility: the service also enforces scope coverage and the case's separation-of-duties rules. The operation exposes `pending_approval` and `approval_ref` so an integration can follow the business action while its governance case is resolved. **Action tokens** authorize a specific command for a human caller. Issue one with [POST /action-tokens](/api/reference/action-tokens/action-tokens-create) and submit it in `X-Action-Token` with the matching protected command. Issuance and approval decisions can require MFA step-up; follow an `insufficient_user_authentication` challenge before retrying. Service principals are exempt from the human action-token requirement. The model is built so governance is part of the runtime contract — an integration sees governance outcomes through the same operation and event streams it already consumes, not through a separate administrative side-channel. See the [Governance And Events kickstart](/reference/governance-and-events) for request examples drawn from the published contract. --- # Rail Classes > The fiat-vs-crypto enum that unifies funding endpoints, withdrawal destinations, and deposit instructions under one resource shape with a routing-pair pattern. Source: https://business-api-docs.youhodler.com/concepts/rail-classes `rail_class` is a small typed enum — `fiat` or `crypto` — that lives on every resource that can move money on either kind of payment rail. It exists so the public API can cover both rail families with one unified resource shape instead of two parallel surfaces, and so the same discriminator appears on `FundingEndpoint`, `DepositInstruction`, and `WithdrawalDestination` rather than splitting into rail-specific variants. > **Practical rule:** Read `rail_class` first when you look at a funding endpoint, a withdrawal destination, or a deposit instruction. It tells you which routing block to expect and which one will be `null`. ## Where Rail Class Appears `rail_class` is part of the public contract on: - `FundingEndpoint` — declares whether the inbound route is fiat or crypto - `DepositInstruction` — inherits the rail class of its parent funding endpoint - `WithdrawalDestination` — declares whether the outbound route is fiat or crypto It is also a filter parameter on the corresponding list endpoints, so you can narrow listings to one rail class at a time. ## The Routing Pair Pattern Two parallel routing blocks, one populated per resource: - `fiat_routing` — bank-rail movements (account/IBAN-style routing, settlement coordinates, rail-specific reference fields) - `crypto_routing` — on-chain movements (address/network routing, on-chain identifiers, network-specific destination data) Reading order: 1. Look at `rail_class`. 2. Look at the matching routing block. 3. Treat the other routing block as guaranteed `null`. The benefit is that the resource shape stays stable across both rail classes — no rail-specific variants, no `oneOf` to disambiguate, and every consumer can write one parser that handles both cases. ## How This Appears In The API **Request URL — GET** ```http GET /funding-endpoints?account_ref=client-accounts/44444444-4444-4444-8444-444444444444&rail_class=crypto ``` **Response — application/json** ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" }, { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USD", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": null, "failure": null, "fiat_rail": "fedwire", "fiat_routing": { "asset": "USD", "attribution_mode": "virtual_account", "bank_details": null, "beneficiary_name": null, "fiat_rail": "fedwire", "reference": null }, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "fiat", "status": "provisioning", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` --- # On-Ramp And Off-Ramp > On-ramp and off-ramp as compound cross-rail operation families distinct from plain conversions, deposits, or withdrawals. Source: https://business-api-docs.youhodler.com/concepts/ramps `On-ramp` and `Off-ramp` are first-class compound operation families. An on-ramp converts incoming funds into an account balance; an off-ramp converts account funds for external delivery. The source or target rail can be fiat or crypto, as specified by the request. > **Public API:** Both families support create, list, read, and cancel through On-ramp Sessions and Off-ramp Sessions . Session endpoints return the canonical operation view. ## Session Lifecycle | Action | On-ramp | Off-ramp | | --- | --- | --- | | Create | [POST /on-ramp-sessions](/api/reference/on-ramp-sessions/on-ramp-sessions-create) | [POST /off-ramp-sessions](/api/reference/off-ramp-sessions/off-ramp-sessions-create) | | List for an account | [GET /on-ramp-sessions](/api/reference/on-ramp-sessions/on-ramp-sessions-list) | [GET /off-ramp-sessions](/api/reference/off-ramp-sessions/off-ramp-sessions-list) | | Read current state | [GET /on-ramp-sessions/:id](/api/reference/on-ramp-sessions/on-ramp-sessions-get) | [GET /off-ramp-sessions/:id](/api/reference/off-ramp-sessions/off-ramp-sessions-get) | | Request cancellation | [POST /on-ramp-sessions/:id/cancel](/api/reference/on-ramp-sessions/on-ramp-sessions-cancel) | [POST /off-ramp-sessions/:id/cancel](/api/reference/off-ramp-sessions/off-ramp-sessions-cancel) | Creation requires `ramps.create`, reads require `ramps.read`, and cancellation requires `ramps.manage`, with account scope coverage. List requests name `account_ref`. Use a stable `Idempotency-Key` when creating a session. An on-ramp request carries `amount`, `target_currency`, `source_rail`, and `account_ref`, with optional destination context. An off-ramp request carries `amount`, `target_currency`, `target_rail`, `account_ref`, and the matching typed withdrawal destination. Creation returns `201` with an operation ID and its current status. Follow the read endpoint and operation events until the operation reaches a terminal state; creation alone does not establish completed funding or payout. ## Why Ramps Are Their Own Family Ramps are not synonyms for any single primitive on the platform. The canonical model keeps them distinct from related concepts: - **Not a pure `Conversion`.** A conversion may be embedded as one leg inside a ramp, but a ramp also covers payment/payout method selection, settlement on the fiat side, and (optionally) a hosted initiation step. Collapsing a ramp into a conversion loses that cross-rail context. - **Not just a deposit or a withdrawal.** A direct fiat deposit or crypto withdrawal is a single-rail operation. A ramp explicitly spans both rails as one business action. - **Not a provider checkout or session.** Hosted/embedded UX surfaces (widgets, checkout URLs, session tokens) are optional delivery artifacts. The operation, not the session, is the canonical audit and status resource. ## Canonical Layers Keep these layers separate when integrating: - **Reference availability** — supported corridors: fiat currencies, crypto assets, payment methods, payout methods, countries. - **Pricing** — fee and conversion previews describe non-binding economics. The public API does not expose an executable ramp Quote resource. - **Operation** — the canonical customer-visible business action (`OnRamp` or `OffRamp`), resolved to a master or client account scope. Stable audit and status resource. - **Settlement and outcome** — what actually happened on the fiat/crypto side and what the platform recognized in the ledger. Settlement records are inputs to the operation, not its identity. Hosted-session resources, when used, sit alongside the operation as optional initiation context — never as a substitute for it. ## Composite Fees Ramp economics are composite by nature: a single ramp can carry a payment-method fee, a payout fee, a network fee where relevant, and a conversion spread. The model keeps these breakdowns explicit so an integrator can show the end customer where each component comes from, without flattening everything into a single opaque charge. --- # Rate Limits > How the platform shapes traffic on the public API and how integrations should react to rate-limit signals. Source: https://business-api-docs.youhodler.com/concepts/rate-limits The edge API currently emits informational traffic counters. Integrations should bound concurrency and handle throttling responses when received, while treating these counters separately from an enforced service quota. > **Current behavior:** The current rate-limit interceptor is informational: it does not reject requests when its counter reaches zero. Its headers do not establish an enforced per-tenant or per-endpoint quota. ## Response Headers Successful responses carry: - `X-RateLimit-Limit` — currently `1000` for the informational counter. - `X-RateLimit-Remaining` — decremented on requests and clamped at zero. - `X-RateLimit-Reset` — the counter's reset time as Unix seconds. Its window lasts 60 seconds from initialization or the last reset. Counters are local to each API process and keyed by bearer token. They are not a shared budget across instances or all tokens belonging to an actor. Do not assume these headers are present on error responses or that a zero remaining value will produce `429` or `Retry-After`. ## Retry Behavior - If a response supplies `Retry-After`, wait for the specified delay. Otherwise use bounded exponential backoff with jitter for retryable `429`, `502`, or `503` responses. - Reuse the same **idempotency key** and request body when retrying a create that supports idempotency. See [Idempotency And Concurrency](/concepts/idempotency-and-concurrency). - Keep concurrency and retry counts bounded so repeated failures do not create an unbounded queue of requests. --- # Topology And Refs > Layered tenant topology (Enterprise, Master Account, Client, Client Account) and the typed reference system that identifies each layer in the API. Source: https://business-api-docs.youhodler.com/concepts/topology-and-refs Your business is an enterprise. It keeps its own money in master accounts and serves its customers as connected accounts (API: `client`), each with client accounts that hold that customer's money. Every object has an identifier that says what it is, such as `master-accounts/…` or `client-accounts/…`, so a reference can never be mistaken for another kind. In the console: the sidebar lists your customers under **Connected Accounts**; opening one shows its **Client Accounts**. For the words the console, the landing and the API use for the same objects, see the [glossary](/concepts/glossary). The platform models tenants as a layered topology — relationship boundaries and operating-account boundaries are separate first-class concepts, not variants of one generic `Account`. Every identifier in the public API is a canonical typed reference that makes that layering visible directly on the wire. This gives integrators four concrete advantages: - **Self-describing identifiers** — you can tell at a glance what a value refers to, in code review, in logs, and in support tickets, without consulting a separate type field. - **End-to-end traceability** — the same ref appears unchanged in requests, responses, events, approvals, and audit. One token grep in your logs trails a single entity across the whole platform. - **Type-safe scoping** — operations that expect a topology boundary reject account refs, and vice versa. A whole class of wrong-scope-paste bugs disappears at request validation time. - **Stable across lifecycle** — a ref does not change when a resource is suspended, reactivated, or moved between rails. Reconciliation pipes and external mappings stay correct over the resource's entire life. > **Practical rule:** If a call changes or reads financial activity, prefer `AccountRef`. If a call creates, scopes, or governs tenant relationships, prefer `TopologyRef`. ## The Topology Graph Four canonical resources form the tenant graph: - **`Enterprise`** — root customer relationship boundary (the tenant itself) - **`Master Account`** — primary operating account anchored to an enterprise; balances and tenant-level execution live here - **`Client`** — subordinate relationship boundary inside an enterprise; represents a downstream business subject - **`Client Account`** — subordinate operating account inside a client; balances and client-scoped execution live here The graph layers two parallel ideas: - **Relationship layer** — `Enterprise → Client[]` - **Operating-account layer** — `Enterprise → Master Account[]` and `Client → Client Account[]` ```mermaid flowchart TD E["Enterprise (enterprises/…)"] M["Master Account (master-accounts/…)"] C["Client (clients/…)"] A["Client Account (client-accounts/…)"] E -->|"operating account"| M E -->|"relationship"| C C -->|"operating account"| A ``` The same graph in words: 1. An enterprise (`enterprises/…`) is the root: your business. 2. The enterprise owns one or more master accounts (`master-accounts/…`), where its own balances live. 3. The enterprise has clients (`clients/…`): the connected accounts it serves. 4. Each client owns one or more client accounts (`client-accounts/…`), where that client's balances live. Two disciplines make this layering powerful: - **Relationship boundary is not the same as operating account.** `Client` represents who you are doing business with; `Client Account` is where money for that business actually moves. They are separate resources with separate identifiers, separate lifecycle, and separate audit trails. - **One-to-many by design.** An enterprise can hold multiple master accounts; a client can hold multiple operating accounts. The contract treats this as the canonical shape, not as a future extension — your integration code can rely on the layering being there. The benefit shows up in lifecycle, audit, and reporting: you can see *which client account* moved money under *which client* under *which enterprise*, without reverse-engineering the structure from a flat parent pointer. For balance and execution semantics inside this graph, see [Accounts](/concepts/accounts). ## `scope_ref` — How Topology References Appear In API Calls In the public API, a `TopologyRef` travels under the name **`scope_ref`**. It appears in two places: - **Query parameter** on every list operation that returns resources scoped to a perimeter (`GET /users`, `GET /clients`, `GET /roles`, etc.) - **Request body field** on create operations that place a new resource inside a perimeter (`POST /users`, `POST /clients`, `POST /roles`, etc.) ### Finding your `scope_ref` After issuing an access token (OAuth client credentials), the bearer token is a JWT. Decode the payload — the `b2b2x:tenant_ref` claim holds your topology reference: ```json { "sub": "service-accounts/...", "b2b2x:tenant_ref": "enterprises/c78778b9-b517-4c7b-8393-9db034ab5708", "b2b2x:principal_kind": "service_account", ... } ``` Pass that value verbatim as `scope_ref`: ``` GET /users?scope_ref=enterprises/c78778b9-b517-4c7b-8393-9db034ab5708 ``` ### Which ref format each endpoint accepts Different endpoints constrain which topology level is valid: | `scope_ref` format | Accepted by | |---|---| | `enterprises/{uuid}` | users, clients, roles, approvals, capabilities, master-accounts, identity-providers, events, webhook-subscriptions, withdrawal-destinations, role-assignments, policy-rules | | `clients/{uuid}` | client-accounts, role-assignments, eligible-crypto-networks, eligible-payout-methods, webhook-subscriptions | The pattern in the parameter schema tells you exactly which formats are accepted for each endpoint — a mismatch returns a `400` validation error immediately. ## Mental Model Three ref kinds cover the whole API: - **TopologyRef** — ownership, governance, and perimeter - **AccountRef** — financial execution and balance boundaries - **ResourceRef** — broader pointers used by helper surfaces (events, approvals, audit) that need to reference an existing object without treating it as a scope itself Pick the kind based on what the request is *acting on*. The platform validates the kind before the request even reaches business logic, so mismatches surface as clean validation errors instead of as obscure runtime failures. ## TopologyRef `TopologyRef` identifies a topology boundary: - `enterprises/{uuid}` - `clients/{uuid}` Use `TopologyRef` whenever a request needs a parent, owner, or governance boundary — creating downstream resources, scoping a list, applying a policy, granting a role assignment. The benefit is that every governance-relevant call carries the same shape of identifier, so policy and access logic resolve uniformly across resource families. ## AccountRef `AccountRef` identifies a financial operating account: - `master-accounts/{uuid}` - `client-accounts/{uuid}` Use `AccountRef` for financial execution inputs: - withdrawals - conversions - internal transfers - ramp sessions The benefit is that the same account ref drives execution and balance visibility — submit a withdrawal against `client-accounts/55…`, then read balances on `client-accounts/55…`, then trace the resulting event on `client-accounts/55…`. One identifier, one entity, one trail. ## ResourceRef `ResourceRef` is the broader reference shape used by audit, event, and helper surfaces — the ones that need to *point at* an existing resource without implying that the target is itself a topology or execution boundary. Concrete examples: - an event payload referencing the operation it describes - an approval case referencing the resource whose change is under review - an audit entry referencing the actor or scope a decision was about This keeps helper surfaces flexible (they can refer to any first-class object) without diluting the meaning of `TopologyRef` and `AccountRef` in the parts of the API where scope semantics matter. ## How This Appears In The API **Request Body — application/json** ```json { "display_name": "Acme Corp", "external_id": "ext-client-0042", "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "100.00" }, "rail": "fiat", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` --- # Withdrawal Destinations > Durable outbound routes for a tenant: rail class, asset, and the relationship between withdrawal destinations and withdrawal operations. Source: https://business-api-docs.youhodler.com/concepts/withdrawal-destinations A withdrawal destination is a saved recipient: a bank account or a crypto address that money can be paid out to. You save it once and then name it in each payout, so the recipient's details are entered and checked in one place. A `WithdrawalDestination` describes a route money can leave the platform on behalf of a tenant. It binds an owner (`scope_ref`, an enterprise or a client), a rail class (`fiat` or `crypto`), and the routing details the platform uses when a withdrawal is executed. Withdrawal destinations are configuration objects, not transactions. They define the outbound surface; withdrawals are what flow through that surface at runtime. > **Practical rule:** Treat a withdrawal destination as the durable outbound contract for a tenant. Treat withdrawals as the per-event executions that target it. ## Mental Model A withdrawal destination answers three questions for the platform: - **Who is withdrawing?** — `scope_ref` resolves to an `Enterprise` or a `Client`. A fiat destination is registered with the `account_ref` it pays out from. - **On which rail?** — `rail_class` is either `fiat` or `crypto`. - **To where?** — routing details specify the external address, account, or beneficiary the rail will deliver funds to. Routing details (`fiat_routing` or `crypto_routing`) carry the rail-specific configuration the platform needs to dispatch funds to the correct external target. ### Money Out, Step By Step ```mermaid flowchart LR A["Account: available balance"] D["Withdrawal destination: saved bank account or crypto address"] O["One-time crypto address sent with the request"] W["Withdrawal operation"] R["Recipient: a bank account or an external wallet"] A -->|"amount"| W D -->|"saved recipient"| W O -->|"crypto only"| W W -->|"settled"| R ``` 1. **Save the recipient.** `POST /withdrawal-destinations` registers a crypto address (asset, network, address, optional memo and label) under a `scope_ref`, or a bank account under an `account_ref`. For fiat, `GET /eligible-payout-methods` lists the payout methods open to an enterprise or client. 2. **Create the payout.** `POST /withdrawals` names the paying `account_ref`, the `amount` and the `rail`. A crypto withdrawal points at a saved recipient with `destination_id`, or carries a one-time `destination` and `network` in the request. A fiat withdrawal points at a saved recipient with `withdrawal_destination_id`. 3. **Checks run.** Policy rules and compliance screening apply; the withdrawal can wait in `pending_approval` or `pending_compliance`. See [Policies and Approvals](/concepts/policies-and-approvals). 4. **The rail sends.** While the withdrawal is `executing`, its amount is `held` on the account. See [how a hold moves](/concepts/accounts#how-a-hold-moves-through-an-operation). 5. **Outcome.** `settled` means the payment was sent and the hold is consumed. `failed` means it was not, and the hold is released. Sandbox-only On sandbox, a fiat destination waiting for review is approved with `POST /sandbox/withdrawal-destinations/{destination_id}/review`, and a dispatched fiat withdrawal is moved to `settled` or `failed` with `POST /sandbox/withdrawals/{withdrawal_id}/settlement`. Crypto settlement cannot be simulated there. See [Sandbox simulations](/guides/sandbox-testing). In the console: saved crypto recipients are on the **Crypto** page under Recipients, and Send creates the withdrawal. A bank payout starts from Withdraw on the **Balances** page, where "Add bank account" saves the recipient. On the **Payments** page a withdrawal is listed as "Payout (External)". ## Lifecycle A withdrawal destination moves through these lifecycle states: - `active` — available as a target for new withdrawals - `disabled` — temporarily not selectable for new withdrawals - `retired` — terminal; no longer in use Disabling a destination prevents new withdrawals against it but does not affect withdrawals already in flight. ## Relationship To Other Resources Read the layering in this order: 1. `WithdrawalDestination` — the durable outbound route for a tenant 2. `Withdrawal` — a per-event execution that targets a specific destination Many withdrawals typically share one destination over its lifetime, in the same way deposits share a funding endpoint on the inbound side. ## How This Appears In The API **Request URL — GET** ```http GET /withdrawal-destinations?scope_ref=clients/44444444-4444-4444-8444-444444444444&rail_class=crypto ``` **Response — application/json** ```json { "items": [ { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` --- # Bootstrap Enterprise Access > End-to-end guide for bootstrapping enterprise admin access, including auth, users, roles, and service accounts. Source: https://business-api-docs.youhodler.com/guides/bootstrap-enterprise-access This guide covers the minimal control-plane sequence for an enterprise integration. > **Purpose:** This is the shortest path from enterprise admission into an operable tenant control plane with service access, human access, and governance surfaces in place. ## Sequence **01. Issue an access token** _OAuth client credentials_ [API Reference](/api/reference/auth/oauth-token) Authenticate the integration and establish the bearer token that will back subsequent control-plane calls. **02. Read or admit the enterprise perimeter** _Enterprise admission and tenant boundary_ [API Reference](/api/reference/enterprises/enterprises-list) Establish the tenant topology boundary before creating identities, policies, or downstream clients inside it. **03. Create service accounts** _Backend-to-backend access_ [API Reference](/api/reference/service-accounts/service-accounts-create) Create service principals for server-side integrations that need non-human access to the public API. **04. Create users** _Operator access_ [API Reference](/api/reference/users/users-create) Add human actors that need direct tenant-facing access for operational review, setup, or governance tasks. **05. Define roles, assignments, and policies** _Authorization and controls_ [API Reference](/api/reference/roles/roles-list) Bind actor permissions and operational restrictions before enabling sustained financial activity. ## Minimal Token Request ```bash curl -X POST "$BASE_URL/oauth/token" \ -H "Content-Type: application/json" \ -d '{ "grant_type": "client_credentials", "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "replace-me" }' ``` After token issuance, move into client and account topology setup. ## Extracting Your Scope Reference The `access_token` in the response is a JWT. Before making governance calls, find your tenant reference: the topology perimeter that endpoints taking a `scope_ref` parameter expect. Decode the JWT payload (the middle part, base64url-decoded) and find the `b2b2x:tenant_ref` claim: ```json { "sub": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "b2b2x:tenant_ref": "enterprises/c78778b9-b517-4c7b-8393-9db034ab5708", "b2b2x:principal_kind": "service", "b2b2x:identity_source": "platform-managed" } ``` `sub` is the bare service account id, the same value as your `client_id`. `b2b2x:tenant_ref` identifies your tenant boundary. Pass it as `scope_ref` where the endpoint declares that parameter. Other operations use `account_ref`, `parent_ref`, or a path identifier; follow their endpoint reference: ``` GET /users?scope_ref=enterprises/c78778b9-b517-4c7b-8393-9db034ab5708 POST /users { "scope_ref": "enterprises/c78778b9-...", ... } ``` > **Start from the tenant boundary:** Use the tenant reference when addressing the enterprise itself. Operations within a client can require that client reference instead. The endpoint defines the accepted reference kinds, and your grants determine which resources you can address. --- # Create And Fund A Client > End-to-end guide for creating a client, attaching a client account, and funding it through internal transfers. Source: https://business-api-docs.youhodler.com/guides/create-and-fund-a-client This guide covers the common downstream onboarding path. > **Why this flow matters:** It establishes the downstream financial perimeter before live operations such as withdrawals, conversions, or ramp sessions begin. ## Sequence **01. Create the client** _Downstream tenant perimeter_ [API Reference](/api/reference/clients/clients-create) Create the downstream operating entity inside the enterprise topology before you allocate accounts or balances to it. **02. Read or create the client account** _Financial operating account_ [API Reference](/api/reference/client-accounts/client-accounts-list) Confirm the account surface that will receive liquidity and later execute client-scoped financial operations. **03. Read master account balances** _Source liquidity_ [API Reference](/api/reference/balances/master-accounts-balances) Inspect the enterprise-side balance surface that will fund the downstream client account. **04. Create the internal transfer** _Master account to client account_ [API Reference](/api/reference/internal-transfers/internal-transfers-create) Move liquidity from the enterprise-controlled account perimeter into the client-controlled account perimeter. **05. Confirm client balance visibility** _Post-distribution verification_ [API Reference](/api/reference/balances/client-accounts-balances) Verify that the downstream operating account now exposes the expected balance state before enabling live client operations. --- # Events And Webhooks Integration > End-to-end guide for subscribing to events through webhook endpoints and reading the event history. Source: https://business-api-docs.youhodler.com/guides/events-and-webhooks This guide combines pull-based event reads with push-based webhook delivery. > **Recommended pattern:** Use `webhook-subscriptions` for near-real-time delivery and `events` for replay, traceability, and reconciliation. ## Setup **01. Register a webhook endpoint** _Outbound delivery target_ [API Reference](/api/reference/webhook-subscriptions) Create the subscription surface that the platform will use for event delivery into the enterprise integration boundary. **02. Persist subscription identity and ETag** _Lifecycle-safe updates_ [API Reference](/api/reference/webhook-subscriptions) Keep the subscription identifier and current concurrency token so updates, pause, resume, and delete operations remain safe and intentional. **03. Handle delivered event types** _Push delivery path_ [API Reference](/api/reference/webhook-subscriptions) Process delivered events in the integration system, but treat delivery as a transport layer rather than the long-term audit system of record. **04. Backfill or audit through events** _Pull-based traceability_ [API Reference](/api/reference/events) Use the events API to recover after failures, backfill missed delivery, or trace operational history independently from webhook success. ## Operational Rule Treat webhooks as the delivery channel and events as the audit source. --- # Sandbox testing > Sandbox simulation routes for ARS, EUR, USD, CHF and crypto, which statuses to wait for before each one, and an Argentine peso deposit example. Source: https://business-api-docs.youhodler.com/guides/sandbox-testing > **Status: Sandbox-only.** Everything on this page works on sandbox only. Simulations let you supply an external review or transfer outcome and then observe the platform's normal processing. They require a sandbox account, a bearer token with `sandbox_simulator.run`, and access to the target resource. All six simulation routes return **404 in production**. Use the [Sandbox API reference](/api/reference/sandbox), [sandbox OpenAPI YAML](/openapi-sandbox.yaml), or [sandbox OpenAPI JSON](/openapi-sandbox.json). The shared [OpenAPI download](/openapi.yaml) excludes these routes. ## Currency and route support Sandbox support depends on the provider selected by the deployed route binding. New ARS endpoints use BIND; new EUR/USD endpoints use Conduit; CHF uses the sandbox fiat simulator (mock-fiat), a stand-in provider that exists on sandbox only. Older ARS CVUs issued by mock-fiat continue to use their original simulator. | Currency / asset | `rail_class` | `routing.fiat_rail` | Provider / receive route | Incoming transfer | Issuance review | Destination review / payout settlement | | --- | --- | --- | --- | --- | --- | --- | | ARS (Argentine peso) | `fiat` | `local_bank_transfer` | BIND / Argentine CVU | Yes | No | No | | EUR | `fiat` | `sepa_credit_transfer` | Conduit / virtual account with IBAN | Yes | Yes | Yes | | USD | `fiat` | `fedwire` | Conduit / virtual US bank account | Yes | Yes | Yes | | USD | `fiat` | `swift` | Conduit / virtual account with SWIFT details | Yes | Yes | Yes | | CHF | `fiat` | `swift` | Sandbox fiat simulator / virtual account with a Swiss IBAN | Yes | Not needed: active at once | Not needed: a destination is active at once and a payout settles by itself | | Crypto (for example, USDC) | `crypto` | Not applicable; use `routing.network` | Eligible custody provider / active crypto endpoint | If the provider supports simulation | No | No | For fiat endpoint creation, send `routing.asset` and `routing.fiat_rail` from the table. For crypto, send `routing.asset` and `routing.network`; discover available pairs through [Eligible crypto networks](/api/reference/crypto-networks/eligible-crypto-networks-list). An asset appearing in the catalog does not guarantee every rail or simulation is available to your account. Conduit endpoints can remain under review until you call the issuance-review simulation. The same provider supports destination review and payout settlement; use the ordinary resource reads to observe each result. Conduit pays out only from a master account that already holds bank details in the payout currency, to a bank account in your company's own name. BIND and legacy mock-fiat support incoming transfers only; the CHF simulator also pays out, to an IBAN only. An unsupported route returns `422 simulation_not_supported_for_route`. For a fiat target the platform checks the target's state before it asks the provider, so a target that is not ready returns `409 simulation_target_not_ready`, even on a route that cannot simulate that event. A request the simulated provider refuses returns `422 simulation_rejected`. Both BIND and Conduit read the profile of the account holder when they provision an endpoint: your enterprise for a master account, the parent connected account (API: `client`) for a client account. For a client account, approve that connected account's verification with [Simulate client verification review](/api/reference/sandbox/sandbox-clients-kyc-review); the rest of this section is about your enterprise. `POST /sandbox/enterprises/{enterprise_id}/kyb-review` with `{"outcome":"approved"}` fills that applicant with synthetic Argentine company data, including a valid CUIT and a Buenos Aires address, and approves it. An approval opens the applicant if your business has none yet; a rejection (`"rejected"`) needs one, which `POST /kyc/access-token` opens, and returns `409 simulation_target_not_ready` without it. One approval call walks the applicant through every verification level, one after another, in the background. It usually finishes in about two minutes and stops trying after ten. Follow it on `GET /enterprises/{enterprise_id}`: `kyb_state` moves through `in_progress`, `submitted` or `in_review` for each level, then `form_k_ready` (every level passed, the final declaration form is next), then `verified`; `kyb_stage` turns `verified` at the same time, and `admission_state` changes from `admitted` to `operational`. A second call while the first runs returns `409 simulation_target_not_ready`. The international-account intake for USD and EUR is a separate level: after `POST /kyc/international-intake/prepare`, call the same simulation again. The fill adds only what is missing; every company field the applicant already holds is kept. If you entered your own company details, they are what the providers read: a company address outside Argentina fails a BIND endpoint with `party_not_supported`, and missing company facts fail it with `party_profile_incomplete`. ## ARS deposit example ### 1. Create an ARS funding endpoint Before provisioning a new ARS CVU, approve the account holder's verification as described above, so BIND can read an Argentine company profile: your enterprise's KYB for a master account, the connected account's for a client account. If the profile is incomplete or not Argentine, the endpoint becomes `failed` with `failure.code` set to `party_profile_incomplete` or `party_not_supported`. A CVU carries its own legal terms. A human access token must accept them before the create request: list them with `GET /legal/requirements?trigger=payment_account_cvu` and accept the pending documents through [Record legal acceptances](/api/reference/legal/legal-acceptances). Until then the create returns `422 not_admissible` with `data.reason` `legal_acceptance_required` and the documents to accept. A service-account token skips this check. Use an active account belonging to your sandbox enterprise. Replace the account reference below with your own. Each new request needs its own idempotency key. **Create the receive route — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/funding-endpoints Authorization: Bearer Idempotency-Key: ars-endpoint-001 Content-Type: application/json ``` ```json { "rail_class": "fiat", "account_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "routing": { "asset": "ARS", "fiat_rail": "local_bank_transfer" } } ``` See [Create funding endpoint](/api/reference/funding-endpoints/funding-endpoints-create). Save the returned `id`. Read the endpoint until its `status` is `active` and its `fiat_routing.bank_details` contains the receive coordinates. The CVU is published as `account_number` in those bank details. **Read the endpoint — GET** ```http GET https://b2b2x-sandbox.youhodler.com/api/funding-endpoints/?account_ref=client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1&rail_class=fiat Authorization: Bearer ``` ### 2. Simulate an incoming ARS transfer Use the returned funding endpoint id in the URL and the same `account_ref`. The endpoint determines the rail; the simulation body does not take `fiat_rail`. Money uses `value` as a decimal string, paired with `currency`. **Simulate a 4.5 million peso deposit — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/sandbox/funding-endpoints//incoming-transfers Authorization: Bearer Idempotency-Key: ars-deposit-001 Content-Type: application/json ``` ```json { "rail_class": "fiat", "account_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "amount": { "value": "4500000.00", "currency": "ARS" } } ``` A successful request returns `202 Accepted` with this shape: ```json { "simulation_id": "ddddddd4-dddd-4ddd-8ddd-ddddddddddd4", "accepted_at": "2026-10-22T10:00:00.000Z" } ``` Acceptance means processing has started. Observe the resulting deposit through [List deposits](/api/reference/deposits/deposits-list) and the account's [balances](/api/reference/balances/client-accounts-balances). Reuse the same idempotency key when retrying the same simulation; use a new key for a new deposit. BIND accepts positive ARS values with at most two decimal places that remain exact when represented by its numeric notification format; values that lose precision, and a currency other than the endpoint's, are rejected with `422 simulation_rejected`. It has no fixed `1000000000` cap. That limit belongs to legacy mock-fiat only; Conduit applies its own provider rules. The ARS simulator ignores the optional `reference`, so reconcile using the deposit resource and provider evidence rather than that field. For crypto incoming simulations, use the same `/incoming-transfers` route with `rail_class: "crypto"`, the crypto endpoint's account and currency, and omit `reference`. ## From signup to a credited deposit 1. Create a sandbox workspace through signup and obtain an API access token. Follow [Authentication](/api/reference/auth) for token issuance and [KYC](/api/reference/kyc) to start the workspace's verification flow with `POST /kyc/access-token`. 2. Simulate approval of your own enterprise using `POST /sandbox/enterprises/{enterprise_id}/kyb-review` with `{"outcome":"approved"}`. It fills the applicant's missing company data with synthetic Argentine details and approves every level, keeping any details you entered yourself. A `202` response means the simulation was accepted; processing continues asynchronously, and another press for the same enterprise returns `409 simulation_target_not_ready` while it runs. Read `GET /enterprises/{enterprise_id}` until `admission_state` is `operational` (usually about two minutes; see above for the states in between). If it is not `operational` after 15 minutes, press once more; if that does not finish either, write to [business@youhodler.com](mailto:business@youhodler.com) with the enterprise id. 3. If testing a connected account, create the client and its verification session through the normal APIs. Call `POST /sandbox/clients/{client_id}/kyc-review` with `{"outcome":"approved"}`. For a company it walks every level like the enterprise review. Read `GET /clients/{client_id}` until `kyb_stage` (a company) or `kyc_stage` (a person) is `verified`; that is when money can move to the client's accounts. Complete the client's normal account setup before proceeding. 4. Create a [funding endpoint](/api/reference/funding-endpoints) for the selected account. If fiat issuance waits for an external review, call `POST /sandbox/funding-endpoints/{funding_endpoint_id}/issuance-review` with `rail_class`, `account_ref`, and `outcome: "approved"`. Poll the ordinary funding endpoint read until it is active. Crypto endpoints do not support issuance review. 5. Send an incoming-transfer simulation as below. Follow `GET /deposits` for the selected `account_ref` and read that account's balances. The deposit goes from `requested` to `executing` to `settled`. Screening and admission checks still run: a deposit in `pending_admission` waits until the account can be credited (`admission_hold_reason` says why) and then continues by itself, and one in `pending_compliance` waits for a review that sandbox cannot simulate. Deposits never wait for an approver. ```bash curl -X POST "https://b2b2x-sandbox.youhodler.com/api/sandbox/funding-endpoints/$FUNDING_ENDPOINT_ID/incoming-transfers" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $INCOMING_TRANSFER_KEY" \ -d '{"rail_class":"fiat","account_ref":"master-accounts/00000000-0000-4000-8000-000000000001","amount":{"value":"100.00","currency":"USD"},"reference":"Sandbox deposit"}' ``` Replace the example account reference with the endpoint's owning account. The endpoint must receive the requested currency. For a crypto deposit use `rail_class: "crypto"` and omit `reference`. ## From balance to a settled withdrawal 1. Create a [withdrawal destination](/api/reference/withdrawal-destinations) using the normal API. For USD and EUR (Conduit), register it on a master account that already has bank details in that currency, for a bank account in your company's own name; see [Convert ARS to USD and wire it abroad](/use-cases/ars-to-usd-abroad#step-4--register-your-usd-bank-account-abroad). A destination under review reads `disabled`; call `POST /sandbox/withdrawal-destinations/{destination_id}/review` with `{"account_ref":"","outcome":"approved"}`, then read the destination until it is `active`. 2. Create a [withdrawal](/api/reference/withdrawals) through the normal flow, including any required preview, [action token](/api/reference/action-tokens), fresh authentication and approval. Read `GET /withdrawals/{withdrawal_id}` until its `status` is `executing`: the amount is held and the payout is handed to the provider. Before that it can be `requested`, `pending_approval` or `pending_compliance`. There is no separate status for "sent to the bank", and the platform does not set `executed`. 3. Call `POST /sandbox/withdrawals/{withdrawal_id}/settlement` with `{"outcome":"settled"}`. A `409 simulation_target_not_ready` means the provider has not accepted the payment yet: retry with the same `Idempotency-Key` after a few seconds. Observe `GET /withdrawals/{withdrawal_id}` until it is `settled`. To test failure, use `{"outcome":"failed","reason":"Sandbox test"}`; the withdrawal becomes `failed` and the held amount returns to `available`. Crypto settlement and an already-final withdrawal cannot be simulated here, and a CHF payout settles without this call. ## What to observe | Simulation | Ordinary resource reads | Public webhook events | | --- | --- | --- | | Enterprise KYB review | `/kyc/flow`, `/kyc/status` | `kyc.verification.reviewed.v1`; read the resource for the resulting stage | | Client KYC review | `/kyc/clients/{client_id}/status` | `kyc.verification.reviewed.v1` | | Fiat funding endpoint issuance | `/funding-endpoints/{funding_endpoint_id}` | No dedicated issuance event in the public catalog; poll the endpoint | | Incoming transfer | `/deposits`, the account's balances | `rails.deposit.detected.v1`, `operations.deposit.*.v1`; successful credit reaches `operations.deposit.settled.v1` | | Fiat withdrawal destination review | `/withdrawal-destinations/{destination_id}` | No dedicated destination-review event in the public catalog; poll the destination | | Fiat withdrawal settlement | `/withdrawals/{withdrawal_id}` | `operations.withdrawal.settled.v1` or `operations.withdrawal.failed.v1` | Use the resource's normal query parameters, including `account_ref` and `rail_class` where required. Subscribe through [Webhook Subscriptions](/api/reference/webhook-subscriptions), and discover the current public event catalog through [Events](/api/reference/events). `POST /webhook-subscriptions/{subscription_id}/test` checks webhook delivery without changing financial state. ## Retries and unsupported scenarios Each simulation returns `202 {simulation_id, accepted_at}`. Choose a separate `Idempotency-Key` for each logical simulation and reuse it when retrying that same action. The accepted simulation ID is not a deposit or withdrawal ID; find the resulting operation through its ordinary resource read. `409 simulation_target_not_ready` means the target has not reached the point where that external outcome can be supplied. `422 simulation_not_supported_for_route` means the target route does not support that simulation. `422 simulation_rejected` means the simulated provider refused the request, such as an ARS amount BIND cannot carry exactly. Resolve the missing setup, correct the request, or choose a supported route before retrying. There is no guarantee that every configured fiat route supports every simulation. --- # Transaction lifecycle and webhooks > Operation statuses for deposits, withdrawals, conversions, internal transfers and ramps: which are final, which wait on you, the webhook events, signature verification, retries, and how to reconcile after a missed webhook. Source: https://business-api-docs.youhodler.com/guides/transaction-lifecycle > **Status: In the API.** Every status, event type and endpoint on this page is in the public API contract. Sandbox-only steps are marked. You move money through the API and need two answers: **when is a payment final**, so you can credit a customer or release goods, and **how do you keep your own records in step** when a notification is late or lost. This page is for the developer who builds that sync and for the operator who reads the statuses in the console. The short version: - Final success is `settled`. Final without success is `failed` or `cancelled`. `partially_settled` is final too and needs a person to look. - There is no `pending`, `confirming`, `completed` or `refunded` status on an operation, and there is no refund operation. See [the vocabulary mapping](#if-you-expect-pending-confirming-completed-failed-refunded). - Webhooks tell you quickly; reads tell you reliably. Build both: handle events as they arrive and reconcile from the API on a schedule. For the model behind the statuses read [Operations](/concepts/operations); for the split between the event history and webhook delivery read [Events and webhooks](/concepts/events-and-webhooks). ## One status model for every money movement Deposits, withdrawals, conversions, internal transfers and on-ramp or off-ramp sessions all report the same `status` field with the same twelve values. A family uses only part of the set (see [Differences per family](#differences-per-family)). ```mermaid stateDiagram-v2 [*] --> requested requested --> pending_approval: approval required requested --> pending_compliance: compliance review requested --> pending_admission: deposit, account not ready requested --> admissible: accepted requested --> executing: withdrawal or deposit accepted requested --> failed: denied pending_approval --> pending_compliance: approved, then review pending_approval --> admissible: approved pending_approval --> executing: withdrawal approved pending_approval --> failed: rejected or expired pending_approval --> cancelled: cancelled pending_compliance --> admissible: cleared pending_compliance --> executing: withdrawal or deposit cleared pending_compliance --> failed: denied pending_compliance --> cancelled: cancelled pending_admission --> pending_compliance: account ready, then review pending_admission --> executing: account ready pending_admission --> failed: refused admissible --> settled admissible --> partially_settled admissible --> failed admissible --> cancelled: off-ramp before funds arrive executing --> settled executing --> failed settled --> [*] partially_settled --> [*] failed --> [*] cancelled --> [*] ``` The same flow as steps: 1. An operation starts as `requested`. You create it (withdrawal, conversion, internal transfer, ramp session), or the platform creates it when a rail detects incoming funds (deposit). 2. The platform checks it. If a policy rule needs an approver it becomes `pending_approval`. If compliance has to review it, it becomes `pending_compliance`. An operation can pass through both, approval first. A deposit whose account cannot be credited yet becomes `pending_admission`. 3. Once the checks pass, the operation is in flight: a withdrawal or a deposit is `executing`; a conversion, internal transfer or ramp session is `admissible`. 4. It ends in exactly one final status: `settled`, `partially_settled`, `failed` or `cancelled`. A final status never changes. 5. A denied, rejected or expired check ends the operation as `failed`. A cancellation ends it as `cancelled`. When a check denies the operation while you create it, the create call itself returns an error with code `not_admissible` (see [Errors](/concepts/errors)). ### What each status means | Status | Group | What it means for you | Final | | --- | --- | --- | --- | | `requested` | In flight | Recorded. The platform is running its checks. You mostly see it in the `…requested.v1` event; the create response already carries the next status. | No | | `pending_approval` | Waiting on you | A policy rule requires an approver. `approval_ref` carries the approval id and its expiry. | No | | `pending_compliance` | Waiting on compliance | A compliance review is open; `compliance_assessment_ref` is set. There is nothing to call. | No | | `pending_admission` | Waiting on you | Deposits only. The funds arrived, but the receiving account may not be credited yet. `admission_hold_reason` says why. | No | | `admissible` | In flight | Conversions, internal transfers and ramp sessions: accepted and handed to execution. For an off-ramp session it also covers the wait for the customer's crypto. | No | | `executing` | In flight | Withdrawal: sent for payout; the amount is held on the account. Deposit: cleared and being credited. | No | | `executed` | In flight | In the enum, but the platform does not set it today. If you ever read it, treat it as in flight. | No | | `settled` | Final, success | The money moved. `settled_at` is set. Safe to credit your customer or release goods. | Yes | | `partially_settled` | Final, needs attention | Some legs of the operation settled and others did not; `failure_reason` is set. Never reported for a withdrawal or a deposit. | Yes | | `failed` | Final, no success | The operation did not complete. `failure_reason` says why. A failed withdrawal releases the amount it held. | Yes | | `cancelled` | Final, no success | Stopped before anything executed, through the family's cancel route. | Yes | | `ledger_visible` | In flight | In the enum, but the platform does not set it today. It is meant for a conversion whose ledger entry exists while its route has not finished. If you ever read it, treat it as not final and keep reading the operation. | No | > **Write your handler against the groups:** Treat `settled`, `partially_settled`,{' '} `failed` and `cancelled` as final, and every other value as not final. Then a status you have not seen before cannot make you credit a customer early. A conversion whose route needs manual recovery can also stay `admissible` longer than usual. Keep reading it until it reaches a final status. ### Differences per family | Family | Who creates it | Path it takes | Statuses it never reports | Cancel route | | --- | --- | --- | --- | --- | | Deposit | The platform, when a rail detects incoming funds | `requested`, optionally `pending_admission` and `pending_compliance`, then `executing`, then `settled` or `failed` | `pending_approval`, `admissible`, `cancelled`, `partially_settled` | None | | Withdrawal | You | `requested`, optionally `pending_approval` and `pending_compliance`, then `executing`, then `settled` or `failed` | `pending_admission`, `admissible`, `partially_settled` | [Cancel withdrawal](/api/reference/withdrawals/withdrawals-cancel) | | Conversion | You | `requested`, optionally `pending_approval` and `pending_compliance`, then `admissible`, then `settled`, `partially_settled` or `failed` | `pending_admission`, `executing` | [Cancel conversion](/api/reference/conversions/conversions-cancel) | | Internal transfer | You | Same as conversion | `pending_admission`, `executing` | [Cancel internal transfer](/api/reference/internal-transfers/internal-transfers-cancel) | | On-ramp session | You | Same as conversion | `pending_admission`, `executing` | [Cancel on-ramp session](/api/reference/on-ramp-sessions/on-ramp-sessions-cancel) | | Off-ramp session | You | Same as conversion; `admissible` includes the wait for the customer's crypto | `pending_admission`, `executing` | [Cancel off-ramp session](/api/reference/off-ramp-sessions/off-ramp-sessions-cancel) | External settlement conversions use the same status field and have no cancel route. Only one event type exists for them (see [Event types](#event-types)), so read the operation to learn its outcome. Cancelling works only while nothing has executed: in `pending_approval` or `pending_compliance`, and for an off-ramp session also while it still waits for the customer's crypto. After that the cancel route answers `409 state_conflict` with `data.reason` set to `operation_not_cancellable`. ### When an operation waits on you - **`pending_approval`.** Someone with the `approvals.decide` capability must decide the case named in `approval_ref`: use [Approve](/api/reference/approvals/approvals-approve) or [Reject](/api/reference/approvals/approvals-reject), or the Approvals screen in the console. Approval moves the operation on. A rejection ends it as `failed` with `failure_reason` `APPROVAL_REJECTED`; an approval that passes its `expires_at` ends it as `failed` with `APPROVAL_EXPIRED`. See [Policies and approvals](/concepts/policies-and-approvals). - **`pending_compliance`.** Wait. When the review ends, the operation continues or becomes `failed` with a compliance `failure_reason` such as `COMPLIANCE_DENIED`. - **`pending_admission`** (deposits). Fix what `admission_hold_reason` names, for example `CLIENT_NOT_VERIFIED`, `ENTERPRISE_NOT_VERIFIED` or `ACCOUNT_SUSPENDED`. The platform re-checks the deposit when the account's standing changes; you do not resubmit anything. Step-up authentication is not a status. For withdrawals, conversions and external settlement conversions, a human caller sends an `X-Action-Token` with the create request, before the operation exists; a service account does not need one. ## Related lifecycles You meet four more state fields while following a payment. **Funding endpoint** (where deposits arrive; see [Funding endpoints](/concepts/funding-endpoints)): | `status` | Meaning | | --- | --- | | `provisioning` | Requested; receive details are not ready yet. Keep reading the endpoint. | | `active` | Ready to receive. | | `failed` | Could not be issued; `failure` on the endpoint says why. | | `disabled` | Temporarily not receiving. | | `retired` | Closed for good. | **Withdrawal destination** (where payouts go; see [Withdrawal destinations](/concepts/withdrawal-destinations)): | `status` | Meaning | | --- | --- | | `active` | Can be used for new withdrawals. | | `disabled` | Not selectable for new withdrawals; withdrawals in flight continue. | | `retired` | Closed for good. | **Approval** (the case behind `pending_approval`): | `status` | Meaning | Effect on the operation | | --- | --- | --- | | `pending` | Waiting for a decision. | Stays `pending_approval`. | | `approved` | Approved. | Continues. | | `rejected` | Declined. | `failed`, `APPROVAL_REJECTED`. | | `expired` | Nobody decided before `expires_at`. | `failed`, `APPROVAL_EXPIRED`. | | `cancelled` | The case was withdrawn. | If you cancelled the operation, it is already `cancelled`. If only the case was cancelled, the operation ends as `failed`, the same as a rejection. | **Webhook delivery** (one event sent to one subscription): | `status` | Meaning | Final | | --- | --- | --- | | `pending` | Created; the first attempt has not run yet. | No | | `retrying` | An attempt failed, or a redelivery is queued. `next_retry_at` says when the next attempt runs. | No | | `delivered` | Your endpoint answered with a 2xx status. | Yes | | `dlq` | Every attempt failed. The delivery stays in the dead-letter state until you redeliver it. | Yes | | `failed` | Not attempted: the subscription was paused or deleted before the delivery could be sent. | Yes | A webhook subscription itself is `active`, `paused` or `deleted`. ## Webhooks ### Subscribe Create a subscription with the `webhooks.create` capability. `url` must be an HTTPS address on a public host; anything else is refused with `callback_url_not_allowed`. `secret` is the shared key the platform signs deliveries with: generate a long random string and store it, because no read returns it and an update cannot change it. `scope_ref` is an enterprise (`enterprises/`) or a connected account (API: `client`, `clients/`); an enterprise subscription also receives the events of its connected accounts and their accounts. **Subscribe to every operation event — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/webhook-subscriptions Authorization: Bearer Idempotency-Key: webhook-sub-001 Content-Type: application/json ``` ```json { "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "url": "https://example.com/webhooks/youhodler", "event_types": ["operations.*.v1", "rails.deposit.detected.v1"], "secret": "replace-with-a-long-random-string" } ``` Keep the returned `id` and `etag`: updating, pausing and deleting the subscription need the current `If-Match` value. See [Create webhook subscription](/api/reference/webhook-subscriptions/webhook-subscriptions-create). `event_types` takes exact types, a resource group such as `operations.withdrawal.*.v1`, a domain group such as `operations.*.v1`, or `["*"]` alone for everything. ### Event types Event types are named `...v`. The current list comes from [List webhook event types](/api/reference/events/events-types) (`GET /events/types`); read it instead of hard-coding one. For operations the verb is the status the operation just entered, with one exception: `approved` means "a wait ended and the operation moves on". | Family | Event types the platform publishes | Final ones | | --- | --- | --- | | Deposit | `operations.deposit.requested.v1`, `operations.deposit.pending_admission.v1`, `operations.deposit.pending_compliance.v1`, `operations.deposit.approved.v1` (status `executing`), `operations.deposit.settled.v1`, `operations.deposit.failed.v1` | `settled`, `failed` | | Withdrawal | `operations.withdrawal.requested.v1`, `operations.withdrawal.pending_approval.v1`, `operations.withdrawal.pending_compliance.v1`, `operations.withdrawal.executing.v1`, `operations.withdrawal.settled.v1`, `operations.withdrawal.failed.v1`, `operations.withdrawal.cancelled.v1` | `settled`, `failed`, `cancelled` | | Conversion | `operations.conversion.requested.v1`, `operations.conversion.pending_approval.v1`, `operations.conversion.pending_compliance.v1`, `operations.conversion.admissible.v1`, `operations.conversion.approved.v1` (status `admissible`), `operations.conversion.settled.v1`, `operations.conversion.failed.v1`, `operations.conversion.cancelled.v1` | `settled`, `failed`, `cancelled` | | Internal transfer | The same eight verbs under `operations.internal_transfer.` | `settled`, `failed`, `cancelled` | | On-ramp session | The same eight verbs under `operations.on_ramp.` | `settled`, `failed`, `cancelled` | | Off-ramp session | The same eight verbs under `operations.off_ramp.` | `settled`, `failed`, `cancelled` | | External settlement conversion | `operations.external_settlement_conversion.pending_compliance.v1` only | None: read the operation | The catalog, and the `event_types` values a subscription accepts, also list `operations.deposit.pending_approval.v1`, `operations.deposit.admissible.v1`, `operations.deposit.cancelled.v1`, `operations.withdrawal.admissible.v1` and `operations.withdrawal.approved.v1`. They are reserved: deposits and withdrawals never enter those statuses (see [Differences per family](#differences-per-family)), so the platform does not publish them. Subscribing to them is harmless, but do not wait for them; an approved withdrawal reports `operations.withdrawal.executing.v1`. The catalog also lists rail-level facts (`rails.deposit.detected.v1`, `rails.dispatch.acknowledged.v1`, `rails.dispatch.rejected.v1`, `rails.settlement.confirmed.v1`) and `ledger.transaction.posted.v1`. Use `rails.deposit.detected.v1` as the earliest sign of incoming funds; use the operation events to decide when money is final. > **One outcome has no event type:** There is no event type for `partially_settled`. A conversion, internal transfer or ramp session that reaches it sends no webhook and adds nothing to the event history, so an operation that stays `admissible` on your side must be read from the API. Switch on `data.status` in your handler, not on the event type name. ### What a delivery looks like Each delivery is an HTTP `POST` with a JSON body. For operation events `data` carries the operation id, family, status, account, amounts, and the wait or failure fields when they apply. ```json { "id": "5d0c6a52-8f0e-4a55-9f5e-3f1c2f0c9a11", "event_type": "operations.withdrawal.settled.v1", "scope_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "data": { "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "family": "withdrawal", "status": "settled", "account_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "scope_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "principal_amount": {"value": "250.00", "currency": "USDC"}, "fee_summary": { "components": [ {"kind": "network_fee", "amount": {"value": "1.00", "currency": "USDC"}} ], "total": {"value": "1.00", "currency": "USDC"} }, "fill_rate": null, "failure_reason": null, "occurred_at": "2026-05-01T10:00:00.000Z" }, "schema_version": 1, "aggregate": { "type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "trace_id": "0f8c1f0e-6f1d-4a43-9d5b-0c7e5a1b2c3d", "occurred_at": "2026-05-01T10:00:00.000Z", "recipient": { "subscription_id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } } ``` - `id` is the event id. It is the same value in `x-yh-webhook-event-id`, in `event_id` on the delivery, and in `GET /events/{event_id}`. - `data.operation_id` is the id you read with the family's `GET` route. For operation events `aggregate.id` holds the same id; rely on `data.operation_id` and `data.family`. - `recipient` names the subscription and enterprise the body was built for. | Header | Value | | --- | --- | | `x-yh-webhook-event-id` | The event id. Use it (or `id` in the body) to drop duplicates. | | `x-yh-webhook-delivery-id` | The delivery id, for the deliveries API. | | `x-yh-webhook-timestamp` | Unix time in seconds of this attempt. | | `x-yh-webhook-signature` | `t=,v1=`. | | `x-yh-webhook-signature-v2` | `t=…,kid=…,sub=…,ent=…,sig=…`, an Ed25519 signature made with a platform key. Present when the platform key is configured. | | `user-agent` | `yh-webhook-service/1.0` | ### Verify the signature `v1` in `x-yh-webhook-signature` is the HMAC-SHA256, hex-encoded, of the string `.`, keyed with the `secret` you sent when you created the subscription. `t` is the same number as `x-yh-webhook-timestamp`, and it is new on every attempt. 1. Read the raw request body as bytes, before any JSON parsing. 2. Split the header on commas and take `t` and `v1`. 3. Refuse a `t` that is too far from your clock (five minutes is a common limit) so a captured request cannot be replayed later. 4. Compute HMAC-SHA256 of `.` with your secret and compare it to `v1` in constant time. ```js const SECRET = process.env.WEBHOOK_SECRET; // the `secret` you sent on create const TOLERANCE_SECONDS = 300; const seen = new Set(); // use a table with a unique key in production function isAuthentic(rawBody, header) { const parts = new Map( String(header ?? '') .split(',') .map(part => part.trim().split('=')) .filter(pair => pair.length === 2) ); const t = parts.get('t') ?? ''; const v1 = parts.get('v1') ?? ''; if (!/^\d+$/.test(t) || !/^[0-9a-f]{64}$/i.test(v1)) return false; if (Math.abs(Date.now() / 1000 - Number(t)) > TOLERANCE_SECONDS) return false; const expected = crypto .createHmac('sha256', SECRET) .update(`${t}.${rawBody}`, 'utf8') .digest(); return crypto.timingSafeEqual(expected, Buffer.from(v1, 'hex')); } http .createServer((req, res) => { const chunks = []; req.on('data', chunk => chunks.push(chunk)); req.on('end', () => { const rawBody = Buffer.concat(chunks).toString('utf8'); if (!isAuthentic(rawBody, req.headers['x-yh-webhook-signature'])) { res.writeHead(401).end(); return; } const event = JSON.parse(rawBody); if (!seen.has(event.id)) { seen.add(event.id); // Queue the event and return. Do the slow work after you answer. console.log(event.event_type, event.data.operation_id, event.data.status); } res.writeHead(204).end(); }); }) .listen(8080); ``` A subscription you create has `signing` set to `hmac`, so the `v1` check above is enough. The `v2` header is an Ed25519 signature over `...` with a platform key named by `kid`; it lets a receiver verify a delivery without holding a secret. The public keys are a JWKS document at `/.well-known/webhooks-jwks.json` under the API base URL, served without a token; pick the key whose `kid` matches the header. ### Acknowledge quickly - Answer with any 2xx status to acknowledge. Every other status, a timeout and a connection error count as a failed attempt. - Answer within 10 seconds, the default delivery timeout. Store the event and process it afterwards. - Redirects are not followed: a 3xx answer is a failed attempt. - The first 4,096 characters of your response body are stored and shown in the delivery's `attempts`. Do not put secrets in it. ### Retries and the dead-letter state A failed attempt is retried with a delay that doubles each time: 1 second, then 2, 4, 8 and so on, capped at 5 minutes. Due deliveries are picked up every 5 seconds, so real gaps are a few seconds longer. When the last attempt fails the delivery becomes `dlq` and is not retried again on its own. The number of attempts is a deployment setting. Sandbox makes five attempts in total, so a delivery dead-letters within about a minute of failures. Production makes ten: the waits between them add up to about 8.5 minutes, plus the time the attempts themselves take. An outage of your endpoint that lasts longer than that leaves deliveries in `dlq`, and you recover them yourself (next section). Read `attempt_count` and `next_retry_at` on the delivery instead of hard-coding the schedule. Pausing a subscription ([Disable](/api/reference/webhook-subscriptions/webhook-subscriptions-disable)) does not buffer anything: events published during the pause are not delivered, and deliveries still waiting become `failed` without an attempt. After you enable it again, replay the events you missed. ### Inspect, redeliver, replay, test | You want to | Call | Notes | | --- | --- | --- | | See what was sent and how your endpoint answered | [List deliveries](/api/reference/webhook-subscriptions/webhook-subscriptions-deliveries), `GET /webhook-subscriptions/{subscription_id}/deliveries` | Filter with `status` (for example `dlq`) or `event_id`. Each delivery lists its `attempts` with `http_status_code` and `response_body`. Needs `webhooks.read`. | | Send one delivery that has not succeeded again | [Redeliver](/api/reference/webhook-subscriptions/webhook-subscriptions-redeliver), `POST /webhook-subscriptions/{subscription_id}/deliveries/{delivery_id}/redeliver` | Queues one more attempt of the same delivery. A `delivered` one returns `409` with `webhook_delivery_already_delivered`. Needs `webhooks.manage`. | | Send a stored event again, even after a successful delivery | [Replay event](/api/reference/events/events-replay), `POST /events/{event_id}/replay` | Creates a new delivery with the same event id. Send `subscription_ids` to target specific subscriptions, or omit it for every matching one. Needs `events.read` and `webhooks.manage`. | | Check that your endpoint is reachable and your signature check works | [Send test delivery](/api/reference/webhook-subscriptions/webhook-subscriptions-test), `POST /webhook-subscriptions/{subscription_id}/test` | Sends a synthetic event of type `webhook.test_delivery.v1` with `data.test` set to `true`, signed like a real one. The response includes the first attempt. It changes no money and is not stored in the event history. | **Redeliver a dead-lettered delivery — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/webhook-subscriptions//deliveries//redeliver Authorization: Bearer Idempotency-Key: redeliver-001 ``` ### Ordering and duplicates - **Delivery is at least once.** A retry after a lost acknowledgement, a redelivery and a replay all send an event you may already have. Record the event `id` with a unique key and skip an id you have processed. - **Order is best effort.** Events are sent in the order they happened where possible, but a retried event can arrive after a later one. Never let an older event overwrite a newer state: once you have recorded a final status for an operation, ignore later non-final events for it, and when in doubt read the operation. - **A handler must be safe to run twice.** Credit a customer keyed by `data.operation_id`, not by the number of events you received. ## Reconcile from the API Webhooks are a signal, not the record. These reads are the record. | Source | Use it for | Call | | --- | --- | --- | | The operation by id | The current truth about one payment | `GET /withdrawals/{withdrawal_id}`, `GET /deposits/{deposit_id}`, `GET /conversions/{conversion_id}`, `GET /internal-transfers/{internal_transfer_id}`, `GET /on-ramp-sessions/{session_id}`, `GET /off-ramp-sessions/{session_id}`, `GET /external-settlement-conversions/{external_settlement_conversion_id}` | | The operation lists | Finding operations you do not know yet, such as new deposits | `GET /deposits`, `GET /withdrawals` and the other list routes. The only filters are `account_ref`, `page_size` and `page_token`; there is no status or date filter, so filter after reading. | | The event history | Everything that happened, pull-based | [List events](/api/reference/events/events-list), `GET /events`. Filters: `scope_ref`, `from_date`, `to_date`, `event_type`, `event_type_pattern` (with `*` as a wildcard), `aggregate_id`, `aggregate_type`, `actor_id`, `trace_id`. Newest first. Needs `events.read`. | | Balances | Checking that your ledger and the account agree | [Client-account balances](/api/reference/balances/client-accounts-balances) and [master-account balances](/api/reference/balances/master-accounts-balances): `available`, `held`, `total` per asset. | | Activity export | Period-end reconciliation as a file | [Create operations activity export](/api/reference/operations-activity-exports/operations-activity-exports-create) | An activity export is asynchronous. Create it, read it until `status` is `ready` (the others are `queued`, `running`, `failed`, `expired`), then fetch the file from `download_path`. **Export one month of operations — POST** ```http POST https://b2b2x-sandbox.youhodler.com/api/operations-activity-exports Authorization: Bearer Idempotency-Key: ops-export-2026-04 Content-Type: application/json ``` ```json { "format": "csv", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z", "operation_families": ["deposit", "withdrawal"] } } ``` `format` is `csv` or `json` (newline-delimited). `filter_criteria.statuses` takes its own set of reporting labels, not the operation statuses on this page, so this request leaves it out and you filter the rows afterwards. ### When a webhook was missed Run this on a schedule (every few minutes is typical) and after any outage of your endpoint. 1. **Find what you missed.** List the event history since your last checkpoint and compare the event ids with the ones you processed. ```bash # $API is the sandbox base URL, $TOKEN an access token with events.read curl "$API/events?event_type_pattern=operations.*&from_date=2026-05-01T10:00:00Z&page_size=100" \ -H "Authorization: Bearer $TOKEN" ``` Follow `next_page_token` until it is `null`. Each item has the same `id`, `event_type` and `data` a delivery would have carried. 2. **Process the missing events** with the same handler your webhook uses. Because the handler is keyed by event id, running it twice is harmless. 3. **Re-read every operation that is not final on your side.** Use the family's `GET` route by id. This catches `partially_settled`, which has no event type, and external settlement conversions. 4. **Look for deposits you have never seen.** Page through `GET /deposits` for each account you credit and match them by `id`. 5. **Clear the backlog on the webhook side.** List deliveries with `status=dlq` and redeliver them, or replay the events, so your delivery log is clean. This is optional once steps 1 to 4 have run. 6. **Compare balances** for the affected accounts with your own ledger. A difference means an operation you have not recorded: go back to step 3. 7. **Move the checkpoint** to the newest `occurred_at` you processed. An event can reach the history a little after the time it carries, so start the next run a few minutes before the checkpoint; the event ids you have already processed are skipped. To follow a single payment, list its events with `GET /events?aggregate_id=`. ## If you expect pending, confirming, completed, failed, refunded Many payment APIs use these five words. Here they map to the following. | Generic word | Closest real status | Notes | | --- | --- | --- | | pending | `requested`, `pending_approval`, `pending_compliance`, `pending_admission` | Four values, split by who has to act. There is no operation status named `pending`. | | confirming, processing | `executing` (withdrawals, deposits) or `admissible` (conversions, internal transfers, ramp sessions) | There is no `confirming` status and no confirmation counter in the status. | | completed, succeeded, paid | `settled` | `settled_at` is set. There is no operation status named `completed`. | | failed | `failed` | Read `failure_reason`. Also treat `cancelled` (stopped before execution) and `partially_settled` (some legs settled) as final without full success. | | refunded | None | There is no refund operation, no `refunded` status and no refund event. A failed withdrawal releases the amount it held back to the account. To send money back to a payer, create a new [withdrawal](/api/reference/withdrawals/withdrawals-create) to a destination you register for them. | `pending` and `completed` do exist on other resources (approvals, webhook deliveries, verification status), which is why they are easy to assume here. ## Test it on sandbox Sandbox-only The simulation routes below exist on sandbox only and return 404 in production. They need the `sandbox_simulator.run` capability. Which currencies and rails support them is listed in [Sandbox testing](/guides/sandbox-testing). 1. **Subscribe and send a test delivery.** Create the subscription as above, then call `POST /webhook-subscriptions/{subscription_id}/test`. This step is not sandbox-only. Confirm your signature check accepts it. 2. **Drive a deposit to `settled`.** Sandbox-only Simulate an incoming transfer on an `active` funding endpoint. ```bash curl -X POST "$API/sandbox/funding-endpoints/$FUNDING_ENDPOINT_ID/incoming-transfers" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: lifecycle-deposit-001" \ -d '{"rail_class":"fiat","account_ref":"client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1","amount":{"value":"100.00","currency":"USD"}}' ``` Use the endpoint's own account and currency. Expect `rails.deposit.detected.v1`, then the `operations.deposit.` events up to `operations.deposit.settled.v1`, and the deposit in `GET /deposits`. If the deposit stops in `pending_admission`, finish the account's verification first. 3. **Drive a withdrawal to `settled` or `failed`.** Create a fiat withdrawal through the ordinary [Create withdrawal](/api/reference/withdrawals/withdrawals-create) route and wait until it is `executing`. Sandbox-only Then supply the rail's answer. A `409` with `simulation_target_not_ready` means the provider has not accepted the payment yet; retry with the same `Idempotency-Key` after a few seconds. ```bash curl -X POST "$API/sandbox/withdrawals/$WITHDRAWAL_ID/settlement" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: lifecycle-withdrawal-001" \ -d '{"outcome":"settled"}' ``` Expect `operations.withdrawal.settled.v1`. Send `{"outcome": "failed", "reason": "Sandbox test"}` on another withdrawal to see `operations.withdrawal.failed.v1`. Crypto withdrawals and withdrawals that are already final cannot be simulated. 4. **See the waiting statuses.** There is no simulation for an approval: a policy rule that requires one puts the operation in `pending_approval`, and you decide it through the ordinary approval routes. Cancel a withdrawal in that state to see `cancelled`. 5. **Rehearse a missed webhook.** Pause the subscription, repeat step 2, enable the subscription again, then run [When a webhook was missed](#when-a-webhook-was-missed). Each simulation answers `202` with `simulation_id` and `accepted_at`. That means it was accepted, not that the operation is final: watch the events and the ordinary reads. ## Related - [Operations](/concepts/operations): the shared operation model. - [Events and webhooks](/concepts/events-and-webhooks) and the [integration guide](/guides/events-and-webhooks): the two event surfaces. - [Policies and approvals](/concepts/policies-and-approvals): why an operation waits for an approver. - [Idempotency and concurrency](/concepts/idempotency-and-concurrency): `Idempotency-Key` and `If-Match`. - [Errors](/concepts/errors): the error envelope behind `409 state_conflict`. - [Sandbox testing](/guides/sandbox-testing): every simulation route. - Reference: [Webhook subscriptions](/api/reference/webhook-subscriptions), [Events](/api/reference/events), [Deposits](/api/reference/deposits), [Withdrawals](/api/reference/withdrawals), [Operations activity exports](/api/reference/operations-activity-exports). --- # Activation And Setup > How to activate an enterprise tenant and set up identity, access, and the initial topology. Source: https://business-api-docs.youhodler.com/workflows/activation-and-setup Start with enterprise perimeter, actor access, and governance. Read this page as the shortest operational path from token issuance to a usable enterprise control plane. Start with a provisioned sandbox workspace and an initial operator or integration credential whose roles permit the setup steps. Signup provisions sandbox workspaces. Platform staff separately admit production enterprises with `POST /enterprises`, then run [Provision enterprise](/api/reference/enterprises/enterprises-provision) to create the administrator, identity access, roles and commercial agreements. Admission alone does not complete provisioning. > **Business impact:** After this sequence, the integration has an admitted enterprise perimeter, a service access path with explicit role grants and a policy surface ready for governed execution. Human approval uses a human login and any required MFA. Response examples come from the API contract. Replace sample identifiers with the identifiers returned by your own requests; examples show independent resources. See each linked endpoint for authentication, required headers, and error responses. Request lines use the production base URL, as the API reference does. In a sandbox workspace, send the same requests to `https://b2b2x-sandbox.youhodler.com/api`. ## Operational Sequence ### 1. Issue an access token OAuth client credentials. Start every server-side integration with token issuance. This establishes the bearer token used by machine operations allowed by its role grants. Human decisions use a human access token instead. Use the access token from this response as the Authorization bearer token in the next steps. [API Reference: Issue access token (POST)](/api/reference/auth/oauth-token) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/oauth/token ``` **Request Body — application/json** ```json { "grant_type": "client_credentials", "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "replace-me" } ``` **Access token — 200 application/json** ```json { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiOGUyZjFhMCJ9.sig", "expires_in": 3600, "issued_token_type": "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" } ``` ### 2. Read your enterprise `GET /enterprises` is a platform-wide staff operation. Tenant integrations read their own enterprise by ID, using the enterprise reference from their verified session or the `b2b2x:tenant_ref` claim. [API Reference: Read enterprise (GET)](/api/reference/enterprises/enterprises-get) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/enterprises/ ``` **Enterprise — 200 application/json** ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "first_access_method": "enterprise_idp", "iam_hosting": "platform", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` ### 3. Provision a service account and grant access A bare `POST /service-accounts` grants no permissions. Use the combined provisioning operation to create the account and bind an existing role, or create a role assignment for its `service-accounts/` principal explicitly. The operator running provisioning needs `service_accounts.create` and `role_assignments.create`; choose a role and scope appropriate for the integration. [API Reference: Provision service account (POST)](/api/reference/service-accounts/service-accounts-provision) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/service-accounts/provision ``` **Request Body — application/json** ```json { "description": "Withdrawal automation account", "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "roles": [ { "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ] } ``` **Provisioned service account — 201 application/json** ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role_assignment_errors": [], "role_assignments": [ { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` Store the returned secret securely: only this response carries it. A retry with the same `Idempotency-Key` and body returns the first response without `client_secret` and creates or grants nothing again. If the secret is lost, use secret rotation; neither a retry nor a new provisioning call recovers the original secret. ### 4. Create users and assign roles Operator access model. Add human actors for setup and review, then bind them to roles and role assignments so capability scope is explicit. This step usually combines three operations in sequence: create the user, create or choose a role, then grant the role assignment. [API Reference: Create user (POST)](/api/reference/users/users-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/users ``` **Request Body — application/json** ```json { "email": "ops@acme.example", "display_name": "Operations User", "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111" } ``` **Request URL — POST** ```http POST https://b2b.youhodler.com/api/role-assignments ``` **Request Body — application/json** ```json { "principal_ref": "users/44444444-4444-4444-8444-444444444444", "role_ref": "roles/55555555-5555-4555-8555-555555555555", "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111", "scope_anchor_kind": "explicit", "scope_propagation": "subtree" } ``` **Created user — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **Granted role assignment — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### 5. Define policies Create a policy rule with `POST /policy-rules`. Each rule has one `operation_type`, an array of `conditions`, and a `decision`. The monetary threshold uses `value`; the decision's `threshold` is the number of approvals. [API Reference: Create policy rule (POST)](/api/reference/policies/policy-rules-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/policy-rules ``` **Request Headers — required** ```json Authorization: Bearer Idempotency-Key: 6a4d4d14-b0f3-4d2d-a40f-9f6396d30360 Content-Type: application/json ``` **Request Body — application/json** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "decision": { "approver_role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "operation_type": "withdrawal", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` Creation returns a draft rule. Read the created rule's `id` and `etag`, then activate it before relying on it to govern operations: **Activate the rule — POST** ```http POST https://b2b.youhodler.com/api/policy-rules//activate Authorization: Bearer If-Match: ``` See [Activate policy rule](/api/reference/policies/policy-rules-activate) for concurrency requirements. Approval resources are created by governed operations after the rule is active. --- # Distribution And Liquidity > How to onboard clients, set up funding endpoints and withdrawal destinations, and manage liquidity across accounts. Source: https://business-api-docs.youhodler.com/workflows/distribution-and-liquidity Create downstream clients, provision accounts, and move liquidity. This workflow turns an admitted enterprise perimeter into an operable downstream topology with client resources, client accounts, payout surfaces, deposit surfaces, and initial internal transfers. > **Business impact:** `Client` defines the downstream operating perimeter. `ClientAccount` defines the downstream financial execution perimeter. Liquidity should only be moved after both are in place and the outbound or inbound rails are prepared. Response examples come from the API contract. Replace sample identifiers with the identifiers returned by your own requests; examples show independent resources. See each linked endpoint for authentication, required headers, and error responses. Request lines use the production base URL, as the API reference does. In a sandbox workspace, send the same requests to `https://b2b2x-sandbox.youhodler.com/api`. ## Operational Sequence ### 1. Create the client Downstream topology resource. Create the client before provisioning additional accounts, payout destinations, or client-scoped liquidity. Keep the returned client id for account creation. Create the client account in the next step using the returned client id as scope_ref. [API Reference: Create client (POST)](/api/reference/clients/clients-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/clients ``` **Request Body — application/json** ```json { "external_id": "client-acme-retail-eu", "display_name": "Acme Retail Europe", "metadata": { "segment": "retail", "region": "eu" }, "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111" } ``` **Created client — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### 2. Create additional client accounts Financial operating accounts. Use additional client accounts when one client needs separate operating boundaries for currencies, regions, or product lines. These accounts become the execution anchors for balances and operations. Keep the created client account ids handy. They become the `account_ref` targets for internal transfers, withdrawals, conversions, and ramp sessions. [API Reference: Create client account (POST)](/api/reference/client-accounts/client-accounts-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/client-accounts ``` **Request Body — application/json** ```json { "display_name": "USDC Settlement Account", "metadata": { "purpose": "settlement", "asset": "USDC" }, "scope_ref": "clients/88888888-8888-4888-8888-888888888888" } ``` **Created client account — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### 3. Create payout, withdrawal, and webhook surfaces Money in and money out setup. Provision reusable surfaces before regular execution begins. This usually includes a withdrawal destination for outbound settlement and at least one webhook endpoint for asynchronous delivery. If the integration is event-driven, create the webhook endpoint in the same provisioning window so downstream operations can emit into a live consumer from day one. [API Reference: Create withdrawal destination (POST)](/api/reference/withdrawal-destinations/withdrawal-destinations-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/withdrawal-destinations ``` **Request Body — application/json** ```json { "rail_class": "crypto", "idempotency_key": "4b3d6e0c-f4a5-47f4-a5ab-4d568d0a9f10", "crypto_routing": { "asset": "USDC", "network": "ethereum", "destination": { "address": "0x5F8d1D0B3D6A7f7A4d0F8fB23e8f420f4bB01234", "memo": null } }, "scope_ref": "clients/88888888-8888-4888-8888-888888888888" } ``` **Request URL — POST** ```http POST https://b2b.youhodler.com/api/webhook-subscriptions ``` **Request Body — application/json** ```json { "scope_ref": "enterprises/11111111-1111-4111-8111-111111111111", "url": "https://api.acme.example/webhooks/b2b2x", "event_types": [ "operations.withdrawal.settled.v1" ], "secret": "replace-with-shared-secret" } ``` **Created withdrawal destination — 201 application/json** ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **Created webhook subscription — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` ### 4. Distribute liquidity Internal transfers. Move balances from enterprise-owned master accounts into client accounts only after the client account boundary is ready. This gives downstream operations an execution balance without weakening ownership semantics. Internal transfers are also the same family you will later use for rebalancing or returning liquidity during settlement and suspension. [API Reference: Create internal transfer (POST)](/api/reference/internal-transfers/internal-transfers-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/internal-transfers ``` **Request Headers — required** ```json Authorization: Bearer Idempotency-Key: 2db7da81-dc19-4781-8a8b-3a5cb460d142 Content-Type: application/json ``` **Request Body — application/json** ```json { "amount": { "value": "250000.00", "currency": "USDC" }, "source_ref": "master-accounts/22222222-2222-4222-8222-222222222222", "target_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1" } ``` **Accepted internal transfer — 202 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### 5. Confirm balances and delivery readiness Readiness check. Before operational workloads start, read the client-account balance rows and confirm that the webhook subscription is active. This makes the downstream perimeter observable before live execution begins. At this point, the client should have an operating entity, at least one active financial account, a delivery path for events, and a visible execution balance. [API Reference: List client account balances (GET)](/api/reference/balances/client-accounts-balances) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1/balances?asset=USDC ``` **Request URL — GET** ```http GET https://b2b.youhodler.com/api/webhook-subscriptions/ccccccc3-cccc-4ccc-8ccc-ccccccccccc3 ``` **Client account balances — 200 application/json** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": null, "overdraft_limit": null, "overdraft_used": null, "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "client_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` **Webhook subscription — 200 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` --- # Live Operations And Controls > How to submit deposits, withdrawals, conversions, and internal transfers, and read operation lifecycle and approval state. Source: https://business-api-docs.youhodler.com/workflows/live-operations-and-controls Execute deposits, withdrawals, conversions, and ramp sessions under control. This workflow is the runtime operating path for client-scoped and enterprise-scoped money movement, including previews, approval checks, status tracking, and asynchronous observation. > **Business impact:** Financial execution calls act on `AccountRef`. Governance and lifecycle controls can still introduce approvals, event emissions, or action-token steps around the same operation. Response examples come from the API contract. Replace sample identifiers with the identifiers returned by your own requests; examples show independent resources. See each linked endpoint for authentication, required headers, and error responses. Request lines use the production base URL, as the API reference does. In a sandbox workspace, send the same requests to `https://b2b2x-sandbox.youhodler.com/api`. ## Operational Sequence ### 1. Preview and validate Prices and fee previews. Inspect execution inputs before creating a real operation when the integration needs to show costs or conversion direction up front. This reduces operational surprises without mutating balances. Preview endpoints should be treated as advisory preflight surfaces. The authoritative state still begins when a real operation resource is created. [API Reference: Create fee preview (POST)](/api/reference/fee-previews/fee-previews-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/fee-previews ``` **Request Body — application/json** ```json { "subject_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "operation_type": "withdrawal_crypto", "service_type": "withdrawal_crypto", "principal_amount": { "value": "1250.00", "currency": "USDC" } } ``` **Request URL — GET** ```http GET https://b2b.youhodler.com/api/prices/indicative?from_asset=USDC&to_asset=EUR&amount_basis=from&from_amount=1250.00&account_ref=client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1 ``` **Fee preview — 200 application/json** ```json { "fee_preview": { "binding": "non_binding", "computed_at": "2026-05-01T10:00:00Z", "enterprise_ca_version": 2, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USDC", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USDC", "value": "1.00" } }, "operation_type": "withdrawal_crypto", "platform_ca_version": 1 } } ``` **Indicative price — 200 application/json** ```json { "amount_basis": "from", "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "expires_at": "2026-05-01T10:01:00.000Z", "flow_type": "conversion", "from_amount": { "currency": "USDC", "value": "250.00" }, "from_asset": "USDC", "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "price": "0.0000152", "price_type": "indicative" }, "pricing_mode": "indicative", "to_amount": { "currency": "BTC", "value": "0.00380000" }, "to_asset": "BTC" } ``` ### 2. Create the operation Withdrawal, conversion, deposit, or ramp. Once the caller has an execution decision, create the real operation on the target `AccountRef`. The same lifecycle model powers withdrawals, conversions, deposits, and ramp sessions. Use idempotency on every mutating execution request. The operation id becomes the durable handle for later approval, tracking, and event correlation. [API Reference: Create withdrawal (POST)](/api/reference/withdrawals/withdrawals-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/withdrawals ``` **Request Headers — required** ```json Authorization: Bearer Idempotency-Key: 5d17b978-e8ee-4f55-a313-7fe0f31f8535 X-Action-Token: Content-Type: application/json ``` **Request Body — application/json** ```json { "amount": { "value": "1250.00", "currency": "USDC" }, "account_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "destination_id": "bbbbbbb2-bbbb-4bbb-8bbb-bbbbbbbbbbb2", "rail": "crypto" } ``` **Accepted withdrawal — 202 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "withdrawal", "family_params": {}, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### 3. Resolve approvals with an eligible human Use a token whose subject is an eligible human user. The service-account token from setup cannot approve. Before deciding, satisfy the `approval.decide` MFA assurance policy. On `401 insufficient_user_authentication`, read the `WWW-Authenticate` challenge (`acr_values`, `max_age`), authenticate at that assurance and retry with the fresh human token. Platform staff always require MFA. Governed execution path. Some operations enter approval review instead of continuing immediately. Read the approval queue, then resolve the approval with an explicit approval or rejection action. Treat approval resources as first-class control-plane objects. They are not just side effects of an operation page; they are part of runtime governance. [API Reference: List approvals (GET)](/api/reference/approvals/approvals-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/approvals?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&status=pending&operation_id=eeeeeee5-eeee-4eee-8eee-eeeeeeeeeee5 ``` **Approve the selected review — POST** ```http POST https://b2b.youhodler.com/api/approvals/fffffff6-ffff-4fff-8fff-fffffffffff6/approve Authorization: Bearer ``` **Request Body — application/json** ```json { "reason": "Reviewed by treasury operations and approved for release." } ``` **Approval page — 200 application/json** ```json { "items": [ { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **Approval after vote — 200 application/json** ```json { "action_family": "withdrawal", "collected_human_approvals": 1, "created_at": "2026-05-01T10:00:00Z", "decision": { "decided_at": "2026-05-01T10:00:00Z", "decided_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "reason": "Approved after review" }, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "approved", "updated_at": "2026-05-01T10:00:00Z" } ``` ### 4. Track status and final state Lifecycle visibility. After creation, read the operation resource directly when the caller needs the current status, a failure reason, or the final execution state. Use polling selectively. In most integrations, direct reads are best for operator inspection or retry handling, while webhooks and events handle normal asynchronous processing. [API Reference: Get withdrawal (GET)](/api/reference/withdrawals/withdrawals-get) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/withdrawals/eeeeeee5-eeee-4eee-8eee-eeeeeeeeeee5 ``` **Withdrawal state — 200 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "dispatch_attempt_id": null, "failure_reason": null, "family": "withdrawal", "family_flow_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [], "fill_rate": null, "hold_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": null, "rail": "ethereum", "rail_class": "crypto", "release_transaction_id": null, "settled_at": null, "settlement_evidence": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z", "withdrawal_attempt_id": null } ``` ### 5. Observe events and webhooks Asynchronous integration. Event and webhook delivery should be the default machine-consumption path for operation progression. Polling is a fallback, not the main contract. The event stream is also the best cross-cutting surface for audit, replay, and operational traceability across multiple operation families. [API Reference: List events (GET)](/api/reference/events/events-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/events?aggregate_id=eeeeeee5-eeee-4eee-8eee-eeeeeeeeeee5 ``` **Event page — 200 application/json** ```json { "items": [ { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "next_page_token": null } ``` --- # Settlement And Suspension > How to read balances, perform internal transfers for settlement, and use suspension and revocation flows. Source: https://business-api-docs.youhodler.com/workflows/settlement-and-suspension Review balances, unwind exposure, and close resources deliberately. This workflow covers the tail of the lifecycle: balance review, liquidity return, governance cleanup, and resource suspension or closure across clients, accounts, and actors. > **Business impact:** Suspension and closure should follow balance review, open-operation review, and pending-approval review. Lifecycle transitions should not be treated as isolated UI actions. Response examples come from the API contract. Replace sample identifiers with the identifiers returned by your own requests; examples show independent resources. See each linked endpoint for authentication, required headers, and error responses. Request lines use the production base URL, as the API reference does. In a sandbox workspace, send the same requests to `https://b2b2x-sandbox.youhodler.com/api`. ## Operational Sequence ### 1. Inspect balances and recent operation state Operational review. Start with actual owner balances and recent operation state before changing lifecycle or access. This avoids suspending resources while financial exposure is still unresolved. If both enterprise and client balances are in scope, read both before deciding which balances should be returned, settled, or left in place. [API Reference: List master account balances (GET)](/api/reference/balances/master-accounts-balances) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/master-accounts/22222222-2222-4222-8222-222222222222/balances?asset=USDC ``` **Request URL — GET** ```http GET https://b2b.youhodler.com/api/withdrawals?account_ref=client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1&page_size=20 ``` **Master account balances — 200 application/json** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": "400.00", "overdraft_limit": "500.00", "overdraft_used": "100.00", "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "master_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` **Withdrawal page — 200 application/json** ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "dispatch_attempt_id": null, "failure_reason": null, "family": "withdrawal", "family_flow_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [], "fill_rate": null, "hold_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": null, "rail": "ethereum", "rail_class": "crypto", "release_transaction_id": null, "settled_at": null, "settlement_evidence": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z", "withdrawal_attempt_id": null } ], "next_page_token": null } ``` ### 2. Return or rebalance liquidity Internal transfers and withdrawals. Return client-scoped balances to the desired operating boundary before closing accounts or removing access. Rebalancing first keeps lifecycle changes from masking stranded funds. The same family can rebalance liquidity between internal account boundaries or return balances back to the enterprise treasury perimeter. [API Reference: Create internal transfer (POST)](/api/reference/internal-transfers/internal-transfers-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/internal-transfers ``` **Request Body — application/json** ```json { "amount": { "value": "50000.00", "currency": "USDC" }, "source_ref": "client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1", "target_ref": "master-accounts/22222222-2222-4222-8222-222222222222" } ``` **Accepted internal transfer — 202 application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### 3. Resolve approvals and inspect event consumers Governance cleanup. Before lifecycle shutdown, check for pending approvals and review recent event flow. This prevents closing a resource while governance or downstream consumers still expect activity. If lifecycle changes need to be auditable, pair approval review with event review so operator actions and system state remain correlated. [API Reference: List approvals (GET)](/api/reference/approvals/approvals-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/approvals?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&status=pending ``` **Request URL — GET** ```http GET https://b2b.youhodler.com/api/events?aggregate_id=88888888-8888-4888-8888-888888888888 ``` **Approval page — 200 application/json** ```json { "items": [ { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **Event page — 200 application/json** ```json { "items": [ { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "next_page_token": null } ``` ### 4. Suspend or close resources Suspend the client account first, then its parent client. Client suspension does not cascade; account suspension is refused once its parent is inactive. Lifecycle transitions. Suspend or close clients and client accounts only after the financial boundary is under control. Apply the lifecycle sequence intentionally instead of broad revocation first. Suspension is useful when the resource may return later. Closure is the stronger terminal state and should usually come after a successful wind-down. [API Reference: Suspend client (POST)](/api/reference/clients/clients-suspend) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/client-accounts/aaaaaaa1-aaaa-4aaa-8aaa-aaaaaaaaaaa1/suspend ``` **Request Body — application/json** ```json { "reason": "Client account is being wound down after balance exit." } ``` **Suspended client account — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00Z" } ``` **Request URL — POST** ```http POST https://b2b.youhodler.com/api/clients/88888888-8888-4888-8888-888888888888/suspend ``` **Request Body — application/json** ```json { "reason": "Downstream operating perimeter is being offboarded after balance exit." } ``` **Suspended client — 201 application/json** ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00Z" } ``` ### 5. Revoke access surfaces Final access cleanup. Revoke service accounts and other access paths only after financial state, approvals, and lifecycle posture have been intentionally wound down. Access revocation is the last perimeter action. If it happens too early, the integration can lose the ability to inspect, reconcile, or finish closure safely. [API Reference: Revoke service account (POST)](/api/reference/service-accounts/service-accounts-revoke) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/service-accounts/33333333-3333-4333-8333-333333333333/revoke ``` **Request Body — application/json** ```json { "reason": "Tenant offboarding is complete. Revoke non-human execution access." } ``` **Revoked service account — 200 application/json** ```json { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "revoked", "updated_at": "2026-05-01T10:00:00Z" } ``` --- # Access And Topology > API Kickstart for enterprise admission, master accounts, and topology resources. Source: https://business-api-docs.youhodler.com/reference/access-and-topology This group covers the entry point into the public API and the root tenant boundary. Read these methods in perimeter order: authenticate first, discover or admit the enterprise second, then inspect the enterprise-owned financial boundary through master accounts. > **Why this group exists:** `oauth/token` establishes server-side access. `enterprises` defines the root tenant perimeter. `master-accounts` exposes the first enterprise-owned financial boundary inside that perimeter. That is why this group starts with authentication and ends with root account visibility. ## Access And Perimeter ### Issue access token Server-side entry point. Every backend integration begins by issuing a bearer token through the client-credentials flow. Nothing else in this group is readable until that access path exists. [API Reference: Issue access token (POST)](/api/reference/auth/oauth-token) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/oauth/token ``` **Request Body — application/json** ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "grant_type": "client_credentials" } ``` **200 Success** ```json { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiOGUyZjFhMCJ9.sig", "expires_in": 3600, "issued_token_type": "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" } ``` ### List enterprises Perimeter discovery. List enterprises when the integration needs to confirm which tenant roots already exist and which admission states are currently active. [API Reference: List enterprises (GET)](/api/reference/enterprises/enterprises-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/enterprises?page_size=20 ``` **200 Enterprise Page** ```json { "items": [ { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "first_access_method": "enterprise_idp", "iam_hosting": "platform", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ], "next_page_token": null } ``` ### Get enterprise Single-tenant read. Read one enterprise when later setup work needs the exact tenant root, its lifecycle posture, or its current perimeter metadata. [API Reference: Get enterprise (GET)](/api/reference/enterprises/enterprises-get) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/enterprises/11111111-1111-4111-8111-111111111111 ``` **200 Enterprise** ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "first_access_method": "enterprise_idp", "iam_hosting": "platform", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` ### List master accounts Root financial boundary. Inspect master accounts once the enterprise perimeter is known. This is the top-level operating account layer used for enterprise liquidity and root balance visibility. [API Reference: List master accounts (GET)](/api/reference/master-accounts/master-accounts-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/master-accounts?scope_ref=enterprises/11111111-1111-4111-8111-111111111111 ``` **200 Master Accounts** ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "display_name": "Primary Settlement Account", "etag": "2026-05-01T10:00:00.000Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "master_account", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "tenant_type": "enterprise", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` --- # Actors And Access Control > API Kickstart for users, service accounts, roles, and role assignments. Source: https://business-api-docs.youhodler.com/reference/actors-and-access-control This group covers the actor model and the authorization model. Read it in scope-building order: create principals first, define reusable permission bundles second, bind those bundles into tenant scope third, and then add execution-control surfaces like policies or approval queues. > **Why this group exists:** `users` and `service-accounts` create principals. `roles`, `role-assignments`, and `capabilities` define access scope. `policies`, `approvals`, and `action-tokens` shape what governed execution may do after access already exists. ## Principals, Scope, And Control ### Create user Human operator principal. Create a user when a person needs to review, approve, or operate inside enterprise scope through a canonical human actor resource. [API Reference: Create user (POST)](/api/reference/users/users-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/users ``` **Request Body — application/json** ```json { "display_name": "Jane Doe", "email": "jane.doe@acme.example", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` ### Create service account Backend principal. Create a service account when execution should happen from server-side infrastructure instead of a human session. The new account holds no role until you grant one; provisioning creates it and binds a role in one call. [API Reference: Create service account (POST)](/api/reference/service-accounts/service-accounts-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/service-accounts ``` **Request Body — application/json** ```json { "description": "Withdrawal automation account", "external_id": "sa-ext-001", "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` ### Create role Reusable access bundle. Create a role before granting scope so principals can inherit a named capability set instead of accumulating one-off permission logic. [API Reference: Create role (POST)](/api/reference/roles/roles-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/roles ``` **Request Body — application/json** ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### Grant role assignment Principal-to-scope binding. Grant a role assignment when a user or service account needs that role inside a specific enterprise or client boundary. [API Reference: Grant role assignment (POST)](/api/reference/role-assignments/role-assignments-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/role-assignments ``` **Request Body — application/json** ```json { "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### List capabilities Product feature flags. Read capabilities to inspect which product-level features (e.g. `conversion`, `deposit`, `withdrawal`) are enabled or disabled for a given tenant scope. Note: this endpoint returns feature toggles, not the API permission names used in `POST /roles` (e.g. `clients.read`, `internal_transfers.create`). [API Reference: List capabilities (GET)](/api/reference/capabilities/capabilities-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/capabilities?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&page_size=50 ``` **200 OK** ```json { "items": [ { "name": "deposit_fiat", "enabled": true }, { "name": "staking", "enabled": false }, { "name": "withdrawal", "enabled": true } ], "next_page_token": null } ``` ### Create policy Execution control surface. Create a policy once access is already in place and you need canonical governance around later mutating operations. [API Reference: Create policy rule (POST)](/api/reference/policies/policy-rules-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/policy-rules ``` **Request Body — application/json** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "decision": { "approver_role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "operation_type": "withdrawal", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": null, "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "draft", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` ### List approvals Governed work queue. List approvals when execution has already created decision cases and operators need to inspect pending review work. [API Reference: List approvals (GET)](/api/reference/approvals/approvals-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/approvals?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&status=pending ``` **200 OK** ```json { "items": [ { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` --- # Clients And Accounts > API Kickstart for clients, client accounts, balances, and internal transfers. Source: https://business-api-docs.youhodler.com/reference/clients-and-accounts This group covers downstream topology and downstream financial operating accounts. Read it in operating order: create the downstream tenant first, provision the execution account second, inspect balances third, and only then move liquidity or inspect transfer state. > **Why this group exists:** `clients` creates the downstream operating entity. `client-accounts` creates the client-scoped execution boundary. `balances` and `internal-transfers` expose the visibility and liquidity movement that make that boundary usable. ## Downstream Perimeter And Liquidity ### Create client Downstream topology resource. Create a client before any client-scoped account, balance, or operation work can exist. [API Reference: Create client (POST)](/api/reference/clients/clients-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/clients ``` **Request Body — application/json** ```json { "display_name": "Acme Corp", "external_id": "ext-client-0042", "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Client Created** ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### Create client account Execution boundary. Create an additional client account when one client needs multiple financial operating boundaries. [API Reference: Create client account (POST)](/api/reference/client-accounts/client-accounts-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/client-accounts ``` **Request Body — application/json** ```json { "display_name": "Operating Account EUR", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Client Account Created** ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` ### List client account balances Balance readiness. Read client-account balances when the integration needs to confirm that liquidity is present before live execution starts. [API Reference: List client account balances (GET)](/api/reference/balances/client-accounts-balances) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/client-accounts/aaa111/balances?asset=USD ``` **200 Balance Rows** ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": null, "overdraft_limit": null, "overdraft_used": null, "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "client_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` ### Create internal transfer Liquidity movement. Create an internal transfer when the enterprise needs to move value from a master account into a client account without changing tenant ownership semantics. [API Reference: Create internal transfer (POST)](/api/reference/internal-transfers/internal-transfers-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/internal-transfers ``` **Request Body — application/json** ```json { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **202 Transfer Accepted** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### Get internal transfer Transfer state read. Read the internal transfer directly when the caller needs the current lifecycle state after submission. [API Reference: Get internal transfer (GET)](/api/reference/internal-transfers/internal-transfers-get) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/internal-transfers/it_456 ``` **200 Internal Transfer** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": "2026-05-01T10:00:00Z", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` --- # Funding And Destinations > API Kickstart for funding endpoints, deposit instructions, and withdrawal destinations. Source: https://business-api-docs.youhodler.com/reference/funding-and-destinations This group covers reusable funding surfaces and reusable destination surfaces. Read it as setup before execution: provision inbound surfaces first, read the actual deposit coordinates second, then define reusable outbound and rail configuration surfaces. > **Why this group exists:** `funding-endpoints`, `deposit-instructions`, and `withdrawal-destinations` are reusable setup surfaces for later financial operations. They prepare the rails before live execution depends on them. ## Reusable Setup Surfaces ### List funding endpoints Provisioned inbound surfaces. Read funding endpoints to inspect which reusable inbound routes already exist for a tenant or account scope. [API Reference: List funding endpoints (GET)](/api/reference/funding-endpoints/funding-endpoints-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/funding-endpoints?account_ref=client-accounts/aaa111&rail_class=crypto&page_size=20 ``` **200 Funding Endpoints** ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" }, { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USD", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": null, "failure": null, "fiat_rail": "fedwire", "fiat_routing": { "asset": "USD", "attribution_mode": "virtual_account", "bank_details": null, "beneficiary_name": null, "fiat_rail": "fedwire", "reference": null }, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "fiat", "status": "provisioning", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` ### List deposit instructions Readable deposit coordinates. Read deposit instructions after endpoint provisioning when an operator or external system needs the actual inbound coordinates. [API Reference: List deposit instructions (GET)](/api/reference/deposit-instructions/deposit-instructions-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/deposit-instructions?account_ref=client-accounts/aaa111&rail_class=crypto ``` **200 Deposit Instructions** ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "expires_at": null, "fiat_routing": null, "funding_endpoint_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "crypto", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` ### Create withdrawal destination Reusable outbound target. Create a withdrawal destination when later settlement or operational cash-out should point at a named, reusable destination resource. [API Reference: Create withdrawal destination (POST)](/api/reference/withdrawal-destinations/withdrawal-destinations-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/withdrawal-destinations ``` **Request Body — application/json** ```json { "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Destination Created** ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` --- # Governance And Events > API Kickstart for policy rules, approvals, action tokens, events, and webhook subscriptions. Source: https://business-api-docs.youhodler.com/reference/governance-and-events This group covers control and observation around execution. Read it in outcome order: define governance before execution, inspect approval work when control cases are created, and use events plus webhook delivery to observe what the runtime actually did. > **Why this group exists:** `policy-rules`, `approvals`, and `action-tokens` govern execution. `events` and `webhook-subscriptions` expose asynchronous visibility and delivery after the governed runtime has already started producing state changes. > **Public API:** Policy rules , approvals , action tokens , events , and webhook subscriptions are published with schemas in /openapi.json . Human callers issue an action token for a matching protected command; MFA step-up may be required before issuance or an approval decision. ## Control And Delivery ### Create policy rule Governance definition. Create a policy when execution rules must be expressed through canonical control-plane resources instead of hidden tenant logic. [API Reference: Create policy rule (POST)](/api/reference/policies/policy-rules-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/policy-rules ``` **Request Body — application/json** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "decision": { "approver_role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "operation_type": "withdrawal", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **201 Created** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": null, "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "draft", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` ### List approvals Pending decision work. List approvals when governed execution has created review cases and operators need the current queue of unresolved work. [API Reference: List approvals (GET)](/api/reference/approvals/approvals-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/approvals?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&status=pending ``` **200 OK** ```json { "items": [ { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` ### Approve approval Explicit governance decision. Approve a pending approval when a governed operation should be released to continue through runtime execution. [API Reference: Approve approval (POST)](/api/reference/approvals/approvals-approve) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/approvals/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/approve ``` **Request Body — application/json** ```json { "reason": "Reviewed request" } ``` **200 Approval Approved** ```json { "action_family": "withdrawal", "collected_human_approvals": 1, "created_at": "2026-05-01T10:00:00Z", "decision": { "decided_at": "2026-05-01T10:00:00Z", "decided_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "reason": "Approved after review" }, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "approved", "updated_at": "2026-05-01T10:00:00Z" } ``` ### List events Replay-safe audit history. List events when an integration needs canonical lifecycle history, delayed reconciliation, or traceable replay after runtime changes. [API Reference: List events (GET)](/api/reference/events/events-list) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/events?scope_ref=enterprises/11111111-1111-4111-8111-111111111111&page_size=20 ``` **200 Event Page** ```json { "items": [ { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "next_page_token": null } ``` ### Create webhook subscription Push delivery target. Create a webhook subscription when the tenant needs runtime state changes pushed into an external system instead of only pulled later from the event log. [API Reference: Create webhook subscription (POST)](/api/reference/webhook-subscriptions/webhook-subscriptions-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/webhook-subscriptions ``` **Request Body — application/json** ```json { "event_types": [ "operations.withdrawal.settled.v1" ], "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "secret": "wh_secret_placeholder", "url": "https://example.com/webhooks" } ``` **201 Subscription Created** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` ### Enable webhook subscription Delivery activation. New subscriptions are active. Re-enable a disabled subscription when delivery should resume. [API Reference: Enable webhook subscription (POST)](/api/reference/webhook-subscriptions/webhook-subscriptions-enable) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/webhook-subscriptions/ccccccc3-cccc-4ccc-8ccc-ccccccccccc3/enable Authorization: Bearer If-Match: ``` **200 Subscription Enabled** ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` --- # Operations > API Kickstart for fee previews, indicative prices, withdrawals, and conversions. Source: https://business-api-docs.youhodler.com/reference/operations This group covers real financial execution. Read it from preview into action: start with fee or price estimation, then move into mutating execution requests across withdrawal, conversion, and ramp families. > **Why this group exists:** `fee-previews` and `prices` help callers inspect execution inputs before submission. `withdrawals`, `conversions`, `on-ramp-sessions`, and `off-ramp-sessions` are the mutating execution surfaces that turn intent into runtime operation state. > **Public API:** All operation families on this page are published in /openapi.json , including On-ramp Sessions and Off-ramp Sessions . Use an Idempotency-Key on supported creates, and follow the returned operation's status through its read endpoint. ## Preview And Execute ### Create fee preview Pre-execution fee check. Create a fee preview when the integration needs visible costs before submitting a real operation. [API Reference: Create fee preview (POST)](/api/reference/fee-previews/fee-previews-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/fee-previews ``` **Request Body — application/json** ```json { "operation_type": "withdrawal_crypto", "principal_amount": { "currency": "USDC", "value": "100.00" }, "requested_at": "2026-05-01T10:00:00Z", "service_type": "withdrawal_crypto", "settlement_amount": null, "subject_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **200 Fee Preview** ```json { "fee_preview": { "binding": "non_binding", "computed_at": "2026-05-01T10:00:00Z", "enterprise_ca_version": 2, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USDC", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USDC", "value": "1.00" } }, "operation_type": "withdrawal_crypto", "platform_ca_version": 1 } } ``` ### Get indicative conversion price Quoted conversion direction. Read the indicative price surface when the caller needs a directional conversion estimate before creating the real conversion request. [API Reference: Get indicative conversion price (GET)](/api/reference/prices/prices-indicative) **Request URL — GET** ```http GET https://b2b.youhodler.com/api/prices/indicative?from_asset=USDC&to_asset=BTC&amount_basis=from&from_amount=250.00&account_ref=client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b ``` **200 Indicative Price** ```json { "amount_basis": "from", "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "expires_at": "2026-05-01T10:01:00.000Z", "flow_type": "conversion", "from_amount": { "currency": "USDC", "value": "250.00" }, "from_asset": "USDC", "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "price": "0.0000152", "price_type": "indicative" }, "pricing_mode": "indicative", "to_amount": { "currency": "BTC", "value": "0.00380000" }, "to_asset": "BTC" } ``` ### Create withdrawal Outbound account-scoped execution. Create a withdrawal when value should leave the operating account boundary through an explicit rail and destination. [API Reference: Create withdrawal (POST)](/api/reference/withdrawals/withdrawals-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/withdrawals ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "100.00" }, "rail": "fiat", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **202 Withdrawal Accepted** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "withdrawal", "family_params": {}, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### Create conversion In-account asset change. Create a conversion when the operating account needs to change one asset into another through the canonical conversion family. [API Reference: Create conversion (POST)](/api/reference/conversions/conversions-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/conversions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USD", "value": "250.00" }, "to_currency": "BTC" } ``` **202 Conversion Accepted** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "applied_rate": null, "approval_ref": null, "conversion_execution_id": null, "created_at": "2026-05-01T10:00:00Z", "failure_detail": null, "failure_reason": null, "family": "conversion", "fee_summary": null, "fee_transaction_ids": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "ledger_posted_target_amount": null, "leg_attempt_id": null, "posted_at": null, "principal_amount": { "currency": "USD", "value": "250.00" }, "principal_transaction_id": null, "settled_at": null, "source_gross_amount": null, "source_principal_amount": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_amount": null, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` ### Create on-ramp session Inbound purchase surface. Create an on-ramp session when a caller needs a guided fiat-to-asset acquisition flow tied back to an account boundary. [API Reference: Create on-ramp session (POST)](/api/reference/on-ramp-sessions/on-ramp-sessions-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/on-ramp-sessions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" } ``` **201 On-Ramp Session** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "on_ramp", "family_params": { "destination_payload": {}, "destination_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` ### Create off-ramp session Outbound liquidation surface. Create an off-ramp session when an asset position needs a guided asset-to-fiat exit path. [API Reference: Create off-ramp session (POST)](/api/reference/off-ramp-sessions/off-ramp-sessions-create) **Request URL — POST** ```http POST https://b2b.youhodler.com/api/off-ramp-sessions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "USDC", "value": "250.00" }, "destination": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "route_owner_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "target_currency": "EUR", "target_rail": "fiat" } ``` **201 Off-Ramp Session** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "off_ramp", "family_params": { "destination_payload": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_currency": "EUR", "target_rail": "fiat" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` --- # Action Tokens Source: https://business-api-docs.youhodler.com/api/reference/action-tokens Issue short-lived action tokens for delegated approval and governed follow-up actions. > **Workflow stage:** Action Tokens belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Approvals Source: https://business-api-docs.youhodler.com/api/reference/approvals Inspect approval work, resolve approval decisions, and discover eligible approvers. > **Workflow stage:** Approvals belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Auth Source: https://business-api-docs.youhodler.com/api/reference/auth Issue and inspect access credentials before any tenant-scoped control-plane call begins. > **Workflow stage:** Auth belongs to Activation . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Balances Source: https://business-api-docs.youhodler.com/api/reference/balances Inspect current balance views across enterprise and client-owned account boundaries. > **Workflow stage:** Balances belongs to Settlement . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Capabilities Source: https://business-api-docs.youhodler.com/api/reference/capabilities Inspect the capability vocabulary and override capability posture where the API allows it. > **Workflow stage:** Capabilities belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Client Accounts Source: https://business-api-docs.youhodler.com/api/reference/client-accounts Create and manage financial-account surfaces owned by individual clients. > **Workflow stage:** Client Accounts belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Clients Source: https://business-api-docs.youhodler.com/api/reference/clients Create and manage downstream clients that operate beneath the enterprise perimeter. > **Workflow stage:** Clients belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Commercial Agreements Source: https://business-api-docs.youhodler.com/api/reference/commercial-agreements Commercial Agreements method surfaces in the tenant-facing API. > **Workflow stage:** Commercial Agreements belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Conversion Pairs Source: https://business-api-docs.youhodler.com/api/reference/conversion-pairs Conversion Pairs method surfaces in the tenant-facing API. > **Workflow stage:** Conversion Pairs belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Conversions Source: https://business-api-docs.youhodler.com/api/reference/conversions Create, inspect, preview, and cancel conversion operations across supported assets. > **Workflow stage:** Conversions belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Crypto Networks Source: https://business-api-docs.youhodler.com/api/reference/crypto-networks Create and manage crypto-network records that constrain supported chain routing. > **Workflow stage:** Crypto Networks belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Deposit Instructions Source: https://business-api-docs.youhodler.com/api/reference/deposit-instructions Inspect deposit instruction surfaces that tell callers how to route inbound funds. > **Workflow stage:** Deposit Instructions belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Deposits Source: https://business-api-docs.youhodler.com/api/reference/deposits Inspect deposit operations and their execution state through a tenant-facing read model. > **Workflow stage:** Deposits belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Enterprises Source: https://business-api-docs.youhodler.com/api/reference/enterprises Read or admit the enterprise perimeter that owns tenant topology, governance, and downstream operating surfaces. > **Workflow stage:** Enterprises belongs to Activation . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Events Source: https://business-api-docs.youhodler.com/api/reference/events Inspect the event log that mirrors execution and governance state changes over time. > **Workflow stage:** Events belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # External Funding Source: https://business-api-docs.youhodler.com/api/reference/external-funding External Funding method surfaces in the tenant-facing API. > **Workflow stage:** External Funding belongs to Settlement . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # External Settlement Conversions Source: https://business-api-docs.youhodler.com/api/reference/external-settlement-conversions External Settlement Conversions method surfaces in the tenant-facing API. > **Workflow stage:** External Settlement Conversions belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Fee Previews Source: https://business-api-docs.youhodler.com/api/reference/fee-previews Calculate fee previews before execution so the caller can inspect expected charges. > **Workflow stage:** Fee Previews belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Financial Accounts Source: https://business-api-docs.youhodler.com/api/reference/financial-accounts Financial Accounts method surfaces in the tenant-facing API. > **Workflow stage:** Financial Accounts belongs to Financial Accounts . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Funding Endpoints Source: https://business-api-docs.youhodler.com/api/reference/funding-endpoints Provision and inspect funding endpoint surfaces used for inbound liquidity flows. > **Workflow stage:** Funding Endpoints belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Identity Providers Source: https://business-api-docs.youhodler.com/api/reference/identity-providers Manage external identity-provider bindings that federate users into the tenant perimeter. > **Workflow stage:** Identity Providers belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Internal Transfers Source: https://business-api-docs.youhodler.com/api/reference/internal-transfers Move liquidity between account references and inspect transfer lifecycle state. > **Workflow stage:** Internal Transfers belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # KYC Source: https://business-api-docs.youhodler.com/api/reference/kyc KYC method surfaces in the tenant-facing API. > **Workflow stage:** KYC belongs to KYC . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Legal Source: https://business-api-docs.youhodler.com/api/reference/legal Legal method surfaces in the tenant-facing API. > **Workflow stage:** Legal belongs to Compliance . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Loans Source: https://business-api-docs.youhodler.com/api/reference/loans Loans method surfaces in the tenant-facing API. > **Workflow stage:** Loans belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Master Accounts Source: https://business-api-docs.youhodler.com/api/reference/master-accounts Inspect the enterprise-owned financial boundary that anchors tenant-wide liquidity before downstream distribution starts. > **Workflow stage:** Master Accounts belongs to Activation . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Me Source: https://business-api-docs.youhodler.com/api/reference/me Me method surfaces in the tenant-facing API. > **Workflow stage:** Me belongs to Auth . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Off-ramp Sessions Source: https://business-api-docs.youhodler.com/api/reference/off-ramp-sessions Off-ramp Sessions method surfaces in the tenant-facing API. > **Workflow stage:** Off-ramp Sessions belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # On-ramp Sessions Source: https://business-api-docs.youhodler.com/api/reference/on-ramp-sessions On-ramp Sessions method surfaces in the tenant-facing API. > **Workflow stage:** On-ramp Sessions belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Onboarding Source: https://business-api-docs.youhodler.com/api/reference/onboarding Onboarding method surfaces in the tenant-facing API. > **Workflow stage:** Onboarding belongs to Onboarding . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Operations Activity Exports Source: https://business-api-docs.youhodler.com/api/reference/operations-activity-exports Operations Activity Exports method surfaces in the tenant-facing API. > **Workflow stage:** Operations Activity Exports belongs to Reporting . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Payment Methods Source: https://business-api-docs.youhodler.com/api/reference/payment-methods Create and manage payment-method records used to initiate rail-specific flows. > **Workflow stage:** Payment Methods belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Payout Methods Source: https://business-api-docs.youhodler.com/api/reference/payout-methods Create and manage payout-method records used for outbound execution surfaces. > **Workflow stage:** Payout Methods belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Policies Source: https://business-api-docs.youhodler.com/api/reference/policies Create and manage the policy surface that constrains governed execution. > **Workflow stage:** Policies belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Prices Source: https://business-api-docs.youhodler.com/api/reference/prices Read indicative pricing surfaces used before a conversion or rate-sensitive operation. > **Workflow stage:** Prices belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Role Assignments Source: https://business-api-docs.youhodler.com/api/reference/role-assignments Grant or revoke role bindings across the topology and inspect how access is attached. > **Workflow stage:** Role Assignments belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Roles Source: https://business-api-docs.youhodler.com/api/reference/roles Define reusable capability bundles that can later be assigned to human or service actors. > **Workflow stage:** Roles belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Sandbox Source: https://business-api-docs.youhodler.com/api/reference/sandbox Simulate external reviews and transfers, then observe the normal resource states and webhooks. These operations are available only in sandbox and return **404 in production**. Follow the [sandbox testing guide](/guides/sandbox-testing) for a deposit and withdrawal walkthrough. Download the sandbox contract as [YAML](/openapi-sandbox.yaml) or [JSON](/openapi-sandbox.json). ## Simulation methods --- # Service Accounts Source: https://business-api-docs.youhodler.com/api/reference/service-accounts Provision backend execution identities and rotate or revoke their credentials over time. > **Workflow stage:** Service Accounts belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # User Action Audit Entries Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-entries User Action Audit Entries method surfaces in the tenant-facing API. > **Workflow stage:** User Action Audit Entries belongs to Audit . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # User Action Audit Exports Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-exports User Action Audit Exports method surfaces in the tenant-facing API. > **Workflow stage:** User Action Audit Exports belongs to Audit . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # User Invitations Source: https://business-api-docs.youhodler.com/api/reference/user-invitations User Invitations method surfaces in the tenant-facing API. > **Workflow stage:** User Invitations belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Users Source: https://business-api-docs.youhodler.com/api/reference/users Create, inspect, and manage human actors that operate inside the tenant perimeter. > **Workflow stage:** Users belongs to Setup . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Webhook Subscriptions Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions Webhook Subscriptions method surfaces in the tenant-facing API. > **Workflow stage:** Webhook Subscriptions belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Withdrawal Destinations Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations Create and manage outbound destinations used by withdrawal execution flows. > **Workflow stage:** Withdrawal Destinations belongs to Distribution . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Withdrawals Source: https://business-api-docs.youhodler.com/api/reference/withdrawals Create, inspect, and cancel withdrawal operations where the public surface allows it. > **Workflow stage:** Withdrawals belongs to Live Operations . This family page keeps the exact methods together, but the stage remains metadata so the API reference stays organized by family first. ## Methods In This Family --- # Issue action token Source: https://business-api-docs.youhodler.com/api/reference/action-tokens/action-tokens-create **Authentication:** Send `Authorization: Bearer `. **MFA assurance:** `action_token.issue`. A step-up challenge returns `insufficient_user_authentication`; authenticate at the requested assurance before retrying. Issues a short-lived action token that authorises a specific money-movement command. The token is bound to the caller and to the command digest of the requested action. Pass it in the `X-Action-Token` header when submitting the authorised command (e.g. `POST /withdrawals`). Pure service callers have no human-confirmation requirement and do not obtain action tokens: issuance requires a human subject and rejects a pure service subject with HTTP 403. Enterprise/client human callers whose session does not satisfy the scope-level MFA assurance policy receive `401` with `code = insufficient_user_authentication`; follow the `WWW-Authenticate` header `acr_values` and `max_age` challenge, complete step-up at the IdP, then retry this request. Platform-bound humans always meet a mandatory MFA floor. Request shapes, in order of preference: - `{ action: "", command: { ... } }` — edge validates the command and computes the digest server-side. Submit the same command values to the guarded endpoint. Object key order is canonicalized; withdrawal commands also normalize the money and destination fields before hashing. Supported commands: - `withdrawal.create` → `POST /withdrawals` - `conversion.create` → `POST /conversions` - `external_settlement_conversion.create` → `POST /external-settlement-conversions` - `{ action: "withdrawal.create", withdrawal: { ... } }` — the original withdrawal-only field name, kept for compatibility; issues the same digest as the generic form. - `{ command_digest: "..." }` — escape hatch for guarded commands with no structured variant yet. Callers must reproduce edge canonicalisation themselves, so prefer the structured form wherever one exists. Digests are hexadecimal SHA-256 values without a sha256: prefix. Tokens are bound to the human subject and command, expire after five minutes and can be consumed once. Credential issuance bypasses durable idempotency response caching. Each request issues a fresh single-use token; retries must obtain and use a fresh token. ## Request Required request body. ### Request body schema At least one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action` | "withdrawal.create" | Yes | | | `command` | object or object | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 1.command At least one alternative must match. ###### Request body schema: alternative 1.command: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `destination` | object | No | No additional fields | | `destination_id` | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string | No | minLength: 1 | | `rail` | "crypto" / "fiat" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 1.command: alternative 1.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema: alternative 1.command: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1 | | `memo` | string or null | No | | Additional fields are not accepted. ###### Request body schema: alternative 1.command: alternative 1.destination.memo At least one alternative must match. ###### Request body schema: alternative 1.command: alternative 1.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 1.command: alternative 1.destination.memo: alternative 2 Type: `null`. ###### Request body schema: alternative 1.command: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `rail` | "fiat" | Yes | | | `withdrawal_destination_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### Request body schema: alternative 1.command: alternative 2.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action` | "conversion.create" | Yes | | | `command` | object | Yes | No additional fields | Additional fields are not accepted. ##### Request body schema: alternative 2.command | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_idempotency_key` | string | No | minLength: 1 | | `from_amount` | object | Yes | No additional fields | | `to_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. ###### Request body schema: alternative 2.command.from_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. #### Request body schema: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action` | "external_settlement_conversion.create" | Yes | | | `command` | object | Yes | No additional fields | Additional fields are not accepted. ##### Request body schema: alternative 3.command | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_idempotency_key` | string | No | minLength: 1 | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `source_amount` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. ###### Request body schema: alternative 3.command.source_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. #### Request body schema: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action` | "withdrawal.create" | Yes | | | `withdrawal` | object or object | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 4.withdrawal At least one alternative must match. ###### Request body schema: alternative 4.withdrawal: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `destination` | object | No | No additional fields | | `destination_id` | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string | No | minLength: 1 | | `rail` | "crypto" / "fiat" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 4.withdrawal: alternative 1.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema: alternative 4.withdrawal: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1 | | `memo` | string or null | No | | Additional fields are not accepted. ###### Request body schema: alternative 4.withdrawal: alternative 1.destination.memo At least one alternative must match. ###### Request body schema: alternative 4.withdrawal: alternative 1.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 4.withdrawal: alternative 1.destination.memo: alternative 2 Type: `null`. ###### Request body schema: alternative 4.withdrawal: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `rail` | "fiat" | Yes | | | `withdrawal_destination_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### Request body schema: alternative 4.withdrawal: alternative 2.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. #### Request body schema: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `command_digest` | string | Yes | Pre-computed command digest. Escape hatch for guarded commands with no structured variant yet — prefer the `action` form, which covers withdrawal.create, conversion.create, external_settlement_conversion.create. minLength: 1 | Additional fields are not accepted. **Request URL — POST** ```http POST /action-tokens ``` **Request Body — application/json** ```json { "action": "conversion.create", "command": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USDT", "value": "100.00" }, "to_currency": "BTC" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "bound_actor": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "bound_command_digest": "a67a92ab1ea536ece3702cb97990040a45948c453aeb585e5ed1d8f2ce7734af", "expires_at": "2026-05-01T10:00:00Z", "token": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Additional user authentication is required** Additional user authentication is required. The response includes `code = insufficient_user_authentication`; the `WWW-Authenticate` header carries RFC 9470 `acr_values` and `max_age` parameters that tell the client which step-up assurance to request before retrying. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bound_actor` | string | Yes | | | `bound_command_digest` | string | Yes | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `token` | string | Yes | | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "insufficient_user_authentication" | Yes | | | `data` | object | Yes | No additional fields | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | Yes | | | `max_age` | string | Yes | | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `WWW-Authenticate` | string | RFC 9470 challenge. `acr_values` is `urn:yh:acr:mfa` for mandatory MFA policy and `urn:yh:acr:mfa-if-enrolled` for optional critical-step-up policy. | ### Response 403 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 404 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 409 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 500 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Approve approval Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-approve **Authentication:** Send `Authorization: Bearer `. **MFA assurance:** `approval.decide`. A step-up challenge returns `insufficient_user_authentication`; authenticate at the requested assurance before retrying. Records an eligible human approval on a pending case. The caller needs approvals.decide, scope coverage and any role named in the requirement snapshot; initiator_cannot_approve excludes the initiator when enabled. The case stays pending until enough distinct human approvals are collected, then becomes approved. MFA assurance applies to this decision surface; a step-up challenge is returned when the current session does not meet the resolved requirement. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `approval_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /approvals/{approval_id}/approve ``` **Request Body — application/json** ```json { "reason": "Reviewed request" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "action_family": "withdrawal", "collected_human_approvals": 1, "created_at": "2026-05-01T10:00:00Z", "decision": { "decided_at": "2026-05-01T10:00:00Z", "decided_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "reason": "Approved after review" }, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "approved", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Additional user authentication is required** Additional user authentication is required. The response includes `code = insufficient_user_authentication`; the `WWW-Authenticate` header carries RFC 9470 `acr_values` and `max_age` parameters that tell the client which step-up assurance to request before retrying. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | string | Yes | minLength: 1 | | `collected_human_approvals` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `decision` | object or null | No | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `governed_ref` | string or string | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `initiated_by` | object | Yes | No additional fields | | `operation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requirement_snapshot` | object | Yes | No additional fields | | `resource` | "approval" | Yes | | | `status` | "pending" / "approved" / "rejected" / "cancelled" / "expired" | Yes | | | `subject_display` | object or null | No | | | `subject_ref` | string or null | No | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.decision At least one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `decided_at` | string or null | No | | | `decided_by` | object or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_at At least one alternative must match. ###### application/json body.decision: alternative 1.decided_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.decision: alternative 1.decided_at: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 Type: `null`. ##### application/json body.governed_ref At least one alternative must match. ###### application/json body.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.initiated_by | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.actor At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.actor: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.federation At least one alternative must match. ###### application/json body.initiated_by.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.initiated_by.federation: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject: alternative 2 Type: `null`. ##### application/json body.requirement_snapshot | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `authority_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `expires_at` | string or null | No | | | `governed_ref` | string or string | Yes | | | `initiator_cannot_approve` | boolean | Yes | | | `reason_code` | string | Yes | minLength: 1 | | `required_human_approvals` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `requirement_key` | string | Yes | minLength: 1 | | `source` | "policy" | Yes | | Additional fields are not accepted. ###### application/json body.requirement_snapshot.approver_role_ref At least one alternative must match. ###### application/json body.requirement_snapshot.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.expires_at At least one alternative must match. ###### application/json body.requirement_snapshot.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.requirement_snapshot.expires_at: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.governed_ref At least one alternative must match. ###### application/json body.requirement_snapshot.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.subject_display At least one alternative must match. ###### application/json body.subject_display: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `current_email` | string or null | Yes | | | `new_email` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_display: alternative 1.current_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.current_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.current_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 1.new_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 2 Type: `null`. ##### application/json body.subject_ref At least one alternative must match. ###### application/json body.subject_ref: alternative 1 Type: `string`. pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "insufficient_user_authentication" | Yes | | | `data` | object | Yes | No additional fields | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | Yes | | | `max_age` | string | Yes | | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `WWW-Authenticate` | string | RFC 9470 challenge. `acr_values` is `urn:yh:acr:mfa` for mandatory MFA policy and `urn:yh:acr:mfa-if-enrolled` for optional critical-step-up policy. | ### Response 403 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 404 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 409 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 500 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get approval](/api/reference/approvals/approvals-get) — Read current state first - `GET` [List eligible approvers](/api/reference/approvals/approvals-eligible-approvers) — Verify caller is eligible to approve --- # Cancel approval Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-cancel **Authentication:** Send `Authorization: Bearer `. Cancels a pending case on behalf of its original initiator. The edge requires approvals.decide; downstream also verifies that the caller is the original initiator. An optional nullable reason may be supplied. This route has no approval-decision MFA assurance gate. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `approval_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /approvals/{approval_id}/cancel ``` **Request Body — application/json** ```json { "reason": "Reviewed request" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": { "decided_at": "2026-05-01T10:00:00Z", "decided_by": null, "reason": "Cancelled by the original initiator" }, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "cancelled", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | string | Yes | minLength: 1 | | `collected_human_approvals` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `decision` | object or null | No | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `governed_ref` | string or string | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `initiated_by` | object | Yes | No additional fields | | `operation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requirement_snapshot` | object | Yes | No additional fields | | `resource` | "approval" | Yes | | | `status` | "pending" / "approved" / "rejected" / "cancelled" / "expired" | Yes | | | `subject_display` | object or null | No | | | `subject_ref` | string or null | No | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.decision At least one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `decided_at` | string or null | No | | | `decided_by` | object or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_at At least one alternative must match. ###### application/json body.decision: alternative 1.decided_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.decision: alternative 1.decided_at: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 Type: `null`. ##### application/json body.governed_ref At least one alternative must match. ###### application/json body.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.initiated_by | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.actor At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.actor: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.federation At least one alternative must match. ###### application/json body.initiated_by.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.initiated_by.federation: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject: alternative 2 Type: `null`. ##### application/json body.requirement_snapshot | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `authority_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `expires_at` | string or null | No | | | `governed_ref` | string or string | Yes | | | `initiator_cannot_approve` | boolean | Yes | | | `reason_code` | string | Yes | minLength: 1 | | `required_human_approvals` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `requirement_key` | string | Yes | minLength: 1 | | `source` | "policy" | Yes | | Additional fields are not accepted. ###### application/json body.requirement_snapshot.approver_role_ref At least one alternative must match. ###### application/json body.requirement_snapshot.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.expires_at At least one alternative must match. ###### application/json body.requirement_snapshot.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.requirement_snapshot.expires_at: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.governed_ref At least one alternative must match. ###### application/json body.requirement_snapshot.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.subject_display At least one alternative must match. ###### application/json body.subject_display: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `current_email` | string or null | Yes | | | `new_email` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_display: alternative 1.current_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.current_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.current_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 1.new_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 2 Type: `null`. ##### application/json body.subject_ref At least one alternative must match. ###### application/json body.subject_ref: alternative 1 Type: `string`. pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get approval](/api/reference/approvals/approvals-get) — Read current state first --- # List eligible approvers Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-eligible-approvers **Authentication:** Send `Authorization: Bearer `. Lists currently eligible human approvers for the case, subject to approvals.read and visibility of its governed scope. Eligibility reflects decide capability, scope coverage, any named approver role and the initiator exclusion. Results are paginated; eligibility is checked again when a decision is submitted. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `approval_id` | path | string | Yes | format: uuid | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /approvals/{approval_id}/eligible-approvers ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "display_name": "Jane Smith", "eligibility_basis": "role_assignment", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "human_actor" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `eligibility_basis` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "human_actor" | Yes | | Additional fields are not accepted. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get approval](/api/reference/approvals/approvals-get) — Inspect the full approval request - `POST` [Approve approval](/api/reference/approvals/approvals-approve) — Approve if eligible --- # Get approval Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-get Requires at least one capability: `approvals.read` or `approvals.decide`. **Authentication:** Send `Authorization: Bearer `. Reads a visible approval case. The edge accepts approvals.read or approvals.decide; downstream visibility checks still apply to its governed scope. collected_human_approvals records the distinct people who have approved against requirement_snapshot.required_human_approvals. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `approval_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /approvals/{approval_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | string | Yes | minLength: 1 | | `collected_human_approvals` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `decision` | object or null | No | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `governed_ref` | string or string | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `initiated_by` | object | Yes | No additional fields | | `operation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requirement_snapshot` | object | Yes | No additional fields | | `resource` | "approval" | Yes | | | `status` | "pending" / "approved" / "rejected" / "cancelled" / "expired" | Yes | | | `subject_display` | object or null | No | | | `subject_ref` | string or null | No | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.decision At least one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `decided_at` | string or null | No | | | `decided_by` | object or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_at At least one alternative must match. ###### application/json body.decision: alternative 1.decided_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.decision: alternative 1.decided_at: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 Type: `null`. ##### application/json body.governed_ref At least one alternative must match. ###### application/json body.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.initiated_by | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.actor At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.actor: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.federation At least one alternative must match. ###### application/json body.initiated_by.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.initiated_by.federation: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject: alternative 2 Type: `null`. ##### application/json body.requirement_snapshot | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `authority_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `expires_at` | string or null | No | | | `governed_ref` | string or string | Yes | | | `initiator_cannot_approve` | boolean | Yes | | | `reason_code` | string | Yes | minLength: 1 | | `required_human_approvals` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `requirement_key` | string | Yes | minLength: 1 | | `source` | "policy" | Yes | | Additional fields are not accepted. ###### application/json body.requirement_snapshot.approver_role_ref At least one alternative must match. ###### application/json body.requirement_snapshot.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.expires_at At least one alternative must match. ###### application/json body.requirement_snapshot.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.requirement_snapshot.expires_at: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.governed_ref At least one alternative must match. ###### application/json body.requirement_snapshot.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.subject_display At least one alternative must match. ###### application/json body.subject_display: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `current_email` | string or null | Yes | | | `new_email` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_display: alternative 1.current_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.current_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.current_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 1.new_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 2 Type: `null`. ##### application/json body.subject_ref At least one alternative must match. ###### application/json body.subject_ref: alternative 1 Type: `string`. pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List approvals](/api/reference/approvals/approvals-list) — List all approvals - `POST` [Approve approval](/api/reference/approvals/approvals-approve) — Approve this request - `POST` [Reject approval](/api/reference/approvals/approvals-reject) — Reject this request - `POST` [Cancel approval](/api/reference/approvals/approvals-cancel) — Cancel this request - `GET` [List eligible approvers](/api/reference/approvals/approvals-eligible-approvers) — Who can approve this request --- # List approvals Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-list Requires at least one capability: `approvals.read` or `approvals.decide`. **Authentication:** Send `Authorization: Bearer `. Lists approval cases visible in the required topology scope. Repeat status to select several states. The edge accepts approvals.read or approvals.decide; tenant queues still require read authority over the requested scope, while the platform queue also admits its authorized deciders. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "pending" / "approved" / "rejected" / "cancelled" / "expired" or "pending" / "approved" / "rejected" / "cancelled" / "expired"[] | No | | | `operation_id` | query | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /approvals ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": null, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | string | Yes | minLength: 1 | | `collected_human_approvals` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `decision` | object or null | No | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `governed_ref` | string or string | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `initiated_by` | object | Yes | No additional fields | | `operation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requirement_snapshot` | object | Yes | No additional fields | | `resource` | "approval" | Yes | | | `status` | "pending" / "approved" / "rejected" / "cancelled" / "expired" | Yes | | | `subject_display` | object or null | No | | | `subject_ref` | string or null | No | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.decision At least one alternative must match. ###### application/json body.items item.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `decided_at` | string or null | No | | | `decided_by` | object or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_at At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.decision: alternative 1.decided_at: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.actor: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.federation At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.federation: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 1.subject: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.decided_by: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 1.reason At least one alternative must match. ###### application/json body.items item.decision: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.items item.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 2 Type: `null`. ###### application/json body.items item.governed_ref At least one alternative must match. ###### application/json body.items item.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.actor At least one alternative must match. ###### application/json body.items item.initiated_by.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.initiated_by.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.actor: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.approved_by At least one alternative must match. ###### application/json body.items item.initiated_by.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.initiated_by.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.initiated_by.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.initiated_by.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.federation At least one alternative must match. ###### application/json body.items item.initiated_by.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.initiated_by.federation: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.initiated_by At least one alternative must match. ###### application/json body.items item.initiated_by.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.subject At least one alternative must match. ###### application/json body.items item.initiated_by.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.initiated_by.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.initiated_by.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.initiated_by.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.initiated_by.subject: alternative 2 Type: `null`. ###### application/json body.items item.requirement_snapshot | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `authority_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `expires_at` | string or null | No | | | `governed_ref` | string or string | Yes | | | `initiator_cannot_approve` | boolean | Yes | | | `reason_code` | string | Yes | minLength: 1 | | `required_human_approvals` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `requirement_key` | string | Yes | minLength: 1 | | `source` | "policy" | Yes | | Additional fields are not accepted. ###### application/json body.items item.requirement_snapshot.approver_role_ref At least one alternative must match. ###### application/json body.items item.requirement_snapshot.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.requirement_snapshot.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.items item.requirement_snapshot.expires_at At least one alternative must match. ###### application/json body.items item.requirement_snapshot.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.requirement_snapshot.expires_at: alternative 2 Type: `null`. ###### application/json body.items item.requirement_snapshot.governed_ref At least one alternative must match. ###### application/json body.items item.requirement_snapshot.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.requirement_snapshot.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_display At least one alternative must match. ###### application/json body.items item.subject_display: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `current_email` | string or null | Yes | | | `new_email` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_display: alternative 1.current_email At least one alternative must match. ###### application/json body.items item.subject_display: alternative 1.current_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.items item.subject_display: alternative 1.current_email: alternative 2 Type: `null`. ###### application/json body.items item.subject_display: alternative 1.new_email At least one alternative must match. ###### application/json body.items item.subject_display: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.items item.subject_display: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.items item.subject_display: alternative 2 Type: `null`. ###### application/json body.items item.subject_ref At least one alternative must match. ###### application/json body.items item.subject_ref: alternative 1 Type: `string`. pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_ref: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get approval](/api/reference/approvals/approvals-get) — Fetch a single approval by ID - `POST` [Approve approval](/api/reference/approvals/approvals-approve) — Approve a pending request - `POST` [Reject approval](/api/reference/approvals/approvals-reject) — Reject a pending request --- # Reject approval Source: https://business-api-docs.youhodler.com/api/reference/approvals/approvals-reject **Authentication:** Send `Authorization: Bearer `. **MFA assurance:** `approval.decide`. A step-up challenge returns `insufficient_user_authentication`; authenticate at the requested assurance before retrying. Rejects a pending case with one eligible human decision, regardless of the approval quorum. The caller needs approvals.decide, scope coverage and any role named in the requirement snapshot; initiator_cannot_approve excludes the initiator when enabled. MFA assurance applies to this decision surface; a step-up challenge is returned when the current session does not meet the resolved requirement. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `approval_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /approvals/{approval_id}/reject ``` **Request Body — application/json** ```json { "reason": "Reviewed request" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "action_family": "withdrawal", "collected_human_approvals": 0, "created_at": "2026-05-01T10:00:00Z", "decision": { "decided_at": "2026-05-01T10:00:00Z", "decided_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "11111111-1111-4111-8111-111111111111", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "reason": "Rejected after review" }, "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiated_by": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requirement_snapshot": { "authority_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "expires_at": "2026-05-02T10:00:00Z", "governed_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "reason_code": "high_value", "required_human_approvals": 1, "requirement_key": "withdrawal_approval", "source": "policy" }, "resource": "approval", "status": "rejected", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Additional user authentication is required** Additional user authentication is required. The response includes `code = insufficient_user_authentication`; the `WWW-Authenticate` header carries RFC 9470 `acr_values` and `max_age` parameters that tell the client which step-up assurance to request before retrying. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | string | Yes | minLength: 1 | | `collected_human_approvals` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `decision` | object or null | No | | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `governed_ref` | string or string | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `initiated_by` | object | Yes | No additional fields | | `operation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requirement_snapshot` | object | Yes | No additional fields | | `resource` | "approval" | Yes | | | `status` | "pending" / "approved" / "rejected" / "cancelled" / "expired" | Yes | | | `subject_display` | object or null | No | | | `subject_ref` | string or null | No | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.decision At least one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `decided_at` | string or null | No | | | `decided_by` | object or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_at At least one alternative must match. ###### application/json body.decision: alternative 1.decided_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.decision: alternative 1.decided_at: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.actor: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.approved_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.federation: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.initiated_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 1.subject: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.decided_by: alternative 2 Type: `null`. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 Type: `null`. ##### application/json body.governed_ref At least one alternative must match. ###### application/json body.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.initiated_by | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.actor At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.actor: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.approved_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.initiated_by.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.federation At least one alternative must match. ###### application/json body.initiated_by.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.initiated_by.federation: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.initiated_by: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.initiated_by.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.initiated_by.subject: alternative 2 Type: `null`. ##### application/json body.requirement_snapshot | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `authority_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `expires_at` | string or null | No | | | `governed_ref` | string or string | Yes | | | `initiator_cannot_approve` | boolean | Yes | | | `reason_code` | string | Yes | minLength: 1 | | `required_human_approvals` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `requirement_key` | string | Yes | minLength: 1 | | `source` | "policy" | Yes | | Additional fields are not accepted. ###### application/json body.requirement_snapshot.approver_role_ref At least one alternative must match. ###### application/json body.requirement_snapshot.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.expires_at At least one alternative must match. ###### application/json body.requirement_snapshot.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.requirement_snapshot.expires_at: alternative 2 Type: `null`. ###### application/json body.requirement_snapshot.governed_ref At least one alternative must match. ###### application/json body.requirement_snapshot.governed_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.requirement_snapshot.governed_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.subject_display At least one alternative must match. ###### application/json body.subject_display: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `current_email` | string or null | Yes | | | `new_email` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_display: alternative 1.current_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.current_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.current_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 1.new_email At least one alternative must match. ###### application/json body.subject_display: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.subject_display: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.subject_display: alternative 2 Type: `null`. ##### application/json body.subject_ref At least one alternative must match. ###### application/json body.subject_ref: alternative 1 Type: `string`. pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "insufficient_user_authentication" | Yes | | | `data` | object | Yes | No additional fields | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | Yes | | | `max_age` | string | Yes | | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `WWW-Authenticate` | string | RFC 9470 challenge. `acr_values` is `urn:yh:acr:mfa` for mandatory MFA policy and `urn:yh:acr:mfa-if-enrolled` for optional critical-step-up policy. | ### Response 403 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 404 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 409 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 500 schema Content type: `application/json`. See [response 403 schema](#response-403-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get approval](/api/reference/approvals/approvals-get) — Read current state first --- # Resolve a federated sign-in provider Source: https://business-api-docs.youhodler.com/api/reference/auth/oauth-provider **Authentication:** This endpoint does not require a bearer token. Returns authorization-code flow endpoints only when the exact issuer and client ID are registered and active. The endpoints are read from the provider OIDC discovery document by identity-service. This public endpoint also exposes the registered workspace legal name as organization_name; it is null when the name lookup fails or times out. `end_session_endpoint` is the provider’s RP-initiated logout from the same discovery document, `null` when it has none (the console then restarts sign-in with `prompt=login&max_age=0`). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `issuer` | query | string | Yes | format: uri | | `client_id` | query | string | Yes | minLength: 1 | ## Request **Request URL — GET** ```http GET /oauth/federated-sign-in/provider ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "authorization_endpoint": "https://idp.partner.example.com/authorize", "client_id": "b2b-admin", "end_session_endpoint": "https://idp.partner.example.com/logout", "issuer": "https://idp.partner.example.com", "organization_name": "Example Organization", "token_endpoint": "https://idp.partner.example.com/token" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `authorization_endpoint` | string | Yes | format: uri | | `authorization_response_iss_parameter_supported` | boolean | No | | | `client_id` | string | Yes | minLength: 1 | | `end_session_endpoint` | string or null | No | | | `issuer` | string | Yes | format: uri | | `organization_name` | string or null | No | | | `token_endpoint` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.end_session_endpoint At least one alternative must match. ###### application/json body.end_session_endpoint: alternative 1 Type: `string`. format: uri ###### application/json body.end_session_endpoint: alternative 2 Type: `null`. ##### application/json body.organization_name At least one alternative must match. ###### application/json body.organization_name: alternative 1 Type: `string`. minLength: 1 ###### application/json body.organization_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Revoke a refresh token Source: https://business-api-docs.youhodler.com/api/reference/auth/oauth-revoke **Authentication:** This endpoint does not require a bearer token. Ends the session of a refresh token (RFC 7009), as on sign-out: every refresh token of that session stops working. Answers `200` with an empty object for any well-formed request, whether or not the token is known, so the endpoint does not reveal which tokens exist. An access token is accepted and ignored: it stays valid until its `exp`. `token_type_hint` is optional; any value is accepted and ignored. A body without `token` is a `400` `invalid_request`. Refusals use the same `{error, error_description}` body as `/oauth/token`, with `Cache-Control: no-store`. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `token` | string | Yes | minLength: 1 | | `token_type_hint` | string | No | | Additional fields are not accepted. **Request URL — POST** ```http POST /oauth/revoke ``` **Request Body — application/json** ```json { "token": "yhrt_0000000000000000000000000000000000000000001", "token_type_hint": "refresh_token" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json {} ``` **400 The request was refused** The request was refused. On `/oauth/token`, `error` is `invalid_request` (malformed body, or a refused subject token or client), `invalid_grant` (every refused refresh) or `unsupported_grant_type`. On `/oauth/revoke` it is `invalid_request`. ```json { "error": "invalid_grant", "error_description": "The authorization grant or refresh token is invalid, expired or revoked." } ``` **401 Client authentication failed (`invalid_client`)** Client authentication failed (`invalid_client`). ```json { "error": "invalid_client", "error_description": "Client authentication failed." } ``` **500 Unexpected server error (`server_error`)** Unexpected server error (`server_error`). ```json { "error": "server_error", "error_description": "The server encountered an unexpected error." } ``` **503 The service is temporarily unavailable (`temporarily_unavailable`)** The service is temporarily unavailable (`temporarily_unavailable`); retry later. ```json { "error": "temporarily_unavailable", "error_description": "The service is temporarily unavailable. Try again later." } ``` ### Response 200 schema Content type: `application/json`. #### application/json body Type: `object`. No additional fields ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 500 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 503 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. --- # Issue access token Source: https://business-api-docs.youhodler.com/api/reference/auth/oauth-token **Authentication:** This endpoint does not require a bearer token. Issues a bearer access token for a service principal using `client_credentials`, or a federated human access token via `urn:ietf:params:oauth:grant-type:token-exchange`, and renews a human session with `refresh_token`. The `password` grant is not supported (`unsupported_grant_type`): human flows go through an external IdP plus token exchange. An enterprise identity backend authenticates `client_credentials` with `private_key_jwt` (RFC 7523): `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` and a `client_assertion` signed with its issuer key, `aud` = this endpoint, no `client_secret`; `401` `invalid_client` for failed client authentication, including a suspended IdP or an assertion issued before its last suspension. **Refresh.** Only a direct sign-in, a `token-exchange` without client credentials, returns `refresh_token` and `session_expires_in` (whole seconds until the session ends, 12 hours after the sign-in that started it by default); the two fields are present together or not at all. A partner `token-exchange` authenticated with `client_id` and `client_secret`, and `client_credentials`, return an access token only. Renew with `grant_type=refresh_token` and `refresh_token` (`400` `invalid_request` without it). No client authentication is needed and request fields cannot change the stored identity or authentication evidence: the answer carries a new access token and the next refresh token, with the identity and authentication of the original sign-in, or of the session’s latest promotion. A refresh token is single-use and, by default, expires after an hour without renewal. Presenting a used one without its still-active successor ends the whole session. Every refused refresh answers `400` `invalid_grant`, whatever the cause: an unknown, expired, used or revoked token, or a user, identity provider or tenant MFA requirement that changed since sign-in. After it, sign in again. A `503` does not itself revoke the session, but the rotation may already have committed; recover with the persisted successor as described below. **Recovery after a lost response.** Before refreshing or promoting, generate a cryptographically random 256-bit successor (`yhrt_` followed by 43 base64url characters), persist it together with the current refresh token, and send it as `next_refresh_token`. Keep that pair until a response is safely stored. After a timeout, network error or retryable server error, send an ordinary `refresh_token` grant with the same pair. If rotation committed, possession of the still-active successor recovers it without another rotation or extension of the idle or absolute deadline; all session checks still run. Recovery does not apply new authentication evidence. Without a persisted successor, retrying a spent token revokes the session. **Promotion.** A `token-exchange` that also carries the session’s current `refresh_token` promotes that session instead of starting a new one. This is how a session answers the `insufficient_user_authentication` challenge after re-authenticating. The `subject_token` is verified as at sign-in. It must be a fresh ID token of the same person, from the same identity provider and in the same tenant, and its `auth_time` must be at most 15 minutes old. The answer is a refresh’s: a new access token carrying the new authentication, the next refresh token, and `session_expires_in` counted to the session’s unchanged end. The presented refresh token now counts as used, and access tokens issued earlier are not upgraded. A partner `token-exchange` has no session to promote. Refusals answer as a refresh does: `400` `invalid_grant` for any refused promotion (another person, an assertion without a recent `auth_time`, a replayed assertion, or an unknown, expired, used or revoked refresh token), `500` `server_error`, or `503` `temporarily_unavailable`. A used refresh token ends the session, as on refresh, but only when the assertion passes the sign-in and its `auth_time` is recent; any other refused promotion consumes nothing. An empty `refresh_token` is `400` `invalid_request`. **Errors.** Every refusal is `{"error": , "error_description": }` (RFC 6749 §5.2) with `Cache-Control: no-store`. Descriptions are fixed public messages; subject exchange may distinguish suspended providers, authentication predating suspension, missing provisioning and missing MFA. Refresh refusals do not expose the actor’s state. A promotion may also explain missing MFA. Internal reason codes are never returned. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `audience` | string | No | | | `client_assertion` | string | No | minLength: 1 | | `client_assertion_type` | "urn:ietf:params:oauth:client-assertion-type:jwt-bearer" | No | | | `client_id` | string | No | | | `client_secret` | string | No | | | `grant_type` | "client_credentials" / "urn:ietf:params:oauth:grant-type:token-exchange" / "refresh_token" | Yes | | | `next_refresh_token` | string | No | pattern: `^yhrt_[A-Za-z0-9_-]{43}$` | | `refresh_token` | string | No | minLength: 1 | | `requested_token_type` | "urn:ietf:params:oauth:token-type:access_token" | No | | | `subject_token` | string | No | | | `subject_token_type` | "urn:ietf:params:oauth:token-type:id_token" / "urn:ietf:params:oauth:token-type:jwt" | No | | Additional fields are not accepted. **Request URL — POST** ```http POST /oauth/token ``` **Request Body — application/json** ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "grant_type": "client_credentials" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiOGUyZjFhMCJ9.sig", "expires_in": 3600, "issued_token_type": "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" } ``` **400 The request was refused** The request was refused. On `/oauth/token`, `error` is `invalid_request` (malformed body, or a refused subject token or client), `invalid_grant` (every refused refresh) or `unsupported_grant_type`. On `/oauth/revoke` it is `invalid_request`. ```json { "error": "invalid_grant", "error_description": "The authorization grant or refresh token is invalid, expired or revoked." } ``` **401 Client authentication failed (`invalid_client`)** Client authentication failed (`invalid_client`). ```json { "error": "invalid_client", "error_description": "Client authentication failed." } ``` **500 Unexpected server error (`server_error`)** Unexpected server error (`server_error`). ```json { "error": "server_error", "error_description": "The server encountered an unexpected error." } ``` **503 The service is temporarily unavailable (`temporarily_unavailable`)** The service is temporarily unavailable (`temporarily_unavailable`); retry later. ```json { "error": "temporarily_unavailable", "error_description": "The service is temporarily unavailable. Try again later." } ``` ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_token` | string | Yes | minLength: 1 | | `expires_in` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `issued_token_type` | "urn:ietf:params:oauth:token-type:access_token" | Yes | | | `refresh_token` | string | No | minLength: 1 | | `session_expires_in` | integer | No | maximum: 9007199254740991; exclusiveMinimum: 0 | | `token_type` | "Bearer" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 500 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. ### Response 503 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `error` | "invalid_request" / "invalid_client" / "invalid_grant" / "unsupported_grant_type" / "temporarily_unavailable" / "server_error" | Yes | | | `error_description` | string | Yes | | Additional fields are not accepted. **Related endpoints:** - `POST` [Create service account](/api/reference/service-accounts/service-accounts-create) — Provision the service account first - `POST` [Rotate service account secret](/api/reference/service-accounts/service-accounts-rotate-secret) — Rotate credentials when the secret expires --- # Get client-account balances Source: https://business-api-docs.youhodler.com/api/reference/balances/client-accounts-balances **Authentication:** Send `Authorization: Bearer `. Returns balances for a client account. Pass `?asset=USDC` to fetch a single balance; an omitted or empty asset returns the assets with operating or withdrawal-hold ledger rows. A requested asset without a matching ledger position returns 404. The response preserves ledger availability semantics: `available` excludes held funds, while `held` and `total` remain explicit and total = available + held. Internal conversion holds are excluded from these public totals. The accounts.read grant must cover the account or the call returns 404. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | | `asset` | query | string or "" | No | | ## Request **Request URL — GET** ```http GET /client-accounts/{client_account_id}/balances ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": null, "overdraft_limit": null, "overdraft_used": null, "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "client_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `available` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `held` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `overdraft_headroom` | string or null | No | | | `overdraft_limit` | string or null | No | | | `overdraft_used` | string or null | No | | | `owner_ref` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `owner_subtype` | "master_account" / "client_account" / "treasury" | Yes | | | `total` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.overdraft_headroom At least one alternative must match. ###### application/json body.items item.overdraft_headroom: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_headroom: alternative 2 Type: `null`. ###### application/json body.items item.overdraft_limit At least one alternative must match. ###### application/json body.items item.overdraft_limit: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_limit: alternative 2 Type: `null`. ###### application/json body.items item.overdraft_used At least one alternative must match. ###### application/json body.items item.overdraft_used: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_used: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get master-account balances Source: https://business-api-docs.youhodler.com/api/reference/balances/master-accounts-balances **Authentication:** Send `Authorization: Bearer `. Returns balances for a master account. Pass `?asset=USDC` to fetch a single balance; an omitted or empty asset returns the assets with operating or withdrawal-hold ledger rows. A requested asset without a matching ledger position returns 404. The response preserves ledger availability semantics: `available` excludes held funds, while `held` and `total` remain explicit and total = available + held. Internal conversion holds are excluded from these public totals. The accounts.read grant must cover the account or the call returns 404. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `master_account_id` | path | string | Yes | format: uuid | | `asset` | query | string or "" | No | | ## Request **Request URL — GET** ```http GET /master-accounts/{master_account_id}/balances ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "asset": "USDC", "available": "950.00", "held": "50.00", "overdraft_headroom": "400.00", "overdraft_limit": "500.00", "overdraft_used": "100.00", "owner_ref": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "owner_subtype": "master_account", "total": "1000.00", "updated_at": "2026-05-01T10:00:00Z" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `available` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `held` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `overdraft_headroom` | string or null | No | | | `overdraft_limit` | string or null | No | | | `overdraft_used` | string or null | No | | | `owner_ref` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `owner_subtype` | "master_account" / "client_account" / "treasury" | Yes | | | `total` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.overdraft_headroom At least one alternative must match. ###### application/json body.items item.overdraft_headroom: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_headroom: alternative 2 Type: `null`. ###### application/json body.items item.overdraft_limit At least one alternative must match. ###### application/json body.items item.overdraft_limit: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_limit: alternative 2 Type: `null`. ###### application/json body.items item.overdraft_used At least one alternative must match. ###### application/json body.items item.overdraft_used: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.overdraft_used: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List capabilities Source: https://business-api-docs.youhodler.com/api/reference/capabilities/capabilities-list **Authentication:** Send `Authorization: Bearer `. Lists feature enablement flags for the requested topology node, sorted by name. enabled resolves the platform default/override, enterprise override and client override chain; disabled entries remain visible. Requires feature_flags.read with scope coverage. These catalog flags do not describe the caller's role grants; use GET /me/capabilities for current effective RBAC authority. page_size defaults to 100 (maximum 200). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /capabilities ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "name": "deposit_fiat", "enabled": true }, { "name": "staking", "enabled": false }, { "name": "withdrawal", "enabled": true } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `enabled` | boolean | Yes | | Additional fields are not accepted. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create role](/api/reference/roles/roles-create) — Use capabilities to build a role - `PATCH` [Toggle capability override for client (deprecated)](/api/reference/capabilities/clients-capabilities-update) — Override capability posture for a client --- # Toggle capability override for client (deprecated) Source: https://business-api-docs.youhodler.com/api/reference/capabilities/clients-capabilities-update **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. Retired endpoint. Every authenticated call returns 410 deprecated_endpoint before reading the path or body; it cannot change a feature override. No request body or success response is supported. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | | | `capability_name` | path | string | Yes | | ## Request **Request URL — PATCH** ```http PATCH /clients/{client_id}/capabilities/{capability_name} ``` ## Responses **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **410 The endpoint has been retired and returns code deprecated_endpoint** The endpoint has been retired and returns code deprecated_endpoint. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 410 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). **Related endpoints:** - `GET` [List capabilities](/api/reference/capabilities/capabilities-list) — Inspect the full capability vocabulary - `GET` [Get client](/api/reference/clients/clients-get) — Read the client being updated --- # Close client account Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-close **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /client-accounts/{client_account_id}/close ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "closed", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend client account](/api/reference/client-accounts/client-accounts-suspend) — Suspend before closing - `GET` [Get client account](/api/reference/client-accounts/client-accounts-get) — Read current status --- # Create client account Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-create **Authentication:** Send `Authorization: Bearer `. The metadata field is accepted but is currently ignored and not persisted. Creates an additional operating account under the named active client. The first default account is created with the client; this route adds a sibling. Requires the Idempotency-Key header. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `metadata` | object or null | No | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. ##### Request body schema.display_name: alternative 2 Type: `null`. #### Request body schema.metadata At least one alternative must match. ##### Request body schema.metadata: alternative 1 Type: `object`. ##### Request body schema.metadata: alternative 2 Type: `null`. **Request URL — POST** ```http POST /client-accounts ``` **Request Body — application/json** ```json { "display_name": "Operating Account EUR", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get client account](/api/reference/client-accounts/client-accounts-get) — Read the created account - `GET` [Get client](/api/reference/clients/clients-get) — Verify the owning client - `GET` [List deposit instructions](/api/reference/deposit-instructions/deposit-instructions-list) — View deposit instructions for the account --- # Get client account Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /client-accounts/{client_account_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List client accounts](/api/reference/client-accounts/client-accounts-list) — List all accounts - `POST` [Suspend client account](/api/reference/client-accounts/client-accounts-suspend) — Suspend the account - `POST` [Close client account](/api/reference/client-accounts/client-accounts-close) — Close the account --- # List client accounts Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-list **Authentication:** Send `Authorization: Bearer `. List financial operating accounts attached to a client. The `scope_ref` query parameter is required and accepts a `clients/{uuid}` resource ref. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "suspended" / "closed" or "active" / "suspended" / "closed"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /client-accounts ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create client account](/api/reference/client-accounts/client-accounts-create) — Open a new account - `GET` [Get client account](/api/reference/client-accounts/client-accounts-get) — Fetch a single account by ID --- # Reactivate client account Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-reactivate **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /client-accounts/{client_account_id}/reactivate ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend client account](/api/reference/client-accounts/client-accounts-suspend) — Suspend again if needed - `GET` [Get client account](/api/reference/client-accounts/client-accounts-get) — Read current status --- # Suspend client account Source: https://business-api-docs.youhodler.com/api/reference/client-accounts/client-accounts-suspend **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /client-accounts/{client_account_id}/suspend ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Operating Account", "etag": "2026-05-01T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "client_account", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "client_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Reactivate client account](/api/reference/client-accounts/client-accounts-reactivate) — Reactivate after suspension - `GET` [Get client account](/api/reference/client-accounts/client-accounts-get) — Read current status --- # Close client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-close **Authentication:** Send `Authorization: Bearer `. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /clients/{client_id}/close ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "closed", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend client](/api/reference/clients/clients-suspend) — Suspend before closing - `GET` [Get client](/api/reference/clients/clients-get) — Read current status --- # Create client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-create **Authentication:** Send `Authorization: Bearer `. Create a client under an enterprise. The first default client account is provisioned atomically. Requires the Idempotency-Key header. Read-only verification stamps and workflow state are returned separately from partner-writable metadata. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `external_id` | string or null | No | | | `metadata` | object or null | No | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. ##### Request body schema.display_name: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.external_id: alternative 2 Type: `null`. #### Request body schema.metadata At least one alternative must match. ##### Request body schema.metadata: alternative 1 Type: `object`. ##### Request body schema.metadata: alternative 2 Type: `null`. **Request URL — POST** ```http POST /clients ``` **Request Body — application/json** ```json { "display_name": "Acme Corp", "external_id": "ext-client-0042", "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get client](/api/reference/clients/clients-get) — Read the created client - `POST` [Create client account](/api/reference/client-accounts/client-accounts-create) — Open a financial account for the client - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Assign roles to the new client --- # Get client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-get **Authentication:** Send `Authorization: Bearer `. Carries `first_access_method` of the client’s enterprise, from its onboarding record (`null` when there is none or it cannot be read). `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /clients/{client_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "first_access_method": "enterprise_idp", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `first_access_method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.first_access_method At least one alternative must match. ###### application/json body.first_access_method: alternative 1 Type: `"magic_link" / "passkey_enrolment" / "enterprise_idp"`. ###### application/json body.first_access_method: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `PATCH` [Update client](/api/reference/clients/clients-update) — Update client metadata - `GET` [List client accounts](/api/reference/client-accounts/client-accounts-list) — View accounts owned by this client - `POST` [Suspend client](/api/reference/clients/clients-suspend) — Suspend the client --- # List clients Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-list **Authentication:** Send `Authorization: Bearer `. List tenant clients under an enterprise scope. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `scope_ref` | query | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "suspended" / "closed" or "active" / "suspended" / "closed"[] | No | | | `external_id` | query | string or null | No | | | `q` | query | string | No | | | `verification` | query | "verified" / "in_progress" / "unverified" | No | | ## Request **Request URL — GET** ```http GET /clients ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.default_client_account At least one alternative must match. ###### application/json body.items item.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.default_client_account: alternative 2 Type: `null`. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ###### application/json body.items item.external_id At least one alternative must match. ###### application/json body.items item.external_id: alternative 1 Type: `string`. ###### application/json body.items item.external_id: alternative 2 Type: `null`. ###### application/json body.items item.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.items item.kyb_source: alternative 2 Type: `null`. ###### application/json body.items item.kyb_stage At least one alternative must match. ###### application/json body.items item.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.items item.kyb_stage: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state At least one alternative must match. ###### application/json body.items item.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.items item.kyb_state: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.items item.kyb_state_reason: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state_updated_at At least one alternative must match. ###### application/json body.items item.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.kyb_state_updated_at: alternative 2 Type: `null`. ###### application/json body.items item.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.items item.kyc_source: alternative 2 Type: `null`. ###### application/json body.items item.kyc_stage At least one alternative must match. ###### application/json body.items item.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.items item.kyc_stage: alternative 2 Type: `null`. ###### application/json body.items item.metadata At least one alternative must match. ###### application/json body.items item.metadata: alternative 1 Type: `object`. ###### application/json body.items item.metadata: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create client](/api/reference/clients/clients-create) — Create a new client - `GET` [Get client](/api/reference/clients/clients-get) — Fetch a single client by ID - `GET` [List client accounts](/api/reference/client-accounts/client-accounts-list) — List accounts owned by a client --- # Reactivate client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-reactivate **Authentication:** Send `Authorization: Bearer `. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /clients/{client_id}/reactivate ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend client](/api/reference/clients/clients-suspend) — Suspend again if needed - `GET` [Get client](/api/reference/clients/clients-get) — Read current status --- # Suspend client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-suspend **Authentication:** Send `Authorization: Bearer `. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /clients/{client_id}/suspend ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-001", "tier": "premium" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Reactivate client](/api/reference/clients/clients-reactivate) — Reactivate after suspension - `GET` [Get client](/api/reference/clients/clients-get) — Read current status --- # Update client Source: https://business-api-docs.youhodler.com/api/reference/clients/clients-update **Authentication:** Send `Authorization: Bearer `. Patch tenant client. Requires `If-Match` for optimistic concurrency. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding this operation’s capability through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); other callers receive the client without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `external_id` | string or null | No | | | `metadata` | object or null | No | | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. ##### Request body schema.display_name: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. ##### Request body schema.external_id: alternative 2 Type: `null`. #### Request body schema.metadata At least one alternative must match. ##### Request body schema.metadata: alternative 1 Type: `object`. ##### Request body schema.metadata: alternative 2 Type: `null`. **Request URL — PATCH** ```http PATCH /clients/{client_id} ``` **Request Body — application/json** ```json { "display_name": "Acme Corp Updated", "metadata": { "crm_id": "CRM-002" } } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "default_client_account": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "display_name": "Acme Corp Updated", "etag": "2026-05-01T10:00:00Z", "external_id": "ext-client-0042", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kyb_stage": null, "kyb_state": null, "kyb_state_updated_at": null, "kyc_stage": null, "metadata": { "crm_id": "CRM-002" }, "resource": "client", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_client_account` | string or null | No | | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `metadata` | object or null | No | | | `resource` | "client" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_client_account At least one alternative must match. ###### application/json body.default_client_account: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_client_account: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get client](/api/reference/clients/clients-get) — Read current state and ETag before updating --- # Create commercial agreement version Source: https://business-api-docs.youhodler.com/api/reference/commercial-agreements/enterprise-commercial-agreements-create **Authentication:** Send `Authorization: Bearer `. Creates an active version for the enterprise/client scope. effective_from must not precede the latest version. A new version supersedes the current active version at effective_from. An existing version with the same scope and effective_from is returned unchanged, even if the submitted bindings differ. At least one service binding is required; fee amounts use value and currency. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_scope` | object or object | Yes | | | `effective_from` | string | Yes | format: date-time | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `metadata` | object or null | No | | | `service_bindings` | object[] | Yes | minItems: 1 | Additional fields are not accepted. #### Request body schema.client_scope At least one alternative must match. ##### Request body schema.client_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "all_clients" | Yes | | Additional fields are not accepted. ##### Request body schema.client_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "single_client" | Yes | | Additional fields are not accepted. #### Request body schema.metadata At least one alternative must match. ##### Request body schema.metadata: alternative 1 Type: `object`. ##### Request body schema.metadata: alternative 2 Type: `null`. #### Request body schema.service_bindings Type: `object[]`. minItems: 1 ##### Request body schema.service_bindings item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_schedule` | object | Yes | No additional fields | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `minimum` | object or null | No | | | `maximum` | object or null | No | | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `metadata` | object or null | No | | | `model` | "fixed" / "bps" / "fixed_plus_bps" / "tiered" | Yes | | | `rounding_mode` | "half_up" / "up" / "down" or null | No | | | `tiers` | object[] or null | No | | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.minimum At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.minimum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.minimum: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.maximum At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.maximum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.maximum: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.bps At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### Request body schema.service_bindings item.fee_schedule.bps: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.fixed At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.fixed: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.metadata At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.metadata: alternative 1 Type: `object`. ###### Request body schema.service_bindings item.fee_schedule.metadata: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.rounding_mode At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.rounding_mode: alternative 1 Type: `"half_up" / "up" / "down"`. ###### Request body schema.service_bindings item.fee_schedule.rounding_mode: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.tiers At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 Type: `object[]`. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `up_to_amount` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.bps At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount At least one alternative must match. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 2 Type: `null`. ###### Request body schema.service_bindings item.fee_schedule.tiers: alternative 2 Type: `null`. **Request URL — POST** ```http POST /enterprise-commercial-agreements ``` **Request Body — application/json** ```json { "client_scope": { "kind": "all_clients" }, "effective_from": "2026-05-01T10:00:00Z", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "service_bindings": [ { "fee_schedule": { "bps": 25, "model": "bps" }, "service_type": "conversion" } ] } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "agreement": { "client_scope": { "kind": "all_clients" }, "created_at": "2026-05-01T10:00:00Z", "effective_from": "2026-05-01T10:00:00Z", "effective_to": null, "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "service_bindings": [ { "fee_schedule": { "bps": 25, "model": "bps" }, "service_type": "conversion" } ], "status": "active", "version": 1 } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `agreement` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.agreement | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_scope` | object or object | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_from` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_to` | string or null | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | No | | | `service_bindings` | object[] | Yes | | | `status` | "draft" / "active" / "superseded" | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.agreement.client_scope At least one alternative must match. ###### application/json body.agreement.client_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "all_clients" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.client_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "single_client" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.effective_to At least one alternative must match. ###### application/json body.agreement.effective_to: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.agreement.effective_to: alternative 2 Type: `null`. ###### application/json body.agreement.metadata At least one alternative must match. ###### application/json body.agreement.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings Type: `object[]`. ###### application/json body.agreement.service_bindings item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_schedule` | object | Yes | No additional fields | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `minimum` | object or null | No | | | `maximum` | object or null | No | | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `metadata` | object or null | No | | | `model` | "fixed" / "bps" / "fixed_plus_bps" / "tiered" | Yes | | | `rounding_mode` | "half_up" / "up" / "down" or null | No | | | `tiers` | object[] or null | No | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 1 Type: `"half_up" / "up" / "down"`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 Type: `object[]`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `up_to_amount` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get commercial agreement version Source: https://business-api-docs.youhodler.com/api/reference/commercial-agreements/enterprise-commercial-agreements-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `agreement_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /enterprise-commercial-agreements/{agreement_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "agreement": { "client_scope": { "kind": "all_clients" }, "created_at": "2026-05-01T10:00:00Z", "effective_from": "2026-05-01T10:00:00Z", "effective_to": null, "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "service_bindings": [ { "fee_schedule": { "bps": 25, "model": "bps" }, "service_type": "conversion" } ], "status": "active", "version": 1 } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `agreement` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.agreement | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_scope` | object or object | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_from` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_to` | string or null | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | No | | | `service_bindings` | object[] | Yes | | | `status` | "draft" / "active" / "superseded" | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.agreement.client_scope At least one alternative must match. ###### application/json body.agreement.client_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "all_clients" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.client_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "single_client" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.effective_to At least one alternative must match. ###### application/json body.agreement.effective_to: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.agreement.effective_to: alternative 2 Type: `null`. ###### application/json body.agreement.metadata At least one alternative must match. ###### application/json body.agreement.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings Type: `object[]`. ###### application/json body.agreement.service_bindings item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_schedule` | object | Yes | No additional fields | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `minimum` | object or null | No | | | `maximum` | object or null | No | | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `metadata` | object or null | No | | | `model` | "fixed" / "bps" / "fixed_plus_bps" / "tiered" | Yes | | | `rounding_mode` | "half_up" / "up" / "down" or null | No | | | `tiers` | object[] or null | No | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 1 Type: `"half_up" / "up" / "down"`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 Type: `object[]`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `up_to_amount` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List commercial agreement versions Source: https://business-api-docs.youhodler.com/api/reference/commercial-agreements/enterprise-commercial-agreements-list **Authentication:** Send `Authorization: Bearer `. Lists versions for one enterprise and one client scope. client_scope defaults to all_clients, which selects only the enterprise-wide agreement series; it does not include every single-client series. single_client requires client_ref belonging to that enterprise. service_type filters bindings; page_size defaults to 100 (maximum 200). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_ref` | query | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_scope` | query | "all_clients" / "single_client" | No | | | `client_ref` | query | string | No | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `service_type` | query | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" or null | No | | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | ## Request **Request URL — GET** ```http GET /enterprise-commercial-agreements ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "page": { "items": [ { "client_scope": { "kind": "all_clients" }, "created_at": "2026-05-01T10:00:00Z", "effective_from": "2026-05-01T10:00:00Z", "effective_to": null, "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "service_bindings": [ { "fee_schedule": { "bps": 25, "model": "bps" }, "service_type": "conversion" } ], "status": "active", "version": 1 } ], "next_page_token": null } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `page` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.page | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.page.items Type: `object[]`. ###### application/json body.page.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_scope` | object or object | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_from` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_to` | string or null | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | No | | | `service_bindings` | object[] | Yes | | | `status` | "draft" / "active" / "superseded" | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.page.items item.client_scope At least one alternative must match. ###### application/json body.page.items item.client_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "all_clients" | Yes | | Additional fields are not accepted. ###### application/json body.page.items item.client_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "single_client" | Yes | | Additional fields are not accepted. ###### application/json body.page.items item.effective_to At least one alternative must match. ###### application/json body.page.items item.effective_to: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.page.items item.effective_to: alternative 2 Type: `null`. ###### application/json body.page.items item.metadata At least one alternative must match. ###### application/json body.page.items item.metadata: alternative 1 Type: `object`. ###### application/json body.page.items item.metadata: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings Type: `object[]`. ###### application/json body.page.items item.service_bindings item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_schedule` | object | Yes | No additional fields | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `minimum` | object or null | No | | | `maximum` | object or null | No | | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `metadata` | object or null | No | | | `model` | "fixed" / "bps" / "fixed_plus_bps" / "tiered" | Yes | | | `rounding_mode` | "half_up" / "up" / "down" or null | No | | | `tiers` | object[] or null | No | | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.minimum At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.minimum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.minimum: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.maximum At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.maximum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.maximum: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.bps At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.page.items item.service_bindings item.fee_schedule.bps: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.fixed At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.fixed: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.metadata At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.metadata: alternative 1 Type: `object`. ###### application/json body.page.items item.service_bindings item.fee_schedule.metadata: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.rounding_mode At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.rounding_mode: alternative 1 Type: `"half_up" / "up" / "down"`. ###### application/json body.page.items item.service_bindings item.fee_schedule.rounding_mode: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 Type: `object[]`. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `up_to_amount` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.bps At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount At least one alternative must match. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 2 Type: `null`. ###### application/json body.page.items item.service_bindings item.fee_schedule.tiers: alternative 2 Type: `null`. ###### application/json body.page.next_page_token At least one alternative must match. ###### application/json body.page.next_page_token: alternative 1 Type: `string`. ###### application/json body.page.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Supersede commercial agreement version Source: https://business-api-docs.youhodler.com/api/reference/commercial-agreements/enterprise-commercial-agreements-supersede **Authentication:** Send `Authorization: Bearer `. Closes an agreement version by setting status to superseded and effective_to. Requires commercial_agreements.manage and read access because the controller reads the current agreement first. effective_to must not precede effective_from or be more than five minutes in the past. An already closed version returns 409. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `agreement_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `effective_to` | string | Yes | format: date-time | Additional fields are not accepted. **Request URL — POST** ```http POST /enterprise-commercial-agreements/{agreement_id}/supersede ``` **Request Body — application/json** ```json { "effective_to": "2026-05-01T10:00:00Z" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "agreement": { "client_scope": { "kind": "all_clients" }, "created_at": "2026-05-01T10:00:00Z", "effective_from": "2026-05-01T10:00:00Z", "effective_to": "2026-05-01T10:00:00Z", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "service_bindings": [ { "fee_schedule": { "bps": 25, "model": "bps" }, "service_type": "conversion" } ], "status": "superseded", "version": 1 } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `agreement` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.agreement | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_scope` | object or object | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_from` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `effective_to` | string or null | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | No | | | `service_bindings` | object[] | Yes | | | `status` | "draft" / "active" / "superseded" | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.agreement.client_scope At least one alternative must match. ###### application/json body.agreement.client_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "all_clients" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.client_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "single_client" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.effective_to At least one alternative must match. ###### application/json body.agreement.effective_to: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.agreement.effective_to: alternative 2 Type: `null`. ###### application/json body.agreement.metadata At least one alternative must match. ###### application/json body.agreement.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings Type: `object[]`. ###### application/json body.agreement.service_bindings item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_schedule` | object | Yes | No additional fields | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `minimum` | object or null | No | | | `maximum` | object or null | No | | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `metadata` | object or null | No | | | `model` | "fixed" / "bps" / "fixed_plus_bps" / "tiered" | Yes | | | `rounding_mode` | "half_up" / "up" / "down" or null | No | | | `tiers` | object[] or null | No | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.minimum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.maximum: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 1 Type: `object`. ###### application/json body.agreement.service_bindings item.fee_schedule.metadata: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 1 Type: `"half_up" / "up" / "down"`. ###### application/json body.agreement.service_bindings item.fee_schedule.rounding_mode: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 Type: `object[]`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bps` | integer or null | No | | | `fixed` | object or null | No | | | `up_to_amount` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.bps: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.fixed: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount At least one alternative must match. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 1 item.up_to_amount: alternative 2 Type: `null`. ###### application/json body.agreement.service_bindings item.fee_schedule.tiers: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get conversion pair Source: https://business-api-docs.youhodler.com/api/reference/conversion-pairs/conversion-pairs-get **Authentication:** Send `Authorization: Bearer `. Returns one global product support corridor by its lowercase catalog id, such as usdc-btc. The ID is a string with lowercase alphanumeric segments separated by hyphens, not a UUID. This is static platform catalog data, not account-specific eligibility or a quote. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `conversion_pair_id` | path | string | Yes | pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`; minLength: 1; maxLength: 128 | ## Request **Request URL — GET** ```http GET /conversion-pairs/{conversion_pair_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "active": true, "display_order": 0, "id": "usdc-btc", "max_source_amount": "100000.00", "min_source_amount": "10.00", "settlement_model": "internal_platform", "source_currency": "USDC", "target_currency": "BTC" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `display_order` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `id` | string | Yes | pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`; minLength: 1; maxLength: 128 | | `max_source_amount` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `min_source_amount` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `settlement_model` | "internal_platform" | Yes | | | `source_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List conversion pairs Source: https://business-api-docs.youhodler.com/api/reference/conversion-pairs/conversion-pairs-list **Authentication:** Send `Authorization: Bearer `. Lists global product support corridors for conversions. Conversion pairs describe platform-supported source/target currency directions and static source amount bounds only; they are not account-specific eligibility, pricing, fee, liquidity, or execution guarantees. Omitting active selects active corridors; active=true and active=false are the supported boolean query spellings, with false selecting inactive corridors. Account and topology discovery parameters are rejected on this catalog route. Use conversion preflight/preview for account-specific availability and economics. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `source_currency` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `target_currency` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `active` | query | boolean or string | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /conversion-pairs ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "display_order": 0, "id": "usdc-btc", "max_source_amount": "100000.00", "min_source_amount": "10.00", "settlement_model": "internal_platform", "source_currency": "USDC", "target_currency": "BTC" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `display_order` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `id` | string | Yes | pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`; minLength: 1; maxLength: 128 | | `max_source_amount` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `min_source_amount` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `settlement_model` | "internal_platform" | Yes | | | `source_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Cancel conversion Source: https://business-api-docs.youhodler.com/api/reference/conversions/conversions-cancel **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `conversion_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /conversions/{conversion_id}/cancel ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "applied_rate": null, "approval_ref": null, "conversion_execution_id": null, "created_at": "2026-05-01T10:00:00Z", "failure_detail": null, "failure_reason": null, "family": "conversion", "fee_summary": null, "fee_transaction_ids": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "ledger_posted_target_amount": null, "leg_attempt_id": null, "posted_at": null, "principal_amount": { "currency": "USD", "value": "250.00" }, "principal_transaction_id": null, "settled_at": null, "source_gross_amount": null, "source_principal_amount": null, "status": "cancelled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_amount": null, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.applied_rate At least one alternative must match. ###### application/json body.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.applied_rate: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.conversion_execution_id At least one alternative must match. ###### application/json body.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.conversion_execution_id: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_detail At least one alternative must match. ###### application/json body.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fee_transaction_ids At least one alternative must match. ###### application/json body.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.fee_transaction_ids: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.ledger_posted_target_amount At least one alternative must match. ###### application/json body.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.ledger_posted_target_amount: alternative 2 Type: `null`. ##### application/json body.leg_attempt_id At least one alternative must match. ###### application/json body.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.leg_attempt_id: alternative 2 Type: `null`. ##### application/json body.posted_at At least one alternative must match. ###### application/json body.posted_at: alternative 1 At least one alternative must match. ###### application/json body.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.posted_at: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_transaction_id At least one alternative must match. ###### application/json body.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.principal_transaction_id: alternative 2 Type: `null`. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.source_gross_amount At least one alternative must match. ###### application/json body.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_gross_amount: alternative 2 Type: `null`. ##### application/json body.source_principal_amount At least one alternative must match. ###### application/json body.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_principal_amount: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.target_amount At least one alternative must match. ###### application/json body.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.target_amount: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get conversion](/api/reference/conversions/conversions-get) — Read current state before cancelling --- # Create conversion Source: https://business-api-docs.youhodler.com/api/reference/conversions/conversions-create **Authentication:** Send `Authorization: Bearer `. Initiates a ledger-native conversion with `account_ref`, `from_amount`, and `to_currency` only. Plain conversions never resolve external settlement facts or carry provider-settlement evidence; use `/external-settlement-conversions` for externally settled conversion roles. Any prior preview is non-binding: conversion execution may recompute fees and rate before ledger posting. The response is the current operation snapshot; after synchronous admission and dispatch the caller can see `admissible`, `pending_approval`, `pending_compliance`, or a terminal state such as `settled` or `failed`. Track it via `GET /conversions/{conversion_id}`. Supply `Idempotency-Key` or body `client_idempotency_key` for idempotent retries; the header takes precedence. If both are omitted, a fresh key is generated. Human callers must obtain a step-up confirmation via `POST /action-tokens` and submit it in the `X-Action-Token` header; use the structured body `{action: "conversion.create", command: }`; a matching `command_digest` is also accepted. Service principals are exempt. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | | `X-Action-Token` | header | string | No | Single-use step-up confirmation token bound to the server-canonical command for this request. Required when the effective subject is a human user. Callers without a human subject skip only this confirmation check and still pass normal authentication and capability guards. Obtain the token through `POST /action-tokens`, then submit it with the guarded request. Structured commands are supported for withdrawal, conversion, and external-settlement conversion creation; the issue endpoint also accepts `command_digest`. Missing or invalid human-confirmation tokens produce `400` with `code` in {`action_token_required`, `action_token_rejected`}; an unreachable approval service produces `502 action_token_validation_failed`. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_idempotency_key` | string | No | minLength: 1 | | `from_amount` | object | Yes | No additional fields | | `to_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. #### Request body schema.from_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /conversions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USD", "value": "250.00" }, "to_currency": "BTC" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "applied_rate": null, "approval_ref": null, "conversion_execution_id": null, "created_at": "2026-05-01T10:00:00Z", "failure_detail": null, "failure_reason": null, "family": "conversion", "fee_summary": null, "fee_transaction_ids": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "ledger_posted_target_amount": null, "leg_attempt_id": null, "posted_at": null, "principal_amount": { "currency": "USD", "value": "250.00" }, "principal_transaction_id": null, "settled_at": null, "source_gross_amount": null, "source_principal_amount": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_amount": null, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Step-up confirmation failed for a money-movement operation** Step-up confirmation failed for a money-movement operation. `code` is one of: `action_token_required` (X-Action-Token header missing), `action_token_rejected` (token is unknown, expired, already consumed, or its server-canonical command binding does not match the current request). Obtain a fresh token via `POST /action-tokens` and retry. Structured issuance accepts `withdrawal.create`, `conversion.create`, and `external_settlement_conversion.create`. The issue endpoint also accepts `command_digest`. Human confirmation applies to the effective user subject; callers without a human subject skip this confirmation check. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.applied_rate At least one alternative must match. ###### application/json body.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.applied_rate: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.conversion_execution_id At least one alternative must match. ###### application/json body.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.conversion_execution_id: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_detail At least one alternative must match. ###### application/json body.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fee_transaction_ids At least one alternative must match. ###### application/json body.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.fee_transaction_ids: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.ledger_posted_target_amount At least one alternative must match. ###### application/json body.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.ledger_posted_target_amount: alternative 2 Type: `null`. ##### application/json body.leg_attempt_id At least one alternative must match. ###### application/json body.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.leg_attempt_id: alternative 2 Type: `null`. ##### application/json body.posted_at At least one alternative must match. ###### application/json body.posted_at: alternative 1 At least one alternative must match. ###### application/json body.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.posted_at: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_transaction_id At least one alternative must match. ###### application/json body.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.principal_transaction_id: alternative 2 Type: `null`. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.source_gross_amount At least one alternative must match. ###### application/json body.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_gross_amount: alternative 2 Type: `null`. ##### application/json body.source_principal_amount At least one alternative must match. ###### application/json body.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_principal_amount: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.target_amount At least one alternative must match. ###### application/json body.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.target_amount: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 403 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 409 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 422 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 500 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 502 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 503 schema Content type: `application/json`. See [response 502 schema](#response-502-schema). **Related endpoints:** - `POST` [Preview a conversion](/api/reference/conversions/conversions-preview) — Preview the conversion before committing - `GET` [Get indicative price](/api/reference/prices/prices-indicative) — Check indicative rates first - `GET` [Get conversion](/api/reference/conversions/conversions-get) — Poll status after creation - `POST` [Preview a fee](/api/reference/fee-previews/fee-previews-create) — Preview fees before initiating --- # Get conversion Source: https://business-api-docs.youhodler.com/api/reference/conversions/conversions-get **Authentication:** Send `Authorization: Bearer `. Returns the current ledger-native conversion operation snapshot. Preview economics are non-binding display data; settled execution may use recomputed fees and rate before ledger posting. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `conversion_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /conversions/{conversion_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "applied_rate": "0.00002", "approval_ref": null, "conversion_execution_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "created_at": "2026-05-01T10:00:00Z", "failure_detail": null, "failure_reason": null, "family": "conversion", "fee_summary": { "components": [ { "amount": { "currency": "USD", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USD", "value": "1.00" } }, "fee_transaction_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ], "fill_rate": "0.00002", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "ledger_posted_target_amount": { "currency": "BTC", "value": "0.00498000" }, "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "posted_at": "2026-05-01T10:00:00Z", "principal_amount": { "currency": "USD", "value": "250.00" }, "principal_transaction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "settled_at": "2026-05-01T10:00:00Z", "source_gross_amount": { "currency": "USD", "value": "250.00" }, "source_principal_amount": { "currency": "USD", "value": "249.00" }, "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_amount": { "currency": "BTC", "value": "0.00498000" }, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.applied_rate At least one alternative must match. ###### application/json body.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.applied_rate: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.conversion_execution_id At least one alternative must match. ###### application/json body.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.conversion_execution_id: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_detail At least one alternative must match. ###### application/json body.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.failure_detail: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fee_transaction_ids At least one alternative must match. ###### application/json body.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.fee_transaction_ids: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.ledger_posted_target_amount At least one alternative must match. ###### application/json body.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.ledger_posted_target_amount: alternative 2 Type: `null`. ##### application/json body.leg_attempt_id At least one alternative must match. ###### application/json body.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.leg_attempt_id: alternative 2 Type: `null`. ##### application/json body.posted_at At least one alternative must match. ###### application/json body.posted_at: alternative 1 At least one alternative must match. ###### application/json body.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.posted_at: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_transaction_id At least one alternative must match. ###### application/json body.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.principal_transaction_id: alternative 2 Type: `null`. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.source_gross_amount At least one alternative must match. ###### application/json body.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_gross_amount: alternative 2 Type: `null`. ##### application/json body.source_principal_amount At least one alternative must match. ###### application/json body.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.source_principal_amount: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.target_amount At least one alternative must match. ###### application/json body.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.target_amount: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List conversions](/api/reference/conversions/conversions-list) — List all conversions - `POST` [Cancel conversion](/api/reference/conversions/conversions-cancel) — Cancel if still cancellable --- # List conversions Source: https://business-api-docs.youhodler.com/api/reference/conversions/conversions-list **Authentication:** Send `Authorization: Bearer `. Lists ledger-native conversion operation snapshots. Preview responses are informational only; operation execution may recompute fees and rate before ledger posting, so reads must not be treated as a bound preview replay. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /conversions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "applied_rate": "0.00002", "approval_ref": null, "conversion_execution_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "created_at": "2026-05-01T10:00:00Z", "failure_detail": null, "failure_reason": null, "family": "conversion", "fee_summary": { "components": [ { "amount": { "currency": "USD", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USD", "value": "1.00" } }, "fee_transaction_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ], "fill_rate": "0.00002", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "ledger_posted_target_amount": { "currency": "BTC", "value": "0.00498000" }, "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "posted_at": "2026-05-01T10:00:00Z", "principal_amount": { "currency": "USD", "value": "250.00" }, "principal_transaction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "settled_at": "2026-05-01T10:00:00Z", "source_gross_amount": { "currency": "USD", "value": "250.00" }, "source_principal_amount": { "currency": "USD", "value": "249.00" }, "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_amount": { "currency": "BTC", "value": "0.00498000" }, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item.applied_rate At least one alternative must match. ###### application/json body.items item.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item.applied_rate: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item.conversion_execution_id At least one alternative must match. ###### application/json body.items item.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.failure_detail At least one alternative must match. ###### application/json body.items item.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.items item.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.items item.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.items item.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.items item.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.items item.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.items item.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.items item.failure_detail: alternative 2 Type: `null`. ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.fee_summary At least one alternative must match. ###### application/json body.items item.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item.fee_transaction_ids At least one alternative must match. ###### application/json body.items item.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item.fill_rate At least one alternative must match. ###### application/json body.items item.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item.ledger_posted_target_amount At least one alternative must match. ###### application/json body.items item.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body.items item.leg_attempt_id At least one alternative must match. ###### application/json body.items item.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item.posted_at At least one alternative must match. ###### application/json body.items item.posted_at: alternative 1 At least one alternative must match. ###### application/json body.items item.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.posted_at: alternative 2 Type: `null`. ###### application/json body.items item.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.principal_transaction_id At least one alternative must match. ###### application/json body.items item.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item.settled_at At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settled_at: alternative 2 Type: `null`. ###### application/json body.items item.source_gross_amount At least one alternative must match. ###### application/json body.items item.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.source_gross_amount: alternative 2 Type: `null`. ###### application/json body.items item.source_principal_amount At least one alternative must match. ###### application/json body.items item.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.source_principal_amount: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.federation At least one alternative must match. ###### application/json body.items item.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item.target_amount At least one alternative must match. ###### application/json body.items item.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.target_amount: alternative 2 Type: `null`. ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create conversion](/api/reference/conversions/conversions-create) — Initiate a new conversion - `GET` [Get conversion](/api/reference/conversions/conversions-get) — Fetch a single conversion by ID --- # Preview a conversion Source: https://business-api-docs.youhodler.com/api/reference/conversions/conversions-preview **Authentication:** Send `Authorization: Bearer `. Returns a non-binding ledger-native conversion preview for display. `economics` names source gross amount, fee summary, source principal amount, indicative rate, and target amount explicitly; `binding` is always false. Preview does not reserve funds, lock a rate, create an executable quote, or resolve external settlement facts. Creating/executing a conversion may recompute fees and rate before ledger posting. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `from_amount` | object | Yes | No additional fields | | `to_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. #### Request body schema.from_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /conversions/preview ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "from_amount": { "currency": "USD", "value": "250.00" }, "to_currency": "BTC" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "economics": { "binding": false, "fee_summary": { "components": [ { "amount": { "currency": "USD", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USD", "value": "1.00" } }, "indicative_rate": "0.00002", "source_gross_amount": { "currency": "USD", "value": "250.00" }, "source_principal_amount": { "currency": "USD", "value": "249.00" }, "target_amount": { "currency": "BTC", "value": "0.00498000" } }, "execution_min_source_amount": { "currency": "USD", "value": "25.00" }, "expires_at": null, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USD", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USD", "value": "1.00" } }, "from_amount": { "currency": "USD", "value": "250.00" }, "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "expires_at": null, "price": "0.00002", "price_type": "indicative", "provider_hint": null }, "min_source_amount": { "currency": "USD", "value": "25.00" }, "principal_amount": { "currency": "USD", "value": "249.00" }, "to_amount": { "currency": "BTC", "value": "0.00498000" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `binding` | false | Yes | | | `calculated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `economics` | object | Yes | No additional fields | | `execution_min_source_amount` | object or null | Yes | | | `expires_at` | string or null | Yes | | | `fee_summary` | object | Yes | No additional fields | | `from_amount` | object | Yes | No additional fields | | `indicative_price` | object | Yes | No additional fields | | `min_source_amount` | object | Yes | No additional fields | | `principal_amount` | object | Yes | No additional fields | | `to_amount` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.economics | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `binding` | false | Yes | | | `fee_summary` | object | Yes | No additional fields | | `indicative_rate` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `source_gross_amount` | object | Yes | No additional fields | | `source_principal_amount` | object | Yes | No additional fields | | `target_amount` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.economics.fee_summary | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.economics.fee_summary.components Type: `object[]`. ###### application/json body.economics.fee_summary.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.economics.fee_summary.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.economics.fee_summary.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.economics.source_gross_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.economics.source_principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.economics.target_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.execution_min_source_amount At least one alternative must match. ###### application/json body.execution_min_source_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.execution_min_source_amount: alternative 2 Type: `null`. ##### application/json body.expires_at At least one alternative must match. ###### application/json body.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at: alternative 2 Type: `null`. ##### application/json body.fee_summary | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary.components Type: `object[]`. ###### application/json body.fee_summary.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | | `amount` | object | Yes | No additional fields | | `payee_ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.fee_summary.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.from_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.indicative_price | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `computed_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `expires_at` | string or null | No | | | `price` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `price_type` | "indicative" | Yes | | | `provider_hint` | string or null | No | | Additional fields are not accepted. ###### application/json body.indicative_price.expires_at At least one alternative must match. ###### application/json body.indicative_price.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.indicative_price.expires_at: alternative 2 Type: `null`. ###### application/json body.indicative_price.provider_hint At least one alternative must match. ###### application/json body.indicative_price.provider_hint: alternative 1 Type: `string`. ###### application/json body.indicative_price.provider_hint: alternative 2 Type: `null`. ##### application/json body.min_source_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.to_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create conversion](/api/reference/conversions/conversions-create) — Commit the conversion after previewing - `GET` [Get indicative price](/api/reference/prices/prices-indicative) — Compare with indicative prices --- # List available crypto networks Source: https://business-api-docs.youhodler.com/api/reference/crypto-networks/available-crypto-networks-list **Authentication:** Send `Authorization: Bearer `. Returns active crypto networks projected from available runtime asset/rail tuples for the required operating account. direction defaults to deposit and also accepts withdrawal. When asset is supplied, each item contains only assets that passed that filter and availability check. Account coverage is checked against an authenticated enterprise tenant binding; unbound and platform-operator callers receive 403, and an account outside the tenant receives 404. This is a current snapshot for the selected direction; funding-endpoint provisioning and withdrawal submission recheck their own requirements. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `direction` | query | "deposit" / "withdrawal" | No | default: `"deposit"` | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /available-crypto-networks ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "assets": [ "USDC" ], "code": "ethereum", "display_name": "Ethereum" }, { "active": true, "assets": [ "USDC" ], "code": "polygon", "display_name": "Polygon" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `assets` | string[] | Yes | | | `code` | string | Yes | minLength: 1 | | `display_name` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.assets Type: `string[]`. ###### application/json body.items item.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List crypto networks Source: https://business-api-docs.youhodler.com/api/reference/crypto-networks/crypto-networks-list **Authentication:** Send `Authorization: Bearer `. Returns the authenticated global crypto-network reference catalog without a capability gate. Omitting active selects active networks; active=true and active=false are the supported boolean query spellings, with false selecting inactive networks. asset filters which networks appear; each item still lists all supported assets on that network. account_ref and scope_ref are rejected here. Use /available-crypto-networks for an account runtime-availability snapshot or /eligible-crypto-networks for topology eligibility. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `active` | query | boolean or string | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /crypto-networks ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "assets": [ "USDC", "ETH" ], "code": "ethereum", "display_name": "Ethereum" }, { "active": true, "assets": [ "USDC", "POL" ], "code": "polygon", "display_name": "Polygon" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `assets` | string[] | Yes | | | `code` | string | Yes | minLength: 1 | | `display_name` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.assets Type: `string[]`. ###### application/json body.items item.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List eligible crypto networks Source: https://business-api-docs.youhodler.com/api/reference/crypto-networks/eligible-crypto-networks-list **Authentication:** Send `Authorization: Bearer `. Returns active crypto networks projected from eligible asset/rail tuples for an enterprise or client scope. direction defaults to deposit and also accepts withdrawal. When asset is supplied, each item contains only assets that passed that filter and eligibility check. The caller must have an enterprise tenant binding covering scope_ref; platform-operator and unbound callers receive 403, while a scope outside the tenant receives 404. Use /available-crypto-networks for an operating-account runtime-availability snapshot. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `direction` | query | "deposit" / "withdrawal" | No | default: `"deposit"` | | `scope_ref` | query | string or string | Yes | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /eligible-crypto-networks ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "assets": [ "USDC" ], "code": "ethereum", "display_name": "Ethereum" }, { "active": true, "assets": [ "USDC" ], "code": "polygon", "display_name": "Polygon" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `assets` | string[] | Yes | | | `code` | string | Yes | minLength: 1 | | `display_name` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.assets Type: `string[]`. ###### application/json body.items item.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create deposit instruction Source: https://business-api-docs.youhodler.com/api/reference/deposit-instructions/deposit-instructions-create **Authentication:** Send `Authorization: Bearer `. Creates a fiat deposit instruction against the pooled fiat route (delegated to `fiat-rails-service`). Crypto is rejected: crypto deposit addresses are minted through funding-endpoint provisioning. `funding_endpoint_id` optionally links a previously provisioned endpoint; null mints a standalone instruction. This is a pooled payment-reference route: virtual-account routes such as an individually provisioned CVU refuse instruction creation with 422 and reason `fiat_unsupported_mode`; use the funding endpoint itself for that route. The pooled route owner is derived server-side and never accepted from the caller. The instruction carries the payment reference that makes pooled coordinates usable, so every request — standalone or linked to an endpoint — is first checked for account admission, before the route availability, the route owner or the endpoint mode is resolved: the account must not be suspended or closed; a client account needs a verified client and an enterprise master account a verified enterprise, and the enterprise behind the account (the parent of the client, or the owner of the master account) must be operational and unrestricted (one still being admitted, offboarding, terminated or restricted is refused); a master account owned by a platform operator is decided on its own status alone. A refused account returns `422` with `code = not_admissible`, `data.reason` one of `CLIENT_NOT_VERIFIED`, `ENTERPRISE_NOT_VERIFIED`, `ENTERPRISE_NOT_OPERATIONAL`, `ENTERPRISE_RESTRICTED`, `ACCOUNT_SUSPENDED`, `ACCOUNT_CLOSED`, `CLIENT_SUSPENDED`, `CLIENT_CLOSED` and `data.source` naming the check that refused (`verification`, `lifecycle`); when admission cannot be checked the request returns `503 temporarily_unavailable`. Neither response creates an instruction. An idempotent retry is checked again, so an account refused since its first request gets the refusal instead of the stored instruction. Idempotent on the required `Idempotency-Key` header; an `idempotency_key` body field is rejected. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `funding_endpoint_id` | string or null | No | | | `rail_class` | "fiat" | Yes | | | `routing` | object | Yes | No additional fields | Additional fields are not accepted. #### Request body schema.funding_endpoint_id At least one alternative must match. ##### Request body schema.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ##### Request body schema.funding_endpoint_id: alternative 2 Type: `null`. #### Request body schema.routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `bank_details` | object or object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ##### Request body schema.routing.bank_details At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1 Exactly one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### Request body schema.routing.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### Request body schema.routing.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### Request body schema.routing.bank_details: alternative 2 Type: `null`. ##### Request body schema.routing.reference At least one alternative must match. ###### Request body schema.routing.reference: alternative 1 Type: `string`. ###### Request body schema.routing.reference: alternative 2 Type: `null`. **Request URL — POST** ```http POST /deposit-instructions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "funding_endpoint_id": null, "rail_class": "fiat", "routing": { "asset": "EUR", "fiat_rail": "sepa_credit_transfer" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "EUR", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": null, "expires_at": null, "fiat_routing": { "asset": "EUR", "bank_details": { "account_holder_address": null, "account_holder_name": "Example Treasury", "bank_address": null, "bank_name": "Demo Bank", "bic": "COBADEFFXXX", "correspondent_bank": null, "country": "DE", "iban": "DE89370400440532013000", "provider_payment_reference": null, "scheme": "iban" }, "fiat_rail": "sepa_credit_transfer", "reference": "RF18539007547034" }, "funding_endpoint_id": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "fiat", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `expires_at` | string or null | No | | | `fiat_routing` | object or null | No | | | `funding_endpoint_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail_class` | "fiat" / "crypto" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | Yes | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.expires_at At least one alternative must match. ###### application/json body.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `bank_details` | object or object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.funding_endpoint_id At least one alternative must match. ###### application/json body.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.funding_endpoint_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get deposit instruction Source: https://business-api-docs.youhodler.com/api/reference/deposit-instructions/deposit-instructions-get **Authentication:** Send `Authorization: Bearer `. Reads a deposit instruction by id. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat reads also require `account_ref` because fiat deposit instructions are account-scoped; they are delegated to `fiat-rails-service`, and unknown or out-of-scope fiat ids return `resource_not_found`. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `deposit_instruction_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /deposit-instructions/{deposit_instruction_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "expires_at": null, "fiat_routing": null, "funding_endpoint_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "crypto", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `expires_at` | string or null | No | | | `fiat_routing` | object or null | No | | | `funding_endpoint_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail_class` | "fiat" / "crypto" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | Yes | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.expires_at At least one alternative must match. ###### application/json body.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `bank_details` | object or object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.funding_endpoint_id At least one alternative must match. ###### application/json body.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.funding_endpoint_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List deposit instructions](/api/reference/deposit-instructions/deposit-instructions-list) — List all instructions for the account - `GET` [Get funding endpoint](/api/reference/funding-endpoints/funding-endpoints-get) — Inspect the backing funding endpoint - `GET` [List deposits](/api/reference/deposits/deposits-list) — View deposits received via this instruction --- # List deposit instructions Source: https://business-api-docs.youhodler.com/api/reference/deposit-instructions/deposit-instructions-list **Authentication:** Send `Authorization: Bearer `. Lists deposit instructions for the selected rail. Crypto instructions route to the custody rails backend; fiat instructions are delegated to `fiat-rails-service` and scoped to the supplied `account_ref`. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `funding_endpoint` | query | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /deposit-instructions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "expires_at": null, "fiat_routing": null, "funding_endpoint_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "crypto", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `expires_at` | string or null | No | | | `fiat_routing` | object or null | No | | | `funding_endpoint_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail_class` | "fiat" / "crypto" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.asset At least one alternative must match. ###### application/json body.items item.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.items item.asset: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | Yes | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing: alternative 2 Type: `null`. ###### application/json body.items item.expires_at At least one alternative must match. ###### application/json body.items item.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.expires_at: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `bank_details` | object or object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.items item.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 2 Type: `null`. ###### application/json body.items item.funding_endpoint_id At least one alternative must match. ###### application/json body.items item.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.funding_endpoint_id: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get deposit instruction](/api/reference/deposit-instructions/deposit-instructions-get) — Fetch a single instruction by ID - `GET` [List funding endpoints](/api/reference/funding-endpoints/funding-endpoints-list) — List the funding endpoints backing instructions - `GET` [List deposits](/api/reference/deposits/deposits-list) — View resulting deposits --- # Get deposit Source: https://business-api-docs.youhodler.com/api/reference/deposits/deposits-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `deposit_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /deposits/{deposit_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "admission_hold_reason": null, "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "deposit_instruction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "deposit", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ], "fill_rate": null, "funding_endpoint_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "inbound_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_correlation_ref": "TXN-0001", "settled_at": "2026-05-01T10:00:00Z", "settlement_ref": "SETTLE-0001", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `deposit_instruction_id` | string or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `funding_endpoint_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `inbound_attempt_id` | string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `rail_correlation_ref` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `settlement_ref` | string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.deposit_instruction_id At least one alternative must match. ###### application/json body.deposit_instruction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.deposit_instruction_id: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fee_transaction_ids At least one alternative must match. ###### application/json body.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.fee_transaction_ids: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.funding_endpoint_id At least one alternative must match. ###### application/json body.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.funding_endpoint_id: alternative 2 Type: `null`. ##### application/json body.inbound_attempt_id At least one alternative must match. ###### application/json body.inbound_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.inbound_attempt_id: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_transaction_id At least one alternative must match. ###### application/json body.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.principal_transaction_id: alternative 2 Type: `null`. ##### application/json body.rail_correlation_ref At least one alternative must match. ###### application/json body.rail_correlation_ref: alternative 1 Type: `string`. minLength: 1 ###### application/json body.rail_correlation_ref: alternative 2 Type: `null`. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.settlement_ref At least one alternative must match. ###### application/json body.settlement_ref: alternative 1 Type: `string`. minLength: 1 ###### application/json body.settlement_ref: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List deposits](/api/reference/deposits/deposits-list) — List all deposits for the account - `GET` [Get deposit instruction](/api/reference/deposit-instructions/deposit-instructions-get) — Inspect the deposit instruction used --- # List deposits Source: https://business-api-docs.youhodler.com/api/reference/deposits/deposits-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /deposits ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "admission_hold_reason": null, "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "deposit_instruction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "deposit", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ], "fill_rate": null, "funding_endpoint_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "inbound_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_correlation_ref": "TXN-0001", "settled_at": "2026-05-01T10:00:00Z", "settlement_ref": "SETTLE-0001", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `deposit_instruction_id` | string or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `funding_endpoint_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `inbound_attempt_id` | string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `rail_correlation_ref` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `settlement_ref` | string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item.admission_hold_reason At least one alternative must match. ###### application/json body.items item.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.items item.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.deposit_instruction_id At least one alternative must match. ###### application/json body.items item.deposit_instruction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.deposit_instruction_id: alternative 2 Type: `null`. ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.fee_summary At least one alternative must match. ###### application/json body.items item.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item.fee_transaction_ids At least one alternative must match. ###### application/json body.items item.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item.fill_rate At least one alternative must match. ###### application/json body.items item.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item.funding_endpoint_id At least one alternative must match. ###### application/json body.items item.funding_endpoint_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.funding_endpoint_id: alternative 2 Type: `null`. ###### application/json body.items item.inbound_attempt_id At least one alternative must match. ###### application/json body.items item.inbound_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.inbound_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.principal_transaction_id At least one alternative must match. ###### application/json body.items item.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item.rail_correlation_ref At least one alternative must match. ###### application/json body.items item.rail_correlation_ref: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.rail_correlation_ref: alternative 2 Type: `null`. ###### application/json body.items item.settled_at At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settled_at: alternative 2 Type: `null`. ###### application/json body.items item.settlement_ref At least one alternative must match. ###### application/json body.items item.settlement_ref: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.settlement_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.federation At least one alternative must match. ###### application/json body.items item.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get deposit](/api/reference/deposits/deposits-get) — Fetch a single deposit by ID - `GET` [List deposit instructions](/api/reference/deposit-instructions/deposit-instructions-list) — View routing instructions for inbound funds --- # Close enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-close **Authentication:** Send `Authorization: Bearer `. Platform-actor-only; enterprise-scoped actors cannot perform this action. Permanently terminates the enterprise perimeter. A reason is required and audited. Returns the updated enterprise resource. A `503` with reason `termination_outcome_unknown` means the enterprise’s access is already closed but its termination is unconfirmed: repeat the request. A `409` with reason `enterprise_already_terminated` on the repeat confirms the close. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string | Yes | minLength: 3; maxLength: 2000 | Additional fields are not accepted. **Request URL — POST** ```http POST /enterprises/{enterprise_id}/close ``` **Request Body — application/json** ```json { "reason": "Sanctions screening hit under review (case CMP-1042)" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "admission_state": "terminated", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": "2026-05-01T10:00:00Z", "termination_reason": "Sanctions screening hit under review (case CMP-1042)", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | Yes | | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_master_account At least one alternative must match. ###### application/json body.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_master_account: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.legal_form At least one alternative must match. ###### application/json body.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.legal_form: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.restriction_kind At least one alternative must match. ###### application/json body.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.restriction_kind: alternative 2 Type: `null`. ##### application/json body.restriction_reason At least one alternative must match. ###### application/json body.restriction_reason: alternative 1 Type: `string`. ###### application/json body.restriction_reason: alternative 2 Type: `null`. ##### application/json body.terminated_at At least one alternative must match. ###### application/json body.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.terminated_at: alternative 2 Type: `null`. ##### application/json body.termination_reason At least one alternative must match. ###### application/json body.termination_reason: alternative 1 Type: `string`. ###### application/json body.termination_reason: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Admit enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-create **Authentication:** Send `Authorization: Bearer `. Create the enterprise perimeter when it does not exist yet. Creates the enterprise perimeter and its default master account. Requires a platform-operator binding and an `enterprise_wildcard` grant anchored at `platform-operators/` for `enterprises.create`; otherwise returns `403 forbidden_capability_scope`. Admission does not provision the designated administrator, identity access, roles, or commercial agreements. Call `POST /enterprises/{enterprise_id}/provision` separately to complete that setup. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `designated_admin` | object | Yes | No additional fields | | `external_id` | string or null | No | | | `jurisdiction` | string | Yes | Country of registration, ISO 3166-1 alpha-2. pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | Additional fields are not accepted. #### Request body schema.designated_admin | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `email` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` | Additional fields are not accepted. ##### Request body schema.designated_admin.display_name At least one alternative must match. ###### Request body schema.designated_admin.display_name: alternative 1 Type: `string`. ###### Request body schema.designated_admin.display_name: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.external_id: alternative 2 Type: `null`. #### Request body schema.metadata At least one alternative must match. ##### Request body schema.metadata: alternative 1 Type: `object`. ##### Request body schema.metadata: alternative 2 Type: `null`. **Request URL — POST** ```http POST /enterprises ``` **Request Body — application/json** ```json { "designated_admin": { "display_name": "Acme Admin", "email": "admin@acme.example" }, "external_id": "ent-ext-0001", "jurisdiction": "DE", "legal_name": "Acme Fintech GmbH", "metadata": { "industry": "fintech" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "enterprise": { "admission_state": "admitted", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": false, "kyb_source": null, "kyb_stage": null, "kyb_state": null, "kyb_state_reason": null, "kyb_state_updated_at": null, "kyc_source": null, "kyc_stage": null, "legal_form": null, "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" }, "master_account": { "created_at": "2026-05-01T10:00:00Z", "display_name": "Acme Fintech GmbH", "etag": "2026-05-01T10:00:00.000Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "parent": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "master_account", "status": "active", "tenant_type": "enterprise", "updated_at": "2026-05-01T10:00:00.000Z" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `enterprise` | object | Yes | No additional fields | | `master_account` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.enterprise | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | Country of registration, ISO 3166-1 alpha-2. pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | Yes | | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.enterprise.default_master_account At least one alternative must match. ###### application/json body.enterprise.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.enterprise.default_master_account: alternative 2 Type: `null`. ###### application/json body.enterprise.external_id At least one alternative must match. ###### application/json body.enterprise.external_id: alternative 1 Type: `string`. ###### application/json body.enterprise.external_id: alternative 2 Type: `null`. ###### application/json body.enterprise.kyb_source At least one alternative must match. ###### application/json body.enterprise.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.enterprise.kyb_source: alternative 2 Type: `null`. ###### application/json body.enterprise.kyb_stage At least one alternative must match. ###### application/json body.enterprise.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.enterprise.kyb_stage: alternative 2 Type: `null`. ###### application/json body.enterprise.kyb_state At least one alternative must match. ###### application/json body.enterprise.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.enterprise.kyb_state: alternative 2 Type: `null`. ###### application/json body.enterprise.kyb_state_reason At least one alternative must match. ###### application/json body.enterprise.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.enterprise.kyb_state_reason: alternative 2 Type: `null`. ###### application/json body.enterprise.kyb_state_updated_at At least one alternative must match. ###### application/json body.enterprise.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.enterprise.kyb_state_updated_at: alternative 2 Type: `null`. ###### application/json body.enterprise.kyc_source At least one alternative must match. ###### application/json body.enterprise.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.enterprise.kyc_source: alternative 2 Type: `null`. ###### application/json body.enterprise.kyc_stage At least one alternative must match. ###### application/json body.enterprise.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.enterprise.kyc_stage: alternative 2 Type: `null`. ###### application/json body.enterprise.legal_form At least one alternative must match. ###### application/json body.enterprise.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.enterprise.legal_form: alternative 2 Type: `null`. ###### application/json body.enterprise.metadata At least one alternative must match. ###### application/json body.enterprise.metadata: alternative 1 Type: `object`. ###### application/json body.enterprise.metadata: alternative 2 Type: `null`. ###### application/json body.enterprise.restriction_kind At least one alternative must match. ###### application/json body.enterprise.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.enterprise.restriction_kind: alternative 2 Type: `null`. ###### application/json body.enterprise.restriction_reason At least one alternative must match. ###### application/json body.enterprise.restriction_reason: alternative 1 Type: `string`. ###### application/json body.enterprise.restriction_reason: alternative 2 Type: `null`. ###### application/json body.enterprise.terminated_at At least one alternative must match. ###### application/json body.enterprise.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.enterprise.terminated_at: alternative 2 Type: `null`. ###### application/json body.enterprise.termination_reason At least one alternative must match. ###### application/json body.enterprise.termination_reason: alternative 1 Type: `string`. ###### application/json body.enterprise.termination_reason: alternative 2 Type: `null`. ##### application/json body.master_account | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `parent` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "master_account" | Yes | | | `status` | "active" / "suspended" / "closed" | Yes | | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.master_account.display_name At least one alternative must match. ###### application/json body.master_account.display_name: alternative 1 Type: `string`. ###### application/json body.master_account.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Read enterprise first-access status Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-first-access **Authentication:** Send `Authorization: Bearer `. Returns registration readiness for an enterprise using `enterprise_idp` first access, whether its provisioning administrator has bound an identity, and the latest first-access command delivery. This applies to both enterprise-hosted and platform-hosted identity stacks. Delivery is null if no delivery exists or that lookup is unavailable. Returns `404` for another first-access method. Requires a platform-operator binding and `enterprises.provision` on an `enterprise_wildcard` grant anchored at `platform-operators/`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /enterprises/{enterprise_id}/first-access ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `conflict_reason` | string or null | Yes | | | `failing_step` | "identity_provider" / "probe" / "service_account" / "identity_subscription" / "command_subscription" or null | Yes | | | `last_delivery` | object or null | Yes | | | `last_event_id` | string or null | Yes | | | `state` | "waiting_for_stack" / "ready" / "bound" / "conflict" | Yes | | Additional fields are not accepted. ##### application/json body.conflict_reason At least one alternative must match. ###### application/json body.conflict_reason: alternative 1 Type: `string`. ###### application/json body.conflict_reason: alternative 2 Type: `null`. ##### application/json body.failing_step At least one alternative must match. ###### application/json body.failing_step: alternative 1 Type: `"identity_provider" / "probe" / "service_account" / "identity_subscription" / "command_subscription"`. ###### application/json body.failing_step: alternative 2 Type: `null`. ##### application/json body.last_delivery At least one alternative must match. ###### application/json body.last_delivery: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempted_at` | string or string or null | Yes | | | `delivery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `status` | "pending" / "delivered" / "failed" / "retrying" / "dlq" | Yes | | | `subscription_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### application/json body.last_delivery: alternative 1.attempted_at At least one alternative must match. ###### application/json body.last_delivery: alternative 1.attempted_at: alternative 1 At least one alternative must match. ###### application/json body.last_delivery: alternative 1.attempted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_delivery: alternative 1.attempted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.last_delivery: alternative 1.attempted_at: alternative 2 Type: `null`. ###### application/json body.last_delivery: alternative 2 Type: `null`. ##### application/json body.last_event_id At least one alternative must match. ###### application/json body.last_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.last_event_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-get **Authentication:** Send `Authorization: Bearer `. Read one enterprise boundary in detail. Carries `first_access_method` from the onboarding record (`magic_link`, `passkey_enrolment` or `enterprise_idp`; `null` when the enterprise has none or it cannot be read), and `iam_hosting`, who hosts the identity stack of an `enterprise_idp` enterprise (`enterprise`: its own; `platform`: the shared platform login; `null` for any other method, for an `enterprise_idp` enterprise whose hosting is not recorded yet, or when there is no readable record). The list rows carry both too. `kyc_source`, `kyb_source` and `kyb_state_reason` (the verification provider and its reason) are present only for callers holding `enterprises.read` through an `enterprise_wildcard` grant anchored at `platform-operators/` (platform staff); a tenant reading its own enterprise receives the response without them. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /enterprises/{enterprise_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "first_access_method": "enterprise_idp", "iam_hosting": "platform", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `first_access_method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" or null | Yes | | | `iam_hosting` | "enterprise" / "platform" or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | Country of registration, ISO 3166-1 alpha-2. pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_master_account At least one alternative must match. ###### application/json body.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_master_account: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.first_access_method At least one alternative must match. ###### application/json body.first_access_method: alternative 1 Type: `"magic_link" / "passkey_enrolment" / "enterprise_idp"`. ###### application/json body.first_access_method: alternative 2 Type: `null`. ##### application/json body.iam_hosting At least one alternative must match. ###### application/json body.iam_hosting: alternative 1 Type: `"enterprise" / "platform"`. ###### application/json body.iam_hosting: alternative 2 Type: `null`. ##### application/json body.kyb_source Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.legal_form At least one alternative must match. ###### application/json body.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.legal_form: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.restriction_kind At least one alternative must match. ###### application/json body.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.restriction_kind: alternative 2 Type: `null`. ##### application/json body.restriction_reason At least one alternative must match. ###### application/json body.restriction_reason: alternative 1 Type: `string`. ###### application/json body.restriction_reason: alternative 2 Type: `null`. ##### application/json body.terminated_at At least one alternative must match. ###### application/json body.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.terminated_at: alternative 2 Type: `null`. ##### application/json body.termination_reason At least one alternative must match. ###### application/json body.termination_reason: alternative 1 Type: `string`. ###### application/json body.termination_reason: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List enterprises Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-list **Authentication:** Send `Authorization: Bearer `. Inspect the enterprise perimeter already visible to the caller. Lists enterprises under an `enterprise_wildcard` grant anchored at `platform-operators/` for `enterprises.list`. Holding the capability on a narrower scope is insufficient and returns `403 forbidden_capability_scope`. Each row includes `first_access_method` and `iam_hosting`; both are null when the onboarding record is absent or unavailable. Only platform staff can list, so rows always carry `kyc_source`, `kyb_source` and `kyb_state_reason`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `admission_state` | query | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" or "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated"[] | No | | | `restriction_state` | query | "none" / "restricted" or "none" / "restricted"[] | No | | | `restriction_kind` | query | "restricted" / "suspended" or "restricted" / "suspended"[] | No | | | `jurisdiction` | query | string or string[] | No | Country of registration, ISO 3166-1 alpha-2. | ## Request **Request URL — GET** ```http GET /enterprises ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "first_access_method": "enterprise_idp", "iam_hosting": "platform", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `first_access_method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" or null | Yes | | | `iam_hosting` | "enterprise" / "platform" or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | Country of registration, ISO 3166-1 alpha-2. pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | No | Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.default_master_account At least one alternative must match. ###### application/json body.items item.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.default_master_account: alternative 2 Type: `null`. ###### application/json body.items item.external_id At least one alternative must match. ###### application/json body.items item.external_id: alternative 1 Type: `string`. ###### application/json body.items item.external_id: alternative 2 Type: `null`. ###### application/json body.items item.first_access_method At least one alternative must match. ###### application/json body.items item.first_access_method: alternative 1 Type: `"magic_link" / "passkey_enrolment" / "enterprise_idp"`. ###### application/json body.items item.first_access_method: alternative 2 Type: `null`. ###### application/json body.items item.iam_hosting At least one alternative must match. ###### application/json body.items item.iam_hosting: alternative 1 Type: `"enterprise" / "platform"`. ###### application/json body.items item.iam_hosting: alternative 2 Type: `null`. ###### application/json body.items item.kyb_source Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.items item.kyb_source: alternative 2 Type: `null`. ###### application/json body.items item.kyb_stage At least one alternative must match. ###### application/json body.items item.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.items item.kyb_stage: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state At least one alternative must match. ###### application/json body.items item.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.items item.kyb_state: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state_reason Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.items item.kyb_state_reason: alternative 2 Type: `null`. ###### application/json body.items item.kyb_state_updated_at At least one alternative must match. ###### application/json body.items item.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.kyb_state_updated_at: alternative 2 Type: `null`. ###### application/json body.items item.kyc_source Present only for callers with platform-wide `enterprises.read` authority; omitted for tenant callers. At least one alternative must match. ###### application/json body.items item.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.items item.kyc_source: alternative 2 Type: `null`. ###### application/json body.items item.kyc_stage At least one alternative must match. ###### application/json body.items item.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.items item.kyc_stage: alternative 2 Type: `null`. ###### application/json body.items item.legal_form At least one alternative must match. ###### application/json body.items item.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.legal_form: alternative 2 Type: `null`. ###### application/json body.items item.metadata At least one alternative must match. ###### application/json body.items item.metadata: alternative 1 Type: `object`. ###### application/json body.items item.metadata: alternative 2 Type: `null`. ###### application/json body.items item.restriction_kind At least one alternative must match. ###### application/json body.items item.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.items item.restriction_kind: alternative 2 Type: `null`. ###### application/json body.items item.restriction_reason At least one alternative must match. ###### application/json body.items item.restriction_reason: alternative 1 Type: `string`. ###### application/json body.items item.restriction_reason: alternative 2 Type: `null`. ###### application/json body.items item.terminated_at At least one alternative must match. ###### application/json body.items item.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.terminated_at: alternative 2 Type: `null`. ###### application/json body.items item.termination_reason At least one alternative must match. ###### application/json body.items item.termination_reason: alternative 1 Type: `string`. ###### application/json body.items item.termination_reason: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Provision an admitted enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-provision **Authentication:** Send `Authorization: Bearer `. Configures the designated administrator, roles and commercial agreements for an enterprise already created with `POST /enterprises`. Requires a platform-operator binding and an `enterprise_wildcard` grant anchored at `platform-operators/` for `enterprises.provision`. Supply the contracted `service_types` and `platform_fee_bps`; `enterprise_fee_bps` defaults to 0. Provisioning is resumable: completed work is reported as `reused` on later runs. Production supports `first_access_method=enterprise_idp`; hosted magic-link and passkey first access are deployment-dependent. An `enterprise_idp` response reports `first_access.sent=false`; once its identity stack is ready, use the first-access resend endpoint to issue the command. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `designated_admin` | object | Yes | No additional fields | | `effective_from` | string | No | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `enterprise_fee_bps` | integer | No | minimum: 0; maximum: 10000; default: `0` | | `first_access_method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" | No | | | `iam_hosting` | "enterprise" / "platform" | No | | | `platform_fee_bps` | integer | Yes | minimum: 0; maximum: 10000 | | `service_types` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking"[] | Yes | minItems: 1 | Additional fields are not accepted. #### Request body schema.designated_admin | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `email` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | Additional fields are not accepted. ##### Request body schema.designated_admin.display_name At least one alternative must match. ###### Request body schema.designated_admin.display_name: alternative 1 Type: `string`. minLength: 1; maxLength: 200 ###### Request body schema.designated_admin.display_name: alternative 2 Type: `null`. #### Request body schema.service_types Type: `"custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking"[]`. minItems: 1 ##### Request body schema.service_types item Type: `"custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking"`. **Request URL — POST** ```http POST /enterprises/{enterprise_id}/provision ``` **Request Body — application/json** ```json { "designated_admin": { "display_name": "Acme Admin", "email": "admin@acme.example" }, "enterprise_fee_bps": 0, "first_access_method": "enterprise_idp", "iam_hosting": "enterprise", "platform_fee_bps": 10, "service_types": [ "custody", "deposit_fiat", "withdrawal_fiat" ] } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "admin_role_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "first_access": { "method": "enterprise_idp", "sent": false }, "human_actor_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_provider_id": null, "integration_role_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operator_role_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "steps": [ { "status": "completed", "step": "human_actor" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admin_role_id` | string | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `first_access` | object | Yes | No additional fields | | `human_actor_id` | string | Yes | | | `identity_provider_id` | string or null | Yes | | | `integration_role_id` | string or null | Yes | | | `operator_role_id` | string | Yes | | | `steps` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.first_access | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" | Yes | | | `sent` | boolean | Yes | | Additional fields are not accepted. ##### application/json body.identity_provider_id At least one alternative must match. ###### application/json body.identity_provider_id: alternative 1 Type: `string`. ###### application/json body.identity_provider_id: alternative 2 Type: `null`. ##### application/json body.integration_role_id At least one alternative must match. ###### application/json body.integration_role_id: alternative 1 Type: `string`. ###### application/json body.integration_role_id: alternative 2 Type: `null`. ##### application/json body.steps Type: `object[]`. ###### application/json body.steps item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `status` | "completed" / "reused" | Yes | | | `step` | string | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Reactivate enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-reactivate **Authentication:** Send `Authorization: Bearer `. Platform-actor-only; enterprise-scoped actors cannot perform this action. Lifts a restriction or suspension and re-enables hosted logins. A reason is required and audited. A `503` with reason `reactivation_outcome_unknown` means the reactivation is unconfirmed and nothing was handed back; edge tried to put the restriction back. Repeat the request; if the repeat is refused as not restricted, suspend the enterprise and reactivate it again. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string | Yes | minLength: 3; maxLength: 2000 | Additional fields are not accepted. **Request URL — POST** ```http POST /enterprises/{enterprise_id}/reactivate ``` **Request Body — application/json** ```json { "reason": "Sanctions screening hit under review (case CMP-1042)" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": null, "restriction_reason": null, "restriction_state": "none", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | Yes | | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_master_account At least one alternative must match. ###### application/json body.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_master_account: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.legal_form At least one alternative must match. ###### application/json body.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.legal_form: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.restriction_kind At least one alternative must match. ###### application/json body.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.restriction_kind: alternative 2 Type: `null`. ##### application/json body.restriction_reason At least one alternative must match. ###### application/json body.restriction_reason: alternative 1 Type: `string`. ###### application/json body.restriction_reason: alternative 2 Type: `null`. ##### application/json body.terminated_at At least one alternative must match. ###### application/json body.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.terminated_at: alternative 2 Type: `null`. ##### application/json body.termination_reason At least one alternative must match. ###### application/json body.termination_reason: alternative 1 Type: `string`. ###### application/json body.termination_reason: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Resend enterprise first access Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-resend-create **Authentication:** Send `Authorization: Bearer `. Resends access to the provisioned administrator. Requires a platform-operator binding and an `enterprise_wildcard` grant anchored at `platform-operators/` for `enterprises.provision`. Send no request body. For `enterprise_idp`, the identity stack must be ready and provisioning must have created the administrator; the response contains the emitted `event_id`. That path is limited to one resend per user per five minutes. For a hosted first-access method, returns the enterprise, administrator and first-access delivery result. Hosted resend is unavailable in production (`409 state_conflict`, `data.reason = not_supported`). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /enterprises/{enterprise_id}/first-access/resend ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **429 The request was rate limited** The request was rate limited; retry according to the returned backoff information. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body At least one alternative must match. ##### application/json body: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `first_access` | object | Yes | No additional fields | | `human_actor_id` | string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.first_access | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `method` | "magic_link" / "passkey_enrolment" / "enterprise_idp" | Yes | | | `sent` | boolean | Yes | | Additional fields are not accepted. ##### application/json body: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 429 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Restrict enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-restrict **Authentication:** Send `Authorization: Bearer `. Platform-actor-only; enterprise-scoped actors cannot perform this action. Pauses the enterprise’s operations while its people keep signing in and reading. A reason is required and audited. Returns the updated enterprise resource. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string | Yes | minLength: 3; maxLength: 2000 | Additional fields are not accepted. **Request URL — POST** ```http POST /enterprises/{enterprise_id}/restrict ``` **Request Body — application/json** ```json { "reason": "Sanctions screening hit under review (case CMP-1042)" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": "restricted", "restriction_reason": "Sanctions screening hit under review (case CMP-1042)", "restriction_state": "restricted", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | Yes | | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_master_account At least one alternative must match. ###### application/json body.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_master_account: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.legal_form At least one alternative must match. ###### application/json body.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.legal_form: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.restriction_kind At least one alternative must match. ###### application/json body.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.restriction_kind: alternative 2 Type: `null`. ##### application/json body.restriction_reason At least one alternative must match. ###### application/json body.restriction_reason: alternative 1 Type: `string`. ###### application/json body.restriction_reason: alternative 2 Type: `null`. ##### application/json body.terminated_at At least one alternative must match. ###### application/json body.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.terminated_at: alternative 2 Type: `null`. ##### application/json body.termination_reason At least one alternative must match. ###### application/json body.termination_reason: alternative 1 Type: `string`. ###### application/json body.termination_reason: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Suspend enterprise Source: https://business-api-docs.youhodler.com/api/reference/enterprises/enterprises-suspend **Authentication:** Send `Authorization: Bearer `. Platform-actor-only; enterprise-scoped actors cannot perform this action. Requires `enterprises.restrict`. Restricts the enterprise and ends its hosted logins until it is reactivated. A reason is required and audited. Returns the updated enterprise resource. Suspending an enterprise that is already suspended ends its access again and succeeds; the standing suspension and its reason are kept, and the new reason is not recorded on the enterprise. A `503` with reason `suspension_outcome_unknown` means the suspension may or may not have landed and its logins and sessions were not ended: repeat the request. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string | Yes | minLength: 3; maxLength: 2000 | Additional fields are not accepted. **Request URL — POST** ```http POST /enterprises/{enterprise_id}/suspend ``` **Request Body — application/json** ```json { "reason": "Sanctions screening hit under review (case CMP-1042)" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "admission_state": "operational", "created_at": "2026-05-01T10:00:00Z", "default_master_account": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "2026-05-01T10:00:00.000Z", "external_id": "ent-ext-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "jurisdiction": "DE", "jurisdiction_selected": true, "kyb_source": "sumsub", "kyb_stage": "verified", "kyb_state": "verified", "kyb_state_reason": null, "kyb_state_updated_at": "2026-05-01T10:00:00.000Z", "kyc_source": null, "kyc_stage": null, "legal_form": "GmbH", "legal_name": "Acme Fintech GmbH", "metadata": { "hq_country": "DE", "industry": "fintech" }, "resource": "enterprise", "restriction_kind": "suspended", "restriction_reason": "Sanctions screening hit under review (case CMP-1042)", "restriction_state": "restricted", "terminated_at": null, "termination_reason": null, "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `admission_state` | "admission_review" / "admitted" / "operational" / "restricted" / "offboarding" / "terminated" | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `default_master_account` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | | `jurisdiction_selected` | boolean | Yes | | | `kyb_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyb_stage` | "form_k_ready" / "verified" or null | Yes | | | `kyb_state` | "not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected" or null | Yes | | | `kyb_state_reason` | string or null | Yes | | | `kyb_state_updated_at` | string or null | Yes | | | `kyc_source` | "bootstrap" / "sumsub" or null | Yes | | | `kyc_stage` | "verified" or null | Yes | | | `legal_form` | string or null | Yes | | | `legal_name` | string | Yes | minLength: 1 | | `metadata` | object or null | No | | | `resource` | "enterprise" | Yes | | | `restriction_kind` | "restricted" / "suspended" or null | Yes | | | `restriction_reason` | string or null | Yes | | | `restriction_state` | "none" / "restricted" | Yes | | | `terminated_at` | string or null | Yes | | | `termination_reason` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.default_master_account At least one alternative must match. ###### application/json body.default_master_account: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.default_master_account: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.kyb_source At least one alternative must match. ###### application/json body.kyb_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyb_source: alternative 2 Type: `null`. ##### application/json body.kyb_stage At least one alternative must match. ###### application/json body.kyb_stage: alternative 1 Type: `"form_k_ready" / "verified"`. ###### application/json body.kyb_stage: alternative 2 Type: `null`. ##### application/json body.kyb_state At least one alternative must match. ###### application/json body.kyb_state: alternative 1 Type: `"not_started" / "in_progress" / "submitted" / "in_review" / "resubmission_required" / "form_k_ready" / "verified" / "rejected"`. ###### application/json body.kyb_state: alternative 2 Type: `null`. ##### application/json body.kyb_state_reason At least one alternative must match. ###### application/json body.kyb_state_reason: alternative 1 Type: `string`. ###### application/json body.kyb_state_reason: alternative 2 Type: `null`. ##### application/json body.kyb_state_updated_at At least one alternative must match. ###### application/json body.kyb_state_updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.kyb_state_updated_at: alternative 2 Type: `null`. ##### application/json body.kyc_source At least one alternative must match. ###### application/json body.kyc_source: alternative 1 Type: `"bootstrap" / "sumsub"`. ###### application/json body.kyc_source: alternative 2 Type: `null`. ##### application/json body.kyc_stage At least one alternative must match. ###### application/json body.kyc_stage: alternative 1 Type: `"verified"`. ###### application/json body.kyc_stage: alternative 2 Type: `null`. ##### application/json body.legal_form At least one alternative must match. ###### application/json body.legal_form: alternative 1 Type: `string`. minLength: 1 ###### application/json body.legal_form: alternative 2 Type: `null`. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.restriction_kind At least one alternative must match. ###### application/json body.restriction_kind: alternative 1 Type: `"restricted" / "suspended"`. ###### application/json body.restriction_kind: alternative 2 Type: `null`. ##### application/json body.restriction_reason At least one alternative must match. ###### application/json body.restriction_reason: alternative 1 Type: `string`. ###### application/json body.restriction_reason: alternative 2 Type: `null`. ##### application/json body.terminated_at At least one alternative must match. ###### application/json body.terminated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.terminated_at: alternative 2 Type: `null`. ##### application/json body.termination_reason At least one alternative must match. ###### application/json body.termination_reason: alternative 1 Type: `string`. ###### application/json body.termination_reason: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get event Source: https://business-api-docs.youhodler.com/api/reference/events/events-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `event_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /events/{event_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `aggregate` | object | Yes | No additional fields | | `data` | object | Yes | | | `event_type` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | Yes | | | `occurred_at` | string or string | Yes | | | `partition_key` | string | Yes | minLength: 1 | | `published_at` | string or string | Yes | | | `resource` | "event" | Yes | | | `schema_version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `scope_ref` | string or null | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `trace_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ##### application/json body.aggregate | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1 | | `id` | string | Yes | minLength: 1 | Additional fields are not accepted. ##### application/json body.metadata At least one alternative must match. ###### application/json body.metadata: alternative 1 Type: `object`. ###### application/json body.metadata: alternative 2 Type: `null`. ##### application/json body.occurred_at At least one alternative must match. ###### application/json body.occurred_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.occurred_at: alternative 2 Type: `string`. format: date-time ##### application/json body.published_at At least one alternative must match. ###### application/json body.published_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.published_at: alternative 2 Type: `string`. format: date-time ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|clients|master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List events Source: https://business-api-docs.youhodler.com/api/reference/events/events-list **Authentication:** Send `Authorization: Bearer `. Lists tenant-visible platform events. If omitted, `scope_ref` is derived from the authenticated enterprise or client context. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | No | pattern: `^(enterprises\|clients\|master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `from_date` | query | string or string | No | | | `to_date` | query | string or string | No | | | `actor_id` | query | string | No | minLength: 1 | | `aggregate_type` | query | string | No | minLength: 1 | | `aggregate_id` | query | string | No | minLength: 1 | | `event_type` | query | "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" or "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1"[] | No | | | `event_type_pattern` | query | string | No | minLength: 1 | | `trace_id` | query | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | ## Request **Request URL — GET** ```http GET /events ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "aggregate": { "type": "withdrawal", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "data": { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "failure_reason": null, "family": "withdrawal", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "occurred_at": "2026-05-01T10:00:00Z", "operation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "settled" }, "event_type": "operations.withdrawal.settled.v1", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "metadata": null, "occurred_at": "2026-05-01T10:00:00Z", "partition_key": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "published_at": "2026-05-01T10:00:00Z", "resource": "event", "schema_version": 1, "scope_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "trace_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `aggregate` | object | Yes | No additional fields | | `data` | object | Yes | | | `event_type` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `metadata` | object or null | Yes | | | `occurred_at` | string or string | Yes | | | `partition_key` | string | Yes | minLength: 1 | | `published_at` | string or string | Yes | | | `resource` | "event" | Yes | | | `schema_version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `scope_ref` | string or null | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `trace_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### application/json body.items item.aggregate | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1 | | `id` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.metadata At least one alternative must match. ###### application/json body.items item.metadata: alternative 1 Type: `object`. ###### application/json body.items item.metadata: alternative 2 Type: `null`. ###### application/json body.items item.occurred_at At least one alternative must match. ###### application/json body.items item.occurred_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.occurred_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.published_at At least one alternative must match. ###### application/json body.items item.published_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.published_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.scope_ref At least one alternative must match. ###### application/json body.items item.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|clients|master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.federation At least one alternative must match. ###### application/json body.items item.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Replay event to webhook subscriptions Source: https://business-api-docs.youhodler.com/api/reference/events/events-replay **Authentication:** Send `Authorization: Bearer `. Schedules webhook deliveries for a stored event. Omit `subscription_ids` to use matching subscriptions; tenant-paused subscriptions are excluded, while deliveries for paused platform-managed subscriptions are held until reactivation. An existing pending or retrying series is reused; a terminal series can produce a new delivery. Unknown, inactive or out-of-scope explicit `subscription_ids` are ignored; compare the returned `targeted_subscription_ids` with the requested list. A named target that cannot receive the event class returns 400 invalid_request with data.reason=event_type_not_subscribable; for public events, a tenant-created target can be selected even when its ordinary event filter does not match. `targeted_subscription_ids` is null when no explicit list was supplied. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `event_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `subscription_ids` | string[] | No | | Additional fields are not accepted. #### Request body schema.subscription_ids Type: `string[]`. ##### Request body schema.subscription_ids item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` **Request URL — POST** ```http POST /events/{event_id}/replay ``` **Request Body — application/json** ```json { "subscription_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ] } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "accepted": true, "replayed_event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "targeted_subscription_ids": [ "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted` | true | Yes | | | `replayed_event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `targeted_subscription_ids` | string[] or null | Yes | | Additional fields are not accepted. ##### application/json body.targeted_subscription_ids At least one alternative must match. ###### application/json body.targeted_subscription_ids: alternative 1 Type: `string[]`. ###### application/json body.targeted_subscription_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.targeted_subscription_ids: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List webhook event types Source: https://business-api-docs.youhodler.com/api/reference/events/events-types **Authentication:** Send `Authorization: Bearer `. Returns the canonical public webhook event catalog accepted by event filters and webhook subscriptions. ## Request **Request URL — GET** ```http GET /events/types ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "domain": "operations", "event_type": "operations.withdrawal.settled.v1", "resource": "withdrawal", "schema_version": 1, "source_package": "@yh/operation-flow-contracts", "verb": "settled" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `domain` | string | Yes | minLength: 1 | | `event_type` | "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" | Yes | | | `resource` | string | Yes | minLength: 1 | | `schema_version` | 1 | Yes | | | `source_package` | string | Yes | minLength: 1 | | `verb` | string | Yes | minLength: 1 | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List client-account external funding balances Source: https://business-api-docs.youhodler.com/api/reference/external-funding/client-accounts-external-settlement-balances **Authentication:** Send `Authorization: Bearer `. Returns current external funding spend authority for a client account. This endpoint is separate from ledger balances, is informational, and provider unavailability is surfaced as provider_unavailable (503) instead of a zero balance. The read resolves the external_source_spend binding. Currency is optional; unsupported currency returns unsupported_currency (422). Missing binding, external-funding mode, or client mapping returns 404. The caller needs accounts.read coverage on the client account. available, held, and total are decimal strings in the item currency; held and total may be absent. This snapshot neither reserves funds nor guarantees later execution. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_account_id` | path | string | Yes | format: uuid | | `currency` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | ## Request **Request URL — GET** ```http GET /client-accounts/{client_account_id}/external-settlement-balances ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/00000000-0000-4000-8000-000000000001", "as_of": "2026-05-01T10:00:00Z", "available": "950.00", "currency": "EUR", "held": "50.00", "source": "external_settlement", "total": "1000.00" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body External settlement balance reads are informational spend-authority reads. Provider unavailability is surfaced as a typed error and is not mapped to zero balance. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item External settlement balance reads are informational spend-authority reads. Provider unavailability is surfaced as a typed error and is not mapped to zero balance. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `as_of` | string or string | Yes | | | `available` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `held` | string | No | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `source` | "external_settlement" | Yes | | | `total` | string | No | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.as_of At least one alternative must match. ###### application/json body.items item.as_of: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.as_of: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create external settlement conversion Source: https://business-api-docs.youhodler.com/api/reference/external-settlement-conversions/external-settlement-conversions-create **Authentication:** Send `Authorization: Bearer `. Externally settled conversions are conversions that can be connected to an external settlement source when your enterprise needs that settlement model. Contact your account manager for availability and setup details. Creates an explicit externally settled conversion. The strict request supplies `account_ref`, `source_amount` as `{value, currency}`, `target_currency`, and required `external_settlement_role`; settlement routing is binding-resolved by the platform. The account schema accepts AccountRef, but this command currently requires a client account with a matching external-settlement binding; master-account input is denied with 422. `external_source_spend` resolves the source currency externally, while `external_target_disbursement` resolves the target currency externally; the role is never inferred from the asset class. Idempotency-Key takes precedence over optional body client_idempotency_key; omitting both generates a key without caller-controlled replay. The response is the typed operation read projection, not raw family parameters. Callers with an effective human subject must obtain confirmation via `POST /action-tokens` using action `external_settlement_conversion.create` plus the structured command (or a matching command_digest), then send X-Action-Token. Service principals are exempt. The public edge does not accept delegated actor-token exchange or on-behalf-of headers. The 202 response is read after creation, so the caller also needs external_settlement_conversions.read or operations.recovery coverage on the account to receive it; otherwise creation may succeed before the response read returns 404. Policy/settlement denial returns not_admissible (422); unavailable settlement facts return temporarily_unavailable (503). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | | `X-Action-Token` | header | string | No | Single-use step-up confirmation token bound to the server-canonical command for this request. Required when the effective subject is a human user. Callers without a human subject skip only this confirmation check and still pass normal authentication and capability guards. Obtain the token through `POST /action-tokens`, then submit it with the guarded request. Structured commands are supported for withdrawal, conversion, and external-settlement conversion creation; the issue endpoint also accepts `command_digest`. Missing or invalid human-confirmation tokens produce `400` with `code` in {`action_token_required`, `action_token_rejected`}; an unreachable approval service produces `502 action_token_validation_failed`. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_idempotency_key` | string | No | minLength: 1 | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `source_amount` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. #### Request body schema.source_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /external-settlement-conversions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "external_settlement_role": "external_source_spend", "source_amount": { "currency": "EUR", "value": "250.00" }, "target_currency": "BTC" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "external_settlement_role": "external_source_spend", "failure_reason": null, "family": "external_settlement_conversion", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "internal_settlement_account_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "settlement_checked_at": "2026-05-01T10:00:00Z", "settlement_currency": "EUR", "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Step-up confirmation failed for a money-movement operation** Step-up confirmation failed for a money-movement operation. `code` is one of: `action_token_required` (X-Action-Token header missing), `action_token_rejected` (token is unknown, expired, already consumed, or its server-canonical command binding does not match the current request). Obtain a fresh token via `POST /action-tokens` and retry. Structured issuance accepts `withdrawal.create`, `conversion.create`, and `external_settlement_conversion.create`. The issue endpoint also accepts `command_digest`. Human confirmation applies to the effective user subject; callers without a human subject skip this confirmation check. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.settlement_checked_at At least one alternative must match. ###### application/json body.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settlement_checked_at: alternative 2 Type: `string`. format: date-time ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 403 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 404 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 409 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 422 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 500 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 502 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 503 schema Content type: `application/json`. See [response 502 schema](#response-502-schema). --- # Get external settlement conversion Source: https://business-api-docs.youhodler.com/api/reference/external-settlement-conversions/external-settlement-conversions-get **Authentication:** Send `Authorization: Bearer `. Externally settled conversions are conversions that can be connected to an external settlement source when your enterprise needs that settlement model. Contact your account manager for availability and setup details. Returns the typed external settlement conversion operation snapshot. An absent operation, another operation family, or missing read/recovery scope coverage returns 404. The public shape contains sanitized settlement-role evidence only and never raw operation family parameters. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `external_settlement_conversion_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /external-settlement-conversions/{external_settlement_conversion_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "external_settlement_role": "external_source_spend", "failure_reason": null, "family": "external_settlement_conversion", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "internal_settlement_account_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "settlement_checked_at": "2026-05-01T10:00:00Z", "settlement_currency": "EUR", "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.settlement_checked_at At least one alternative must match. ###### application/json body.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settlement_checked_at: alternative 2 Type: `string`. format: date-time ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List external settlement conversions Source: https://business-api-docs.youhodler.com/api/reference/external-settlement-conversions/external-settlement-conversions-list **Authentication:** Send `Authorization: Bearer `. Externally settled conversions are conversions that can be connected to an external settlement source when your enterprise needs that settlement model. Contact your account manager for availability and setup details. Lists externally settled conversion operation snapshots for the required account_ref, with external_settlement_conversions.read coverage on that account. page_size defaults to 100 (1–500); pass next_page_token as page_token for the next page. Responses expose lifecycle state, requested target currency, settlement role, settlement currency, and binding-resolved internal settlement account only. Adapter-private settlement details stay behind the service boundary. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /external-settlement-conversions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "external_settlement_role": "external_source_spend", "failure_reason": null, "family": "external_settlement_conversion", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "internal_settlement_account_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "settlement_checked_at": "2026-05-01T10:00:00Z", "settlement_currency": "EUR", "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "target_currency": "BTC", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.fee_summary At least one alternative must match. ###### application/json body.items item.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item.fill_rate At least one alternative must match. ###### application/json body.items item.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.settled_at At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settled_at: alternative 2 Type: `null`. ###### application/json body.items item.settlement_checked_at At least one alternative must match. ###### application/json body.items item.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.federation At least one alternative must match. ###### application/json body.items item.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Preview a fee Source: https://business-api-docs.youhodler.com/api/reference/fee-previews/fee-previews-create **Authentication:** Send `Authorization: Bearer `. Returns a non-binding fee preview for a planned operation. `subject_ref` must identify a client, client account, enterprise, or master account within the caller's bound tenant scope (`clients/`, `client-accounts/`, `enterprises/`, or `master-accounts/`). Pricing uses `principal_amount`, `service_type`, and the agreements active at `requested_at` (the current time when omitted). `settlement_amount` is accepted but does not currently affect the calculation. The response is wrapped in a `fee_preview` envelope; no fee-specific capability is required, but authentication and tenant scope checks still apply. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `operation_type` | "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "conversion" | Yes | | | `principal_amount` | object | Yes | No additional fields | | `requested_at` | string | No | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `service_type` | "custody" / "conversion" / "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "staking" | Yes | | | `settlement_amount` | object or null | No | | | `subject_ref` | string | Yes | pattern: `^(clients\|client-accounts\|enterprises\|master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. #### Request body schema.settlement_amount At least one alternative must match. ##### Request body schema.settlement_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### Request body schema.settlement_amount: alternative 2 Type: `null`. **Request URL — POST** ```http POST /fee-previews ``` **Request Body — application/json** ```json { "operation_type": "withdrawal_crypto", "principal_amount": { "currency": "USDC", "value": "100.00" }, "requested_at": "2026-05-01T10:00:00Z", "service_type": "withdrawal_crypto", "settlement_amount": null, "subject_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "fee_preview": { "binding": "non_binding", "computed_at": "2026-05-01T10:00:00Z", "enterprise_ca_version": 2, "fee_summary": { "components": [ { "type": "platform_fee", "amount": { "currency": "USDC", "value": "1.00" }, "payee_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "total": { "currency": "USDC", "value": "1.00" } }, "operation_type": "withdrawal_crypto", "platform_ca_version": 1 } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fee_preview` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.fee_preview | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `binding` | "non_binding" | Yes | | | `computed_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `enterprise_ca_version` | integer or null | Yes | | | `fee_summary` | object | Yes | No additional fields | | `operation_type` | "withdrawal_crypto" / "withdrawal_fiat" / "deposit_crypto" / "deposit_fiat" / "internal_transfer" / "conversion" | Yes | | | `platform_ca_version` | integer or null | Yes | | Additional fields are not accepted. ###### application/json body.fee_preview.enterprise_ca_version At least one alternative must match. ###### application/json body.fee_preview.enterprise_ca_version: alternative 1 Type: `integer`. maximum: 9007199254740991; exclusiveMinimum: 0 ###### application/json body.fee_preview.enterprise_ca_version: alternative 2 Type: `null`. ###### application/json body.fee_preview.fee_summary | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_preview.fee_summary.components Type: `object[]`. ###### application/json body.fee_preview.fee_summary.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | | `amount` | object | Yes | No additional fields | | `payee_ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.fee_preview.fee_summary.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_preview.fee_summary.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_preview.platform_ca_version At least one alternative must match. ###### application/json body.fee_preview.platform_ca_version: alternative 1 Type: `integer`. maximum: 9007199254740991; exclusiveMinimum: 0 ###### application/json body.fee_preview.platform_ca_version: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create withdrawal](/api/reference/withdrawals/withdrawals-create) — Initiate a withdrawal after previewing fees - `POST` [Create conversion](/api/reference/conversions/conversions-create) — Initiate a conversion after previewing fees --- # List financial accounts Source: https://business-api-docs.youhodler.com/api/reference/financial-accounts/financial-accounts-list **Authentication:** Send `Authorization: Bearer `. Cursor-paginated financial accounts and their owner labels within a topology scope. Master accounts are listed first, then client accounts, each ordered by account_ref. Including enterprise client accounts additionally requires clients.read; account scope grants restrict returned owners. The owner fields owner_display_name and client_status also require clients.read: when clients.read does not cover a client scope_ref, its accounts are still returned with both fields set to null, the owner label is not searched, and a client_status filter is rejected with 403 scope_not_covered. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `type` | query | "master_account" / "client_account" or "master_account" / "client_account"[] | No | | | `status` | query | "active" / "suspended" / "closed" or "active" / "suspended" / "closed"[] | No | | | `client_status` | query | "active" / "suspended" / "closed" or "active" / "suspended" / "closed"[] | No | | | `q` | query | string | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /financial-accounts ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | "master_account" / "client_account" | Yes | | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_status` | "active" / "suspended" / "closed" or null | Yes | | | `display_name` | string or null | Yes | | | `owner_display_name` | string or null | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | Additional fields are not accepted. ###### application/json body.items item.client_status At least one alternative must match. ###### application/json body.items item.client_status: alternative 1 Type: `"active" / "suspended" / "closed"`. ###### application/json body.items item.client_status: alternative 2 Type: `null`. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ###### application/json body.items item.owner_display_name At least one alternative must match. ###### application/json body.items item.owner_display_name: alternative 1 Type: `string`. ###### application/json body.items item.owner_display_name: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Provision funding endpoint Source: https://business-api-docs.youhodler.com/api/reference/funding-endpoints/funding-endpoints-create **Authentication:** Send `Authorization: Bearer `. Provisions a new deposit-side endpoint. Crypto routes to the custody rails backend. Fiat requests carry only `account_ref` and `routing`; the pooled fiat route owner is derived server-side inside `rails-router-service` rather than supplied in the request body, and provisioning is delegated to `fiat-rails-service` after the route-guard/availability pipeline approves the route. Two checks can refuse a request with `422` and `code = not_admissible` before anything is provisioned. First, a fiat `local_bank_transfer` request made by a signed-in user needs that user to have accepted the published payment-account terms: otherwise `data.reason` is `legal_acceptance_required`, or `legal_requirement_unavailable` when no terms are published; requests made by service accounts skip this check. Then the account is checked for admission, on fiat and crypto requests alike, before the route or its availability is resolved: the account must not be suspended or closed; a client account needs a verified client and an enterprise master account a verified enterprise, and the enterprise behind the account (the parent of the client, or the owner of the master account) must be operational and unrestricted (one still being admitted, offboarding, terminated or restricted is refused); a master account owned by a platform operator is decided on its own status alone. An account refused admission returns `422` with `code = not_admissible`, `data.reason` one of `CLIENT_NOT_VERIFIED`, `ENTERPRISE_NOT_VERIFIED`, `ENTERPRISE_NOT_OPERATIONAL`, `ENTERPRISE_RESTRICTED`, `ACCOUNT_SUSPENDED`, `ACCOUNT_CLOSED`, `CLIENT_SUSPENDED`, `CLIENT_CLOSED` and `data.source` naming the check that refused (`verification`, `lifecycle`); when admission cannot be checked the request returns `503 temporarily_unavailable`. Neither response creates an endpoint. An idempotent retry is checked again, so an account refused since its first request gets the refusal instead of the stored endpoint. A fiat route whose provider does not serve this kind of account holder, such as a client account on a route that issues accounts to companies only, is refused with `422`, `code = rail_not_available` and `data.reason = fiat_party_not_supported`; a retry cannot open it. Idempotent on the required `Idempotency-Key` header. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `rail_class` | "crypto" | Yes | | | `routing` | object | Yes | No additional fields | Additional fields are not accepted. ##### Request body schema: alternative 1.routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `rail_class` | "fiat" | Yes | | | `routing` | object | Yes | No additional fields | Additional fields are not accepted. ##### Request body schema: alternative 2.routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | Additional fields are not accepted. **Request URL — POST** ```http POST /funding-endpoints ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "crypto", "routing": { "asset": "USDC", "network": "ethereum" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `failure` | object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `status` | "provisioning" / "active" / "failed" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | No | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.failure At least one alternative must match. ###### application/json body.failure: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "party_profile_incomplete" / "party_not_supported" / "party_already_provisioned" / "provider_rejected" / "manual_review_required" / "provisioning_unavailable" | Yes | | | `retryable` | boolean | Yes | | Additional fields are not accepted. ###### application/json body.failure: alternative 2 Type: `null`. ##### application/json body.fiat_rail At least one alternative must match. ###### application/json body.fiat_rail: alternative 1 Type: `"sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire"`. ###### application/json body.fiat_rail: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `attribution_mode` | "virtual_account" / "payment_reference" | Yes | | | `bank_details` | object or object or null | No | | | `beneficiary_name` | string or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.beneficiary_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.beneficiary_name: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.beneficiary_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.network At least one alternative must match. ###### application/json body.network: alternative 1 Type: `string`. ###### application/json body.network: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get funding endpoint](/api/reference/funding-endpoints/funding-endpoints-get) — Read the created endpoint - `GET` [List deposit instructions](/api/reference/deposit-instructions/deposit-instructions-list) — Deposit instructions become available after creation --- # Get funding endpoint Source: https://business-api-docs.youhodler.com/api/reference/funding-endpoints/funding-endpoints-get **Authentication:** Send `Authorization: Bearer `. Reads a funding endpoint by id. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat reads also require `account_ref` because fiat funding endpoints are account-scoped; they are delegated to `fiat-rails-service`, and unknown or out-of-scope fiat ids return `resource_not_found`. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `funding_endpoint_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /funding-endpoints/{funding_endpoint_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `failure` | object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `status` | "provisioning" / "active" / "failed" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | No | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.failure At least one alternative must match. ###### application/json body.failure: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "party_profile_incomplete" / "party_not_supported" / "party_already_provisioned" / "provider_rejected" / "manual_review_required" / "provisioning_unavailable" | Yes | | | `retryable` | boolean | Yes | | Additional fields are not accepted. ###### application/json body.failure: alternative 2 Type: `null`. ##### application/json body.fiat_rail At least one alternative must match. ###### application/json body.fiat_rail: alternative 1 Type: `"sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire"`. ###### application/json body.fiat_rail: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `attribution_mode` | "virtual_account" / "payment_reference" | Yes | | | `bank_details` | object or object or null | No | | | `beneficiary_name` | string or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.beneficiary_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.beneficiary_name: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.beneficiary_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.network At least one alternative must match. ###### application/json body.network: alternative 1 Type: `string`. ###### application/json body.network: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List funding endpoints](/api/reference/funding-endpoints/funding-endpoints-list) — List all funding endpoints - `GET` [List deposit instructions](/api/reference/deposit-instructions/deposit-instructions-list) — View deposit instructions for this endpoint --- # List funding endpoints Source: https://business-api-docs.youhodler.com/api/reference/funding-endpoints/funding-endpoints-list **Authentication:** Send `Authorization: Bearer `. Lists deposit-side endpoints for the selected rail. Crypto endpoints route to the custody rails backend; fiat endpoints are delegated to `fiat-rails-service` and scoped to the supplied `account_ref`. On fiat resources, `fiat_routing.bank_details` carries the receive details a provider issues — `provider_payment_reference` (`required` says whether a payment without it can fail), `account_holder_address`, `bank_address` and `correspondent_bank` — always present, `null` when the provider issued none. `provider_payment_reference` is the provider's own reference, separate from the pooled ISO 11649 `reference`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `status` | query | "provisioning" / "active" / "failed" / "disabled" / "retired" | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /funding-endpoints ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "endpoint": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "network": "ethereum" }, "fiat_rail": null, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "rail_class": "crypto", "status": "active", "updated_at": "2026-05-01T10:00:00Z" }, { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "asset": "USD", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": null, "failure": null, "fiat_rail": "fedwire", "fiat_routing": { "asset": "USD", "attribution_mode": "virtual_account", "bank_details": null, "beneficiary_name": null, "fiat_rail": "fedwire", "reference": null }, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail_class": "fiat", "status": "provisioning", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `failure` | object or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `status` | "provisioning" / "active" / "failed" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.asset At least one alternative must match. ###### application/json body.items item.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.items item.asset: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `endpoint` | object | No | No additional fields | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.endpoint | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo: alternative 1 Type: `string`. ###### application/json body.items item.crypto_routing: alternative 1.endpoint.memo: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing: alternative 2 Type: `null`. ###### application/json body.items item.failure At least one alternative must match. ###### application/json body.items item.failure: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "party_profile_incomplete" / "party_not_supported" / "party_already_provisioned" / "provider_rejected" / "manual_review_required" / "provisioning_unavailable" | Yes | | | `retryable` | boolean | Yes | | Additional fields are not accepted. ###### application/json body.items item.failure: alternative 2 Type: `null`. ###### application/json body.items item.fiat_rail At least one alternative must match. ###### application/json body.items item.fiat_rail: alternative 1 Type: `"sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire"`. ###### application/json body.items item.fiat_rail: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `attribution_mode` | "virtual_account" / "payment_reference" | Yes | | | `bank_details` | object or object or null | No | | | `beneficiary_name` | string or null | No | | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1 Exactly one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `provider_payment_reference` | object or null | No | | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.account_holder_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 1.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_address` | object or null | No | | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `correspondent_bank` | object or null | No | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `provider_payment_reference` | object or null | No | | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_holder_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string or null | Yes | | | `address` | object or null | Yes | | | `bic` | string | Yes | minLength: 1; maxLength: 11 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 1 Type: `string`. minLength: 1; maxLength: 64 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.account_number: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 1.address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.correspondent_bank: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `required` | boolean | Yes | | | `value` | string | Yes | minLength: 1; maxLength: 140 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.provider_payment_reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 1: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_details: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.beneficiary_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.beneficiary_name: alternative 1 Type: `string`. ###### application/json body.items item.fiat_routing: alternative 1.beneficiary_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.reference At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.reference: alternative 1 Type: `string`. ###### application/json body.items item.fiat_routing: alternative 1.reference: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 2 Type: `null`. ###### application/json body.items item.network At least one alternative must match. ###### application/json body.items item.network: alternative 1 Type: `string`. ###### application/json body.items item.network: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Provision funding endpoint](/api/reference/funding-endpoints/funding-endpoints-create) — Register a new funding endpoint - `GET` [Get funding endpoint](/api/reference/funding-endpoints/funding-endpoints-get) — Fetch a single endpoint by ID --- # List the deposit fiat routes of an account with their readiness Source: https://business-api-docs.youhodler.com/api/reference/funding-endpoints/funding-routes-readiness **Authentication:** Send `Authorization: Bearer `. Returns active deposit fiat route candidates from the asset catalog, including routes blocked by commercial eligibility, feature flags or runtime readiness. No crypto route is returned. `attribution_mode` names the setup call a route takes: `virtual_account` through `POST /funding-endpoints`, `payment_reference` through `POST /deposit-instructions`, null when the route has no configured mode. A null mode can also mean no commercial route owner could be resolved. Routes are sorted by rail then currency; the complete list has no external pagination. Requires a bound enterprise/client operating scope: missing or platform bindings return 403, and an account outside the bound scope is hidden with 404. An unavailable route carries the reasons it is blocked, the same ones setup refuses it with; `fiat_international_verification_required` means the account holder must complete the international verification first; `fiat_party_not_supported` means the provider of the route does not serve this kind of account holder, so the route stays closed for this account. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /funding-routes/readiness ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "routes": [ { "attribution_mode": "virtual_account", "availability": "unavailable", "currency": "USD", "method": "fedwire", "rail": "fedwire", "rail_class": "fiat", "reasons": [ { "code": "fiat_international_verification_required", "source": "runtime" } ] }, { "attribution_mode": "virtual_account", "availability": "available", "currency": "ARS", "method": "local_bank_transfer", "rail": "local_bank_transfer", "rail_class": "fiat", "reasons": [] } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `routes` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.routes Type: `object[]`. ###### application/json body.routes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attribution_mode` | "virtual_account" / "payment_reference" or null | Yes | | | `availability` | "available" / "unavailable" | Yes | | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `method` | string | Yes | pattern: `^[a-z0-9_]+$` | | `rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `rail_class` | "fiat" | Yes | | | `reasons` | object or object or object or object[] | Yes | | Additional fields are not accepted. ###### application/json body.routes item.attribution_mode At least one alternative must match. ###### application/json body.routes item.attribution_mode: alternative 1 Type: `"virtual_account" / "payment_reference"`. ###### application/json body.routes item.attribution_mode: alternative 2 Type: `null`. ###### application/json body.routes item.reasons Type: `object or object or object or object[]`. ###### application/json body.routes item.reasons item Exactly one alternative must match. ###### application/json body.routes item.reasons item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "asset_rail_direction_unsupported" | Yes | | | `source` | "technical" | Yes | | Additional fields are not accepted. ###### application/json body.routes item.reasons item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "service_family_ineligible" | Yes | | | `source` | "commercial" | Yes | | Additional fields are not accepted. ###### application/json body.routes item.reasons item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "crypto_route_unavailable" / "crypto_provider_projection_missing" / "crypto_provider_disabled" / "crypto_provider_capability_unavailable" / "crypto_provider_adapter_unavailable" / "fiat_operation_not_implemented" / "fiat_provider_unavailable" / "fiat_catalog_unsupported" / "fiat_provider_disabled" / "fiat_pooled_endpoint_missing" / "fiat_pooled_endpoint_inactive" / "fiat_unsupported_mode" / "fiat_unsupported_currency" / "fiat_unsupported_rail_method" / "fiat_inbound_forwarding_disabled" / "fiat_international_verification_required" / "fiat_party_not_supported" | Yes | | | `source` | "runtime" | Yes | | Additional fields are not accepted. ###### application/json body.routes item.reasons item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | "service_family_disabled" | Yes | | | `source` | "feature_flag" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Register identity provider Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-create **Authentication:** Send `Authorization: Bearer `. Registers a federated OIDC identity provider for an enterprise or platform-operator workspace. Discovery is resolved from `issuer_uri`; `jwks_uri` is optional and must match the discovery document when supplied. For an enterprise onboarded with its own identity stack (first-access method `enterprise_idp`) the body is `scope_ref`, `issuer_uri`, `client_id` and `webhook_receiver_url` only, and it registers that stack instead: a resumable saga (IdP row, issuer probe, the backend’s service account, identity and command subscriptions) that answers its ledger and replays missing steps on a repeat call. On production registration and deletion return HTTP 409 with code=state_conflict and data.reason=not_supported: identity providers are registered by seed there. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema At least one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_id` | string | Yes | minLength: 1 | | `issuer_uri` | string | Yes | format: uri | | `scope_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `webhook_receiver_url` | string | Yes | format: uri | Additional fields are not accepted. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | No | default: `true` | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `link_by_verified_email` | boolean | No | default: `false` | | `protocol` | "oidc" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema: alternative 2.allowed_clock_skew_seconds At least one alternative must match. ###### Request body schema: alternative 2.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### Request body schema: alternative 2.allowed_clock_skew_seconds: alternative 2 Type: `null`. ##### Request body schema: alternative 2.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### Request body schema: alternative 2.claim_mapping.auth_context Type: `object[]`. ###### Request body schema: alternative 2.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### Request body schema: alternative 2.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### Request body schema: alternative 2.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### Request body schema: alternative 2.claim_mapping.display_name At least one alternative must match. ###### Request body schema: alternative 2.claim_mapping.display_name: alternative 1 Type: `string`. ###### Request body schema: alternative 2.claim_mapping.display_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.claim_mapping.email At least one alternative must match. ###### Request body schema: alternative 2.claim_mapping.email: alternative 1 Type: `string`. ###### Request body schema: alternative 2.claim_mapping.email: alternative 2 Type: `null`. ###### Request body schema: alternative 2.claim_mapping.family_name At least one alternative must match. ###### Request body schema: alternative 2.claim_mapping.family_name: alternative 1 Type: `string`. ###### Request body schema: alternative 2.claim_mapping.family_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.claim_mapping.given_name At least one alternative must match. ###### Request body schema: alternative 2.claim_mapping.given_name: alternative 1 Type: `string`. ###### Request body schema: alternative 2.claim_mapping.given_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.claim_mapping.required_claims Type: `object[]`. ###### Request body schema: alternative 2.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.claim_mapping.required_claims item.equals At least one alternative must match. ###### Request body schema: alternative 2.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### Request body schema: alternative 2.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ##### Request body schema: alternative 2.client_secret_ref At least one alternative must match. ###### Request body schema: alternative 2.client_secret_ref: alternative 1 Type: `string`. ###### Request body schema: alternative 2.client_secret_ref: alternative 2 Type: `null`. ##### Request body schema: alternative 2.jwks_uri At least one alternative must match. ###### Request body schema: alternative 2.jwks_uri: alternative 1 Type: `string`. format: uri ###### Request body schema: alternative 2.jwks_uri: alternative 2 Type: `null`. **Request URL — POST** ```http POST /identity-providers ``` **Request Body — application/json** ```json { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "resource": "identity_provider", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body At least one alternative must match. ##### application/json body: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | Yes | | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `last_probe_at` | string or null | No | | | `last_probe_ok` | boolean or null | No | | | `link_by_verified_email` | boolean | Yes | | | `protocol` | "oidc" | Yes | | | `resource` | "identity_provider" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body: alternative 1.allowed_clock_skew_seconds At least one alternative must match. ###### application/json body: alternative 1.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body: alternative 1.allowed_clock_skew_seconds: alternative 2 Type: `null`. ###### application/json body: alternative 1.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### application/json body: alternative 1.claim_mapping.auth_context Type: `object[]`. ###### application/json body: alternative 1.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### application/json body: alternative 1.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### application/json body: alternative 1.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### application/json body: alternative 1.claim_mapping.display_name At least one alternative must match. ###### application/json body: alternative 1.claim_mapping.display_name: alternative 1 Type: `string`. ###### application/json body: alternative 1.claim_mapping.display_name: alternative 2 Type: `null`. ###### application/json body: alternative 1.claim_mapping.email At least one alternative must match. ###### application/json body: alternative 1.claim_mapping.email: alternative 1 Type: `string`. ###### application/json body: alternative 1.claim_mapping.email: alternative 2 Type: `null`. ###### application/json body: alternative 1.claim_mapping.family_name At least one alternative must match. ###### application/json body: alternative 1.claim_mapping.family_name: alternative 1 Type: `string`. ###### application/json body: alternative 1.claim_mapping.family_name: alternative 2 Type: `null`. ###### application/json body: alternative 1.claim_mapping.given_name At least one alternative must match. ###### application/json body: alternative 1.claim_mapping.given_name: alternative 1 Type: `string`. ###### application/json body: alternative 1.claim_mapping.given_name: alternative 2 Type: `null`. ###### application/json body: alternative 1.claim_mapping.required_claims Type: `object[]`. ###### application/json body: alternative 1.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.claim_mapping.required_claims item.equals At least one alternative must match. ###### application/json body: alternative 1.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### application/json body: alternative 1.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ###### application/json body: alternative 1.client_secret_ref At least one alternative must match. ###### application/json body: alternative 1.client_secret_ref: alternative 1 Type: `string`. ###### application/json body: alternative 1.client_secret_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.jwks_uri At least one alternative must match. ###### application/json body: alternative 1.jwks_uri: alternative 1 Type: `string`. format: uri ###### application/json body: alternative 1.jwks_uri: alternative 2 Type: `null`. ###### application/json body: alternative 1.last_probe_at At least one alternative must match. ###### application/json body: alternative 1.last_probe_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.last_probe_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.last_probe_ok At least one alternative must match. ###### application/json body: alternative 1.last_probe_ok: alternative 1 Type: `boolean`. ###### application/json body: alternative 1.last_probe_ok: alternative 2 Type: `null`. ##### application/json body: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `command_subscription_id` | string or null | Yes | | | `enterprise_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `failing_step` | "identity_provider" / "probe" / "service_account" / "identity_subscription" / "command_subscription" or null | Yes | | | `identity_provider_id` | string or null | Yes | | | `identity_subscription_id` | string or null | Yes | | | `probe_ok` | boolean | Yes | | | `ready` | boolean | Yes | | | `service_principal_id` | string or null | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body: alternative 2.command_subscription_id At least one alternative must match. ###### application/json body: alternative 2.command_subscription_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 2.command_subscription_id: alternative 2 Type: `null`. ###### application/json body: alternative 2.failing_step At least one alternative must match. ###### application/json body: alternative 2.failing_step: alternative 1 Type: `"identity_provider" / "probe" / "service_account" / "identity_subscription" / "command_subscription"`. ###### application/json body: alternative 2.failing_step: alternative 2 Type: `null`. ###### application/json body: alternative 2.identity_provider_id At least one alternative must match. ###### application/json body: alternative 2.identity_provider_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 2.identity_provider_id: alternative 2 Type: `null`. ###### application/json body: alternative 2.identity_subscription_id At least one alternative must match. ###### application/json body: alternative 2.identity_subscription_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 2.identity_subscription_id: alternative 2 Type: `null`. ###### application/json body: alternative 2.service_principal_id At least one alternative must match. ###### application/json body: alternative 2.service_principal_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 2.service_principal_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get identity provider](/api/reference/identity-providers/identity-providers-get) — Read the created provider - `POST` [Create user](/api/reference/users/users-create) — Create federated users --- # Delete identity provider Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-delete **Authentication:** Send `Authorization: Bearer `. Deletes a suspended provider registration and returns an empty JSON object. Active providers must first be suspended. Enterprise identity-stack trust roots cannot be deleted. On production this route returns HTTP 409 with code=state_conflict and data.reason=not_supported; the same reason applies to an enterprise identity-stack deletion in every environment. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `identity_provider_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /identity-providers/{identity_provider_id}/delete ``` **Request Body — application/json** ```json { "reason": "issuer compromised" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json {} ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body Type: `object`. No additional fields ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get identity provider Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `identity_provider_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /identity-providers/{identity_provider_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "resource": "identity_provider", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | Yes | | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `last_probe_at` | string or null | No | | | `last_probe_ok` | boolean or null | No | | | `link_by_verified_email` | boolean | Yes | | | `protocol` | "oidc" | Yes | | | `resource` | "identity_provider" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.allowed_clock_skew_seconds At least one alternative must match. ###### application/json body.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.allowed_clock_skew_seconds: alternative 2 Type: `null`. ##### application/json body.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context Type: `object[]`. ###### application/json body.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### application/json body.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### application/json body.claim_mapping.display_name At least one alternative must match. ###### application/json body.claim_mapping.display_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.display_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.email At least one alternative must match. ###### application/json body.claim_mapping.email: alternative 1 Type: `string`. ###### application/json body.claim_mapping.email: alternative 2 Type: `null`. ###### application/json body.claim_mapping.family_name At least one alternative must match. ###### application/json body.claim_mapping.family_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.family_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.given_name At least one alternative must match. ###### application/json body.claim_mapping.given_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.given_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.required_claims Type: `object[]`. ###### application/json body.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### application/json body.claim_mapping.required_claims item.equals At least one alternative must match. ###### application/json body.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### application/json body.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ##### application/json body.client_secret_ref At least one alternative must match. ###### application/json body.client_secret_ref: alternative 1 Type: `string`. ###### application/json body.client_secret_ref: alternative 2 Type: `null`. ##### application/json body.jwks_uri At least one alternative must match. ###### application/json body.jwks_uri: alternative 1 Type: `string`. format: uri ###### application/json body.jwks_uri: alternative 2 Type: `null`. ##### application/json body.last_probe_at At least one alternative must match. ###### application/json body.last_probe_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_probe_at: alternative 2 Type: `null`. ##### application/json body.last_probe_ok At least one alternative must match. ###### application/json body.last_probe_ok: alternative 1 Type: `boolean`. ###### application/json body.last_probe_ok: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List identity providers](/api/reference/identity-providers/identity-providers-list) — List all providers - `GET` [List users](/api/reference/users/users-list) — View users federated via this provider --- # List identity providers Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-list **Authentication:** Send `Authorization: Bearer `. Lists provider registrations in the required scope_ref workspace: enterprises/ or platform-operators/. Repeat status to filter by multiple lifecycle states. Requires identity_providers.manage and visibility of the requested workspace. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "suspended" or "active" / "suspended"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /identity-providers ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "resource": "identity_provider", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | Yes | | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `last_probe_at` | string or null | No | | | `last_probe_ok` | boolean or null | No | | | `link_by_verified_email` | boolean | Yes | | | `protocol` | "oidc" | Yes | | | `resource` | "identity_provider" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.allowed_clock_skew_seconds At least one alternative must match. ###### application/json body.items item.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.allowed_clock_skew_seconds: alternative 2 Type: `null`. ###### application/json body.items item.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### application/json body.items item.claim_mapping.auth_context Type: `object[]`. ###### application/json body.items item.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### application/json body.items item.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### application/json body.items item.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### application/json body.items item.claim_mapping.display_name At least one alternative must match. ###### application/json body.items item.claim_mapping.display_name: alternative 1 Type: `string`. ###### application/json body.items item.claim_mapping.display_name: alternative 2 Type: `null`. ###### application/json body.items item.claim_mapping.email At least one alternative must match. ###### application/json body.items item.claim_mapping.email: alternative 1 Type: `string`. ###### application/json body.items item.claim_mapping.email: alternative 2 Type: `null`. ###### application/json body.items item.claim_mapping.family_name At least one alternative must match. ###### application/json body.items item.claim_mapping.family_name: alternative 1 Type: `string`. ###### application/json body.items item.claim_mapping.family_name: alternative 2 Type: `null`. ###### application/json body.items item.claim_mapping.given_name At least one alternative must match. ###### application/json body.items item.claim_mapping.given_name: alternative 1 Type: `string`. ###### application/json body.items item.claim_mapping.given_name: alternative 2 Type: `null`. ###### application/json body.items item.claim_mapping.required_claims Type: `object[]`. ###### application/json body.items item.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### application/json body.items item.claim_mapping.required_claims item.equals At least one alternative must match. ###### application/json body.items item.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### application/json body.items item.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ###### application/json body.items item.client_secret_ref At least one alternative must match. ###### application/json body.items item.client_secret_ref: alternative 1 Type: `string`. ###### application/json body.items item.client_secret_ref: alternative 2 Type: `null`. ###### application/json body.items item.jwks_uri At least one alternative must match. ###### application/json body.items item.jwks_uri: alternative 1 Type: `string`. format: uri ###### application/json body.items item.jwks_uri: alternative 2 Type: `null`. ###### application/json body.items item.last_probe_at At least one alternative must match. ###### application/json body.items item.last_probe_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.last_probe_at: alternative 2 Type: `null`. ###### application/json body.items item.last_probe_ok At least one alternative must match. ###### application/json body.items item.last_probe_ok: alternative 1 Type: `boolean`. ###### application/json body.items item.last_probe_ok: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Register identity provider](/api/reference/identity-providers/identity-providers-create) — Register a new provider - `GET` [Get identity provider](/api/reference/identity-providers/identity-providers-get) — Fetch a single provider by ID --- # Reactivate identity provider Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-reactivate **Authentication:** Send `Authorization: Bearer `. The identity provider of an enterprise that runs its own identity stack is that enterprise’s trust root: only platform staff may flip it; an enterprise-bound caller gets HTTP 403 with data.reason=platform_only_for_enterprise_idp. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `identity_provider_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /identity-providers/{identity_provider_id}/reactivate ``` **Request Body — application/json** ```json { "reason": "issuer compromised" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "resource": "identity_provider", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | Yes | | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `last_probe_at` | string or null | No | | | `last_probe_ok` | boolean or null | No | | | `link_by_verified_email` | boolean | Yes | | | `protocol` | "oidc" | Yes | | | `resource` | "identity_provider" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.allowed_clock_skew_seconds At least one alternative must match. ###### application/json body.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.allowed_clock_skew_seconds: alternative 2 Type: `null`. ##### application/json body.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context Type: `object[]`. ###### application/json body.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### application/json body.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### application/json body.claim_mapping.display_name At least one alternative must match. ###### application/json body.claim_mapping.display_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.display_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.email At least one alternative must match. ###### application/json body.claim_mapping.email: alternative 1 Type: `string`. ###### application/json body.claim_mapping.email: alternative 2 Type: `null`. ###### application/json body.claim_mapping.family_name At least one alternative must match. ###### application/json body.claim_mapping.family_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.family_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.given_name At least one alternative must match. ###### application/json body.claim_mapping.given_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.given_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.required_claims Type: `object[]`. ###### application/json body.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### application/json body.claim_mapping.required_claims item.equals At least one alternative must match. ###### application/json body.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### application/json body.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ##### application/json body.client_secret_ref At least one alternative must match. ###### application/json body.client_secret_ref: alternative 1 Type: `string`. ###### application/json body.client_secret_ref: alternative 2 Type: `null`. ##### application/json body.jwks_uri At least one alternative must match. ###### application/json body.jwks_uri: alternative 1 Type: `string`. format: uri ###### application/json body.jwks_uri: alternative 2 Type: `null`. ##### application/json body.last_probe_at At least one alternative must match. ###### application/json body.last_probe_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_probe_at: alternative 2 Type: `null`. ##### application/json body.last_probe_ok At least one alternative must match. ###### application/json body.last_probe_ok: alternative 1 Type: `boolean`. ###### application/json body.last_probe_ok: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Suspend identity provider Source: https://business-api-docs.youhodler.com/api/reference/identity-providers/identity-providers-suspend **Authentication:** Send `Authorization: Bearer `. The identity provider of an enterprise that runs its own identity stack is that enterprise’s trust root: only platform staff may flip it; an enterprise-bound caller gets HTTP 403 with data.reason=platform_only_for_enterprise_idp. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `identity_provider_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /identity-providers/{identity_provider_id}/suspend ``` **Request Body — application/json** ```json { "reason": "issuer compromised" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "allowed_clock_skew_seconds": 30, "auto_jit_provision": false, "claim_mapping": { "display_name": "name", "email": "email", "external_subject": "sub", "family_name": "family_name", "given_name": "given_name" }, "client_id": "my-oidc-client-id", "client_secret_ref": null, "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "issuer_uri": "https://accounts.google.com", "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", "link_by_verified_email": true, "protocol": "oidc", "resource": "identity_provider", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `allowed_clock_skew_seconds` | integer or null | No | | | `auto_jit_provision` | boolean | Yes | | | `claim_mapping` | object | Yes | No additional fields | | `client_id` | string | Yes | minLength: 1 | | `client_secret_ref` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `issuer_uri` | string | Yes | format: uri | | `jwks_uri` | string or null | No | | | `last_probe_at` | string or null | No | | | `last_probe_ok` | boolean or null | No | | | `link_by_verified_email` | boolean | Yes | | | `protocol` | "oidc" | Yes | | | `resource` | "identity_provider" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.allowed_clock_skew_seconds At least one alternative must match. ###### application/json body.allowed_clock_skew_seconds: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.allowed_clock_skew_seconds: alternative 2 Type: `null`. ##### application/json body.claim_mapping | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `auth_context` | object[] | No | | | `display_name` | string or null | No | | | `email` | string or null | No | | | `external_subject` | string | Yes | minLength: 1 | | `family_name` | string or null | No | | | `given_name` | string or null | No | | | `required_claims` | object[] | No | | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context Type: `object[]`. ###### application/json body.claim_mapping.auth_context item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `normalized_acr` | "single-factor" / "mfa-if-enrolled" / "mfa" | Yes | | | `required_acr` | string | No | minLength: 1 | | `required_amr` | string[] | No | minItems: 1 | Additional fields are not accepted. ###### application/json body.claim_mapping.auth_context item.required_amr Type: `string[]`. minItems: 1 ###### application/json body.claim_mapping.auth_context item.required_amr item Type: `string`. minLength: 1 ###### application/json body.claim_mapping.display_name At least one alternative must match. ###### application/json body.claim_mapping.display_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.display_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.email At least one alternative must match. ###### application/json body.claim_mapping.email: alternative 1 Type: `string`. ###### application/json body.claim_mapping.email: alternative 2 Type: `null`. ###### application/json body.claim_mapping.family_name At least one alternative must match. ###### application/json body.claim_mapping.family_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.family_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.given_name At least one alternative must match. ###### application/json body.claim_mapping.given_name: alternative 1 Type: `string`. ###### application/json body.claim_mapping.given_name: alternative 2 Type: `null`. ###### application/json body.claim_mapping.required_claims Type: `object[]`. ###### application/json body.claim_mapping.required_claims item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `claim` | string | Yes | minLength: 1 | | `equals` | string or boolean | Yes | | Additional fields are not accepted. ###### application/json body.claim_mapping.required_claims item.equals At least one alternative must match. ###### application/json body.claim_mapping.required_claims item.equals: alternative 1 Type: `string`. ###### application/json body.claim_mapping.required_claims item.equals: alternative 2 Type: `boolean`. ##### application/json body.client_secret_ref At least one alternative must match. ###### application/json body.client_secret_ref: alternative 1 Type: `string`. ###### application/json body.client_secret_ref: alternative 2 Type: `null`. ##### application/json body.jwks_uri At least one alternative must match. ###### application/json body.jwks_uri: alternative 1 Type: `string`. format: uri ###### application/json body.jwks_uri: alternative 2 Type: `null`. ##### application/json body.last_probe_at At least one alternative must match. ###### application/json body.last_probe_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_probe_at: alternative 2 Type: `null`. ##### application/json body.last_probe_ok At least one alternative must match. ###### application/json body.last_probe_ok: alternative 1 Type: `boolean`. ###### application/json body.last_probe_ok: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Cancel internal transfer Source: https://business-api-docs.youhodler.com/api/reference/internal-transfers/internal-transfers-cancel **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `internal_transfer_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /internal-transfers/{internal_transfer_id}/cancel ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "cancelled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get internal transfer](/api/reference/internal-transfers/internal-transfers-get) — Read current state before cancelling --- # Create internal transfer Source: https://business-api-docs.youhodler.com/api/reference/internal-transfers/internal-transfers-create **Authentication:** Send `Authorization: Bearer `. Initiates an internal transfer between two accounts inside the same tenant. Supply `Idempotency-Key` or body `client_idempotency_key` for idempotent retries; the header takes precedence. If both are omitted, a fresh key is generated and retries create separate operations. `amount` is a positive monetary value such as `{"value":"250.00","currency":"USDC"}`. The source and target accounts must differ. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `source_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `target_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /internal-transfers ``` **Request Body — application/json** ```json { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get internal transfer](/api/reference/internal-transfers/internal-transfers-get) — Poll status after creation - `GET` [List client accounts](/api/reference/client-accounts/client-accounts-list) — Find source and destination accounts - `GET` [List master accounts](/api/reference/master-accounts/master-accounts-list) — Find master account as transfer target --- # Get internal transfer Source: https://business-api-docs.youhodler.com/api/reference/internal-transfers/internal-transfers-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `internal_transfer_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /internal-transfers/{internal_transfer_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": "2026-05-01T10:00:00Z", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body At least one alternative must match. ##### application/json body: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.applied_rate At least one alternative must match. ###### application/json body: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.created_at At least one alternative must match. ###### application/json body: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_reason At least one alternative must match. ###### application/json body: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_summary At least one alternative must match. ###### application/json body: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body: alternative 1.fill_rate At least one alternative must match. ###### application/json body: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.posted_at At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.settled_at At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 1.target_amount At least one alternative must match. ###### application/json body: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.updated_at At least one alternative must match. ###### application/json body: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.created_at At least one alternative must match. ###### application/json body: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.failure_reason At least one alternative must match. ###### application/json body: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 2.fee_summary At least one alternative must match. ###### application/json body: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 2.fill_rate At least one alternative must match. ###### application/json body: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.settled_at At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 2.updated_at At least one alternative must match. ###### application/json body: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.created_at At least one alternative must match. ###### application/json body: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.failure_reason At least one alternative must match. ###### application/json body: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.fee_summary At least one alternative must match. ###### application/json body: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 3.fill_rate At least one alternative must match. ###### application/json body: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.settled_at At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 3.updated_at At least one alternative must match. ###### application/json body: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List internal transfers](/api/reference/internal-transfers/internal-transfers-list) — List all transfers - `POST` [Cancel internal transfer](/api/reference/internal-transfers/internal-transfers-cancel) — Cancel if still cancellable --- # List internal transfers Source: https://business-api-docs.youhodler.com/api/reference/internal-transfers/internal-transfers-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /internal-transfers ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "internal_transfer", "family_params": { "amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "master-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": "2026-05-01T10:00:00Z", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object or object or object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object or object or object[]`. ###### application/json body.items item At least one alternative must match. ###### application/json body.items item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.applied_rate At least one alternative must match. ###### application/json body.items item: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.created_at At least one alternative must match. ###### application/json body.items item: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.posted_at At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.settled_at At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.updated_at At least one alternative must match. ###### application/json body.items item: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.created_at At least one alternative must match. ###### application/json body.items item: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.settled_at At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.updated_at At least one alternative must match. ###### application/json body.items item: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.created_at At least one alternative must match. ###### application/json body.items item: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.settled_at At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.updated_at At least one alternative must match. ###### application/json body.items item: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create internal transfer](/api/reference/internal-transfers/internal-transfers-create) — Initiate a new transfer - `GET` [Get internal transfer](/api/reference/internal-transfers/internal-transfers-get) — Fetch a single transfer by ID --- # Issue verification access token Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-access-token **Authentication:** Send `Authorization: Bearer `. Mints a short-lived WebSDK access token for the authenticated enterprise on the given verification stage (defaults to the first stage of the resolved flow). A stage behind the one the applicant is already on is refused with `flow_unresolved`: opening it would move the applicant back to a stage it has passed. The stage the applicant is on can always be opened again, for a resubmission. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `stage` | "identity" / "company" / "signatories" / "form_k" / "international_account_intake" | No | | Additional fields are not accepted. **Request URL — POST** ```http POST /kyc/access-token ``` **Request Body — application/json** ```json { "stage": "company" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "external_user_id": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "token": "_act-sbx-jwt-eyJhbGciOiJub25lIn0..." } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_user_id` | string | Yes | minLength: 1; maxLength: 255 | | `token` | string | Yes | minLength: 1 | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Start client verification session Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-clients-sessions **Authentication:** Send `Authorization: Bearer `. Initiates KYC/KYB onboarding for an End Client owned by the caller enterprise. Returns an embeddable WebSDK access token, a provider-hosted verification link, and the resolved stage flow. `legal_form` is required for company onboarding in legal-form jurisdictions (AR). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `applicant_type` | "individual" / "company" | Yes | | | `country` | string | Yes | minLength: 2; maxLength: 2 | | `legal_form` | "SA" / "SRL" / "SAS" / "SH" / "CH1_SEC_IV" / "ASSOC_FOUND" / "COOP" / "SCS" / "SCA" / "TRUST" | No | | Additional fields are not accepted. **Request URL — POST** ```http POST /kyc/clients/{client_id}/sessions ``` **Request Body — application/json** ```json { "applicant_type": "company", "country": "AR", "legal_form": "SA" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "access_token": "_act-sbx-jwt-eyJhbGciOiJub25lIn0...", "external_user_id": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "flow": { "jurisdiction": "AR", "legal_form_required": false, "legal_form_supported": true, "stages": [ { "id": "company" } ] }, "verification_link": "https://in.sumsub.com/websdk/p/sbx_AbCdEf123456" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_token` | string | Yes | minLength: 1 | | `external_user_id` | string | Yes | minLength: 1; maxLength: 255 | | `flow` | object | Yes | No additional fields | | `verification_link` | string | Yes | minLength: 1; maxLength: 2048 | Additional fields are not accepted. ##### application/json body.flow | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `jurisdiction` | string or null | Yes | | | `legal_form_required` | boolean | Yes | | | `legal_form_supported` | boolean | Yes | | | `stages` | object[] | Yes | | Additional fields are not accepted. ###### application/json body.flow.jurisdiction At least one alternative must match. ###### application/json body.flow.jurisdiction: alternative 1 Type: `string`. ###### application/json body.flow.jurisdiction: alternative 2 Type: `null`. ###### application/json body.flow.stages Type: `object[]`. ###### application/json body.flow.stages item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | "identity" / "company" / "signatories" / "form_k" | Yes | | Additional fields are not accepted. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get client verification status Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-clients-status **Authentication:** Send `Authorization: Bearer `. Reads an End Client applicant's onboarding progress (stage, case status, review outcome), after asserting the caller enterprise owns the client. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /kyc/clients/{client_id}/status ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "outcome": "approved", "stage": "company", "status": "completed" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `outcome` | "approved" / "rejected" / "resubmission_required" or null | Yes | | | `stage` | "identity" / "company" / "signatories" / "form_k" / "international_account_intake" or null | Yes | | | `status` | "not_started" / "pending" / "in_review" / "completed" | Yes | | Additional fields are not accepted. ##### application/json body.outcome At least one alternative must match. ###### application/json body.outcome: alternative 1 Type: `"approved" / "rejected" / "resubmission_required"`. ###### application/json body.outcome: alternative 2 Type: `null`. ##### application/json body.stage At least one alternative must match. ###### application/json body.stage: alternative 1 Type: `"identity" / "company" / "signatories" / "form_k" / "international_account_intake"`. ###### application/json body.stage: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get KYB onboarding flow Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-flow **Authentication:** Send `Authorization: Bearer `. Returns the ordered verification stages the authenticated enterprise walks through, resolved from its jurisdiction. `legal_form_required` signals the frontend must capture the company legal form (AR) before the company stage can open. After an Argentine legal form is captured, the AR flow contains a single `company` stage; it does not include `signatories` or `form_k`. Drive onboarding from the returned stages. ## Request **Request URL — GET** ```http GET /kyc/flow ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "jurisdiction": "CH", "jurisdiction_selected": true, "legal_form_required": false, "legal_form_supported": false, "stages": [ { "id": "company" }, { "id": "signatories" }, { "id": "form_k" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `jurisdiction` | string or null | Yes | | | `jurisdiction_selected` | boolean | Yes | | | `legal_form_required` | boolean | Yes | | | `legal_form_supported` | boolean | Yes | | | `stages` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.jurisdiction At least one alternative must match. ###### application/json body.jurisdiction: alternative 1 Type: `string`. ###### application/json body.jurisdiction: alternative 2 Type: `null`. ##### application/json body.stages Type: `object[]`. ###### application/json body.stages item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | "identity" / "company" / "signatories" / "form_k" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Prepare international-account intake Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-international-intake-prepare **Authentication:** Send `Authorization: Bearer `. Sends the authenticated enterprise to the additional questionnaire an international account needs: website, industry, regulated activities, operating address, the tax-id registration (CUIT certificate in Argentina), the gross-income tax registration (Ingresos Brutos in Argentina), the certificate of good standing and the designation of authorities. Available only once KYB verification is complete (verified by the provider, and since then neither reopened for review, rejected nor restricted) and only in jurisdictions with an intake; never part of the KYB flow and never changes the verification status. Forward only: an applicant already on the intake is not moved again. Then launch the WebSDK on the `international_account_intake` stage. The response names the stage the applicant sits on afterwards. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /kyc/international-intake/prepare ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "stage": "international_account_intake" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `stage` | "identity" / "company" / "signatories" / "form_k" / "international_account_intake" or null | Yes | | Additional fields are not accepted. ##### application/json body.stage At least one alternative must match. ###### application/json body.stage: alternative 1 Type: `"identity" / "company" / "signatories" / "form_k" / "international_account_intake"`. ###### application/json body.stage: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Set KYB registration jurisdiction Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-jurisdiction **Authentication:** Send `Authorization: Bearer `. Captures the registration jurisdiction the enterprise picks at the start of onboarding (ISO 3166-1 alpha-2). The flow endpoint prefers this over the placeholder jurisdiction stamped at admission, so the entry step decides which SumSub chain opens: 'AR' routes to the Argentine legal-form flow (then a legal form is required), any other code to the GLOBAL flow. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{2}$`; minLength: 2; maxLength: 2 | Additional fields are not accepted. **Request URL — PUT** ```http PUT /kyc/jurisdiction ``` **Request Body — application/json** ```json { "jurisdiction": "AR" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "jurisdiction": "AR" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `jurisdiction` | string | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Set company legal form Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-legal-form **Authentication:** Send `Authorization: Bearer `. Captures the enterprise's company legal form (e.g. SA/SRL/SAS for Argentina) so the flow endpoint can resolve the matching company verification level. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `legal_form` | "SA" / "SRL" / "SAS" / "SH" / "CH1_SEC_IV" / "ASSOC_FOUND" / "COOP" / "SCS" / "SCA" / "TRUST" | Yes | | Additional fields are not accepted. **Request URL — PUT** ```http PUT /kyc/legal-form ``` **Request Body — application/json** ```json { "legal_form": "SA" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "legal_form": "SA" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `legal_form` | "SA" / "SRL" / "SAS" / "SH" / "CH1_SEC_IV" / "ASSOC_FOUND" / "COOP" / "SCS" / "SCA" / "TRUST" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Prepare Form K Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-prepare **Authentication:** Send `Authorization: Bearer `. Pre-fills the Form K questionnaire with data collected during earlier KYB stages and advances the applicant to the `form_k` stage. Call before launching the WebSDK on the Form K stage, and only when `form_k` appears in the resolved `GET /kyc/flow` stages. The Argentine company flow does not require Form K. `fields_set: 0` means the applicant is already past Form K (on the international-account intake): nothing was moved or prefilled, and the Form K stage must not be opened. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /kyc/form-k/prepare ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "applicant_id": "68b1a2c3d4e5f60718293a4b", "fields_set": 5 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `applicant_id` | string | Yes | | | `fields_set` | integer | Yes | minimum: -9007199254740991; maximum: 9007199254740991 | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get verification status Source: https://business-api-docs.youhodler.com/api/reference/kyc/kyc-status **Authentication:** Send `Authorization: Bearer `. Reads the authenticated enterprise applicant's onboarding progress: the current verification stage, case status, and latest review outcome. ## Request **Request URL — GET** ```http GET /kyc/status ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "outcome": "approved", "stage": "signatories", "status": "completed" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `outcome` | "approved" / "rejected" / "resubmission_required" or null | Yes | | | `stage` | "identity" / "company" / "signatories" / "form_k" / "international_account_intake" or null | Yes | | | `status` | "not_started" / "pending" / "in_review" / "completed" | Yes | | Additional fields are not accepted. ##### application/json body.outcome At least one alternative must match. ###### application/json body.outcome: alternative 1 Type: `"approved" / "rejected" / "resubmission_required"`. ###### application/json body.outcome: alternative 2 Type: `null`. ##### application/json body.stage At least one alternative must match. ###### application/json body.stage: alternative 1 Type: `"identity" / "company" / "signatories" / "form_k" / "international_account_intake"`. ###### application/json body.stage: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Record that the caller accepted legal documents Source: https://business-api-docs.youhodler.com/api/reference/legal/legal-acceptances **Authentication:** Send `Authorization: Bearer `. Idempotent per document revision. Accepting a revision that is no longer published is rejected, because the caller displayed text that is not in force. Only human principals can record consent; the session determines subject and optional client scope. Re-accepting keeps the original evidence timestamp. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `documents` | object[] | Yes | minItems: 1; maxItems: 20 | | `locale` | string | No | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | Additional fields are not accepted. #### Request body schema.documents Type: `object[]`. minItems: 1; maxItems: 20 ##### Request body schema.documents item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | pattern: `^[a-z][a-z0-9_]{2,63}$` | | `version` | string | Yes | pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /legal/acceptances ``` **Request Body — application/json** ```json { "documents": [ { "code": "ar_cvu_terms", "version": "2025-12-30" } ] } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "items": [ { "accepted_at": "2026-08-25T12:18:18.576Z", "code": "ar_cvu_terms", "locale": "es-AR", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "version": "2025-12-30" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `code` | string | Yes | pattern: `^[a-z][a-z0-9_]{2,63}$` | | `locale` | string | Yes | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | | `scope_ref` | string or null | Yes | | | `subject_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `version` | string | Yes | pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` | Additional fields are not accepted. ###### application/json body.items item.scope_ref At least one alternative must match. ###### application/json body.items item.scope_ref: alternative 1 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Read the text of a legal document Source: https://business-api-docs.youhodler.com/api/reference/legal/legal-documents-get **Authentication:** Send `Authorization: Bearer `. Returns the published revision by default. Pass `version` to read the exact revision an earlier acceptance points at. Content is Markdown. Locale defaults to the deployment setting; missing translations fall back to that locale. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `code` | path | string | Yes | pattern: `^[a-z][a-z0-9_]{2,63}$` | | `locale` | query | string | No | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | | `version` | query | string | No | pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` | ## Request **Request URL — GET** ```http GET /legal/documents/{code} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "code": "ar_cvu_terms", "content": "# TÉRMINOS Y CONDICIONES DEL SERVICIO DE CUENTA DE PAGO (CVU)\n\n…", "content_format": "markdown", "jurisdiction": "ARG", "locale": "es-AR", "published_at": "2025-12-30T00:00:00.000Z", "title": "Términos y Condiciones del Servicio de Cuenta de Pago (CVU)", "version": "2025-12-30" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | pattern: `^[a-z][a-z0-9_]{2,63}$` | | `content` | string | Yes | minLength: 1 | | `content_format` | "markdown" | Yes | | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{3}$` | | `locale` | string | Yes | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | | `published_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `title` | string | Yes | minLength: 1; maxLength: 300 | | `version` | string | Yes | pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List the legal documents the caller must accept Source: https://business-api-docs.youhodler.com/api/reference/legal/legal-requirements **Authentication:** Send `Authorization: Bearer `. Resolved for the authenticated human actor against the documents published for the deployment default jurisdiction. Filter by `trigger` to answer "may this action proceed"; `pending_only=true` drops what is already accepted. A newer published revision makes an older acceptance pending again. Only human principals are supported; subject and optional client scope come from the session. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `trigger` | query | "onboarding" / "post_verification" / "payment_account_cvu" | No | | | `locale` | query | string | No | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | | `pending_only` | query | "true" / "false" | No | | ## Request **Request URL — GET** ```http GET /legal/requirements ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "accepted_at": null, "accepted_version": null, "blocking": true, "display_order": 0, "document": { "code": "ar_cvu_terms", "content_format": "markdown", "jurisdiction": "ARG", "locale": "es-AR", "published_at": "2025-12-30T00:00:00.000Z", "title": "Términos y Condiciones del Servicio de Cuenta de Pago (CVU)", "version": "2025-12-30" }, "state": "pending", "trigger": "payment_account_cvu" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `accepted_version` | string or null | Yes | | | `blocking` | boolean | Yes | | | `display_order` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `document` | object | Yes | No additional fields | | `state` | "pending" / "accepted" | Yes | | | `trigger` | "onboarding" / "post_verification" / "payment_account_cvu" | Yes | | Additional fields are not accepted. ###### application/json body.items item.accepted_at At least one alternative must match. ###### application/json body.items item.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.accepted_at: alternative 2 Type: `null`. ###### application/json body.items item.accepted_version At least one alternative must match. ###### application/json body.items item.accepted_version: alternative 1 Type: `string`. pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` ###### application/json body.items item.accepted_version: alternative 2 Type: `null`. ###### application/json body.items item.document | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | pattern: `^[a-z][a-z0-9_]{2,63}$` | | `content_format` | "markdown" | Yes | | | `jurisdiction` | string | Yes | pattern: `^[A-Z]{3}$` | | `locale` | string | Yes | pattern: `^[a-z]{2}(-[A-Z]{2})?$` | | `published_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `title` | string | Yes | minLength: 1; maxLength: 300 | | `version` | string | Yes | pattern: `^\d{4}-\d{2}-\d{2}(\.\d+)?$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get a loan Source: https://business-api-docs.youhodler.com/api/reference/loans/loans-get **Authentication:** Send `Authorization: Bearer `. Returns the caller's loan: its current debt split, its latest valuation and its obligations. The loans.read grant must cover the loan borrower account; otherwise the service returns 403. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `loan_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /loans/{loan_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "arrears_since": null, "close_reason": null, "collateral_amount": { "currency": "BTC", "value": "2.00000000" }, "collateral_held": { "currency": "BTC", "value": "2.00000000" }, "created_at": "2026-04-01T00:00:00Z", "full_payoff_amount": { "currency": "USD", "value": "50170.6205" }, "last_ltv": "0.5", "last_valued_at": "2026-05-01T10:00:00Z", "liquidation_threshold": "0.75", "loan_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "margin_call_since": null, "margin_call_threshold": "0.6", "matures_at": "2027-04-01T00:00:00Z", "next_charge_at": "2026-06-01T00:00:00Z", "outstanding": { "fees": "0", "interest": "120.50", "penalty_interest": "0", "principal": "50000.00" }, "outstanding_total": { "currency": "USD", "value": "50120.50" }, "price": "50000", "price_age_ms": 60000, "price_observed_at": "2026-05-01T09:59:00Z", "price_source": "internal-index", "principal_amount": { "currency": "USD", "value": "50000.00" }, "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `arrears_since` | string or null | Yes | | | `close_reason` | "repaid" / "matured" / "ltv_breach" / "offboarding" or null | Yes | | | `collateral_amount` | object | Yes | No additional fields | | `collateral_held` | object | Yes | No additional fields | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `full_payoff_amount` | object | Yes | No additional fields | | `last_ltv` | string or null | Yes | | | `last_valued_at` | string or null | Yes | | | `liquidation_threshold` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `loan_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `margin_call_since` | string or null | Yes | | | `margin_call_threshold` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `matures_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `next_charge_at` | string or null | Yes | | | `outstanding` | object | Yes | No additional fields | | `outstanding_total` | object | Yes | No additional fields | | `price` | string or null | Yes | | | `price_age_ms` | integer or null | Yes | | | `price_observed_at` | string or null | Yes | | | `price_source` | string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `status` | "requested" / "awaiting_approval" / "awaiting_compliance" / "active" / "denied" / "origination_failed" / "liquidating" / "liquidation_halted" / "liquidated" / "closed" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.arrears_since At least one alternative must match. ###### application/json body.arrears_since: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.arrears_since: alternative 2 Type: `null`. ##### application/json body.close_reason At least one alternative must match. ###### application/json body.close_reason: alternative 1 Type: `"repaid" / "matured" / "ltv_breach" / "offboarding"`. ###### application/json body.close_reason: alternative 2 Type: `null`. ##### application/json body.collateral_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.collateral_held | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.full_payoff_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.last_ltv At least one alternative must match. ###### application/json body.last_ltv: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.last_ltv: alternative 2 Type: `null`. ##### application/json body.last_valued_at At least one alternative must match. ###### application/json body.last_valued_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_valued_at: alternative 2 Type: `null`. ##### application/json body.margin_call_since At least one alternative must match. ###### application/json body.margin_call_since: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.margin_call_since: alternative 2 Type: `null`. ##### application/json body.next_charge_at At least one alternative must match. ###### application/json body.next_charge_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.next_charge_at: alternative 2 Type: `null`. ##### application/json body.outstanding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fees` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `interest` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `penalty_interest` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `principal` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.outstanding_total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.price At least one alternative must match. ###### application/json body.price: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.price: alternative 2 Type: `null`. ##### application/json body.price_age_ms At least one alternative must match. ###### application/json body.price_age_ms: alternative 1 Type: `integer`. minimum: -9007199254740991; maximum: 9007199254740991 ###### application/json body.price_age_ms: alternative 2 Type: `null`. ##### application/json body.price_observed_at At least one alternative must match. ###### application/json body.price_observed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.price_observed_at: alternative 2 Type: `null`. ##### application/json body.price_source At least one alternative must match. ###### application/json body.price_source: alternative 1 Type: `string`. ###### application/json body.price_source: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get a loan's lifecycle history Source: https://business-api-docs.youhodler.com/api/reference/loans/loans-history **Authentication:** Send `Authorization: Bearer `. Returns a cursor-paginated page of the loan lifecycle history, ordered oldest first by occurrence time and transition id. page_size defaults to 50 and accepts 1–500. A malformed page_token returns 400. The loans.read grant must cover the loan borrower account. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `loan_id` | path | string | Yes | format: uuid | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /loans/{loan_id}/history ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "correlation_ref": null, "from_status": null, "occurred_at": "2026-04-01T00:00:00Z", "reason": null, "to_status": "requested", "trigger": "borrower_command" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `correlation_ref` | string or null | Yes | | | `from_status` | "requested" / "awaiting_approval" / "awaiting_compliance" / "active" / "denied" / "origination_failed" / "liquidating" / "liquidation_halted" / "liquidated" / "closed" or null | Yes | | | `occurred_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `reason` | "repaid" / "matured" / "ltv_breach" / "offboarding" or null | Yes | | | `to_status` | "requested" / "awaiting_approval" / "awaiting_compliance" / "active" / "denied" / "origination_failed" / "liquidating" / "liquidation_halted" / "liquidated" / "closed" | Yes | | | `trigger` | "borrower_command" / "operator_command" / "scheduler_tick" / "upstream_event" / "admissibility_verdict" | Yes | | Additional fields are not accepted. ###### application/json body.items item.correlation_ref At least one alternative must match. ###### application/json body.items item.correlation_ref: alternative 1 Type: `string`. ###### application/json body.items item.correlation_ref: alternative 2 Type: `null`. ###### application/json body.items item.from_status At least one alternative must match. ###### application/json body.items item.from_status: alternative 1 Type: `"requested" / "awaiting_approval" / "awaiting_compliance" / "active" / "denied" / "origination_failed" / "liquidating" / "liquidation_halted" / "liquidated" / "closed"`. ###### application/json body.items item.from_status: alternative 2 Type: `null`. ###### application/json body.items item.reason At least one alternative must match. ###### application/json body.items item.reason: alternative 1 Type: `"repaid" / "matured" / "ltv_breach" / "offboarding"`. ###### application/json body.items item.reason: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get master account Source: https://business-api-docs.youhodler.com/api/reference/master-accounts/master-accounts-get **Authentication:** Send `Authorization: Bearer `. Read one master-account boundary in detail. Returns the master account with its upstream parent exposed as scope_ref. Missing accounts and accounts outside the accounts.read grant return 404. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `master_account_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /master-accounts/{master_account_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Primary Settlement Account", "etag": "2026-05-01T10:00:00.000Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "master_account", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "tenant_type": "enterprise", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "master_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List master accounts Source: https://business-api-docs.youhodler.com/api/reference/master-accounts/master-accounts-list **Authentication:** Send `Authorization: Bearer `. Inspect the enterprise root account set. List master accounts for a tenant scope. `scope_ref=enterprises/{id}` or `scope_ref=platform-operators/{id}`. The accounts.read grant must cover the requested tenant scope; an existing scope outside authority returns 403 and a missing scope returns 404. Repeat status to filter by multiple states. Page size defaults to 50 and the service caps results at 200. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "suspended" / "closed" or "active" / "suspended" / "closed"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /master-accounts ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "display_name": "Primary Settlement Account", "etag": "2026-05-01T10:00:00.000Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "master_account", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "tenant_type": "enterprise", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "master_account" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "closed" | Yes | | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get current capabilities Source: https://business-api-docs.youhodler.com/api/reference/me/me-capabilities **Authentication:** Send `Authorization: Bearer `. Returns the current effective RBAC projection: flat capability list and per-grant scope/propagation tuples. Source is the request context populated by AuthGuard; capabilities are resolved against current authority, not read from token claims. Grant anchor_kind is always returned, defaulting to explicit. ## Request **Request URL — GET** ```http GET /me/capabilities ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "capabilities": [ "withdrawals.create", "deposits.read", "clients.read" ], "context": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "scope_grants": [ { "anchor_kind": "explicit", "capabilities": [ "withdrawals.create", "deposits.read" ], "propagation": "subtree", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "subject": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "subject_kind": "user" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `capabilities` | string[] | Yes | | | `context` | string or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `scope_grants` | object or object[] | Yes | | | `subject` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `subject_kind` | "user" / "service" / "system" | Yes | | Additional fields are not accepted. ##### application/json body.capabilities Type: `string[]`. ###### application/json body.capabilities item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ##### application/json body.context At least one alternative must match. ###### application/json body.context: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.context: alternative 2 Type: `null`. ##### application/json body.scope_grants Type: `object or object[]`. ###### application/json body.scope_grants item At least one alternative must match. ###### application/json body.scope_grants item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `anchor_kind` | "explicit" | Yes | | | `capabilities` | string[] | Yes | | | `propagation` | "self" / "subtree" | Yes | | | `scope` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.scope_grants item: alternative 1.capabilities Type: `string[]`. ###### application/json body.scope_grants item: alternative 1.capabilities item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ###### application/json body.scope_grants item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `anchor_kind` | "enterprise_wildcard" | Yes | | | `capabilities` | string[] | Yes | | | `propagation` | "subtree" | Yes | | | `scope` | string | Yes | pattern: `^(enterprises\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.scope_grants item: alternative 2.capabilities Type: `string[]`. ###### application/json body.scope_grants item: alternative 2.capabilities item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get navigation sections Source: https://business-api-docs.youhodler.com/api/reference/me/me-navigation **Authentication:** Send `Authorization: Bearer `. Returns UI-friendly section visibility based on the caller's capabilities. The frontend uses this to build the sidebar without embedding an RBAC matrix. Optional `?scope=` selects a platform-operator, enterprise or client context. Visibility comes from effective authority hydrated by AuthGuard, not claims embedded in the token. With scoped grants, capabilities are filtered by coverage of the selected context; an explicit context with no covered capabilities returns 403. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope` | query | string | No | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /me/navigation ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "context": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "sections": [ { "section": "wallet_balances", "visibility": "enabled" }, { "section": "treasury", "visibility": "enabled" }, { "section": "transactions", "visibility": "enabled" }, { "section": "end_clients", "visibility": "read_only" }, { "section": "access_control", "visibility": "hidden" }, { "section": "integrations", "visibility": "hidden" } ], "subject": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `context` | string or null | Yes | | | `sections` | object[] | Yes | | | `subject` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ##### application/json body.context At least one alternative must match. ###### application/json body.context: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.context: alternative 2 Type: `null`. ##### application/json body.sections Type: `object[]`. ###### application/json body.sections item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `section` | "wallet_balances" / "treasury" / "transactions" / "end_clients" / "access_control" / "integrations" | Yes | | | `visibility` | "enabled" / "read_only" / "hidden" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get current session profile Source: https://business-api-docs.youhodler.com/api/reference/me/me-profile **Authentication:** Send `Authorization: Bearer `. Returns display metadata for the authenticated principal and its session-bound workspace. Requires authentication but no users.read or enterprises.read capability. Targets are derived exclusively from the verified session; arbitrary principal or workspace IDs cannot be supplied. Metadata lookup failures return null display fields; a bound workspace ref remains present. Service/system principals have null display name and email. ## Request **Request URL — GET** ```http GET /me/profile ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `principal` | object | Yes | No additional fields | | `workspace` | object or null | Yes | | Additional fields are not accepted. ##### application/json body.principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | Yes | | | `email` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | Additional fields are not accepted. ###### application/json body.principal.display_name At least one alternative must match. ###### application/json body.principal.display_name: alternative 1 Type: `string`. ###### application/json body.principal.display_name: alternative 2 Type: `null`. ###### application/json body.principal.email At least one alternative must match. ###### application/json body.principal.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.principal.email: alternative 2 Type: `null`. ##### application/json body.workspace At least one alternative must match. ###### application/json body.workspace: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | Yes | | | `ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.workspace: alternative 1.display_name At least one alternative must match. ###### application/json body.workspace: alternative 1.display_name: alternative 1 Type: `string`. ###### application/json body.workspace: alternative 1.display_name: alternative 2 Type: `null`. ###### application/json body.workspace: alternative 2 Type: `null`. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "private, no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Cancel off-ramp session Source: https://business-api-docs.youhodler.com/api/reference/off-ramp-sessions/off-ramp-sessions-cancel **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `session_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /off-ramp-sessions/{session_id}/cancel ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "off_ramp", "family_params": { "destination_payload": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_currency": "EUR", "target_rail": "fiat" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "cancelled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create off-ramp session Source: https://business-api-docs.youhodler.com/api/reference/off-ramp-sessions/off-ramp-sessions-create **Authentication:** Send `Authorization: Bearer `. Initiates an off-ramp session. `amount` is the principal to debit from the account; `target_currency` is the asset the recipient will receive; `target_rail` selects the outbound delivery rail (`fiat` or `crypto`), and `destination` carries the matching typed withdrawal destination command. Crypto commands include a nullable destination_id, network and strict address/memo; fiat commands must identify an existing stored withdrawal destination and restate its routing. Caller fiat bank details may include bank_address and account_type where applicable; provider-issued receive details are refused. An `amount` with more fractional digits than the catalog scale of its asset is refused with `400 invalid_request` and `data.reason = amount_scale_exceeded` before anything is held; trailing zeros do not count, and an asset the catalog has no scale for (including crypto assets missing scale metadata) is not checked. Supply `Idempotency-Key` or body `client_idempotency_key` for idempotent retries; the header takes precedence. If both are absent, edge generates a fresh key, so a retry creates another operation. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `destination` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `target_rail` | "crypto" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 1.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### Request body schema: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `destination` | object | Yes | No additional fields | | `destination_id` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### Request body schema: alternative 1.destination.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 1.destination.destination.memo At least one alternative must match. ###### Request body schema: alternative 1.destination.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 1.destination.destination.memo: alternative 2 Type: `null`. ###### Request body schema: alternative 1.destination.destination_id At least one alternative must match. ###### Request body schema: alternative 1.destination.destination_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### Request body schema: alternative 1.destination.destination_id: alternative 2 Type: `null`. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `destination` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `target_rail` | "fiat" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 2.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### Request body schema: alternative 2.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `destination` | object | Yes | No additional fields | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `payment_reference` | string or null | Yes | | | `route_owner_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `withdrawal_destination_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.bank_coordinates Exactly one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bic At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bic At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### Request body schema: alternative 2.destination.destination.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### Request body schema: alternative 2.destination.destination.reference_hint At least one alternative must match. ###### Request body schema: alternative 2.destination.destination.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.destination.reference_hint: alternative 2 Type: `null`. ###### Request body schema: alternative 2.destination.payment_reference At least one alternative must match. ###### Request body schema: alternative 2.destination.payment_reference: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.destination.payment_reference: alternative 2 Type: `null`. **Request URL — POST** ```http POST /off-ramp-sessions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "USDC", "value": "250.00" }, "destination": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "route_owner_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "target_currency": "EUR", "target_rail": "fiat" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "off_ramp", "family_params": { "destination_payload": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_currency": "EUR", "target_rail": "fiat" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get off-ramp session Source: https://business-api-docs.youhodler.com/api/reference/off-ramp-sessions/off-ramp-sessions-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `session_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /off-ramp-sessions/{session_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "off_ramp", "family_params": { "destination_payload": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_currency": "EUR", "target_rail": "fiat" }, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body At least one alternative must match. ##### application/json body: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.applied_rate At least one alternative must match. ###### application/json body: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.created_at At least one alternative must match. ###### application/json body: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_reason At least one alternative must match. ###### application/json body: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_summary At least one alternative must match. ###### application/json body: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body: alternative 1.fill_rate At least one alternative must match. ###### application/json body: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.posted_at At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.settled_at At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 1.target_amount At least one alternative must match. ###### application/json body: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.updated_at At least one alternative must match. ###### application/json body: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.created_at At least one alternative must match. ###### application/json body: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.failure_reason At least one alternative must match. ###### application/json body: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 2.fee_summary At least one alternative must match. ###### application/json body: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 2.fill_rate At least one alternative must match. ###### application/json body: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.settled_at At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 2.updated_at At least one alternative must match. ###### application/json body: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.created_at At least one alternative must match. ###### application/json body: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.failure_reason At least one alternative must match. ###### application/json body: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.fee_summary At least one alternative must match. ###### application/json body: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 3.fill_rate At least one alternative must match. ###### application/json body: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.settled_at At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 3.updated_at At least one alternative must match. ###### application/json body: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List off-ramp sessions Source: https://business-api-docs.youhodler.com/api/reference/off-ramp-sessions/off-ramp-sessions-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /off-ramp-sessions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "off_ramp", "family_params": { "destination_payload": { "destination": { "bank_coordinates": { "account_holder_name": "Acme Treasury", "bank_name": "Demo Bank", "bic": "NWBKGB2L", "country": "GB", "iban": "GB29NWBK60161331926819", "scheme": "iban" }, "beneficiary_name": "Acme Treasury", "currency": "EUR", "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "reference_hint": null }, "fiat_rail": "sepa_credit_transfer", "method": "bank_transfer", "payment_reference": "RF18539007547034", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "USDC", "value": "250.00" }, "source_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "target_currency": "EUR", "target_rail": "fiat" }, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object or object or object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object or object or object[]`. ###### application/json body.items item At least one alternative must match. ###### application/json body.items item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.applied_rate At least one alternative must match. ###### application/json body.items item: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.created_at At least one alternative must match. ###### application/json body.items item: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.posted_at At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.settled_at At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.updated_at At least one alternative must match. ###### application/json body.items item: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.created_at At least one alternative must match. ###### application/json body.items item: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.settled_at At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.updated_at At least one alternative must match. ###### application/json body.items item: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.created_at At least one alternative must match. ###### application/json body.items item: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.settled_at At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.updated_at At least one alternative must match. ###### application/json body.items item: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Cancel on-ramp session Source: https://business-api-docs.youhodler.com/api/reference/on-ramp-sessions/on-ramp-sessions-cancel **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `session_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /on-ramp-sessions/{session_id}/cancel ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "on_ramp", "family_params": { "destination_payload": {}, "destination_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "status": "cancelled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create on-ramp session Source: https://business-api-docs.youhodler.com/api/reference/on-ramp-sessions/on-ramp-sessions-create **Authentication:** Send `Authorization: Bearer `. Initiates an on-ramp session. `amount` is the expected inbound principal; `target_currency` is the asset the account will receive after conversion; `source_rail` selects the inbound funding rail (`fiat` or `crypto`). `destination` is optional and defaults to an empty object; it uses a generic record rather than a typed funding-instruction schema. Supply `Idempotency-Key` or body `client_idempotency_key` for idempotent retries; the header takes precedence. If both are absent, edge generates a fresh key, so a retry creates another operation. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `destination` | object | No | | | `source_rail` | "fiat" / "crypto" | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | Additional fields are not accepted. #### Request body schema.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /on-ramp-sessions ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "on_ramp", "family_params": { "destination_payload": {}, "destination_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" }, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": null, "status": "admissible", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get on-ramp session Source: https://business-api-docs.youhodler.com/api/reference/on-ramp-sessions/on-ramp-sessions-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `session_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /on-ramp-sessions/{session_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "on_ramp", "family_params": { "destination_payload": {}, "destination_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" }, "fee_summary": { "components": [ { "amount": { "currency": "EUR", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "EUR", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": "2026-05-01T10:00:00Z", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body At least one alternative must match. ##### application/json body: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.applied_rate At least one alternative must match. ###### application/json body: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.created_at At least one alternative must match. ###### application/json body: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body: alternative 1.failure_reason At least one alternative must match. ###### application/json body: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_summary At least one alternative must match. ###### application/json body: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body: alternative 1.fill_rate At least one alternative must match. ###### application/json body: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.posted_at At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body: alternative 1.settled_at At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 1.target_amount At least one alternative must match. ###### application/json body: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body: alternative 1.updated_at At least one alternative must match. ###### application/json body: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.created_at At least one alternative must match. ###### application/json body: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.failure_reason At least one alternative must match. ###### application/json body: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 2.fee_summary At least one alternative must match. ###### application/json body: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 2.fill_rate At least one alternative must match. ###### application/json body: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 2.settled_at At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 2.updated_at At least one alternative must match. ###### application/json body: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.created_at At least one alternative must match. ###### application/json body: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.failure_reason At least one alternative must match. ###### application/json body: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body: alternative 3.fee_summary At least one alternative must match. ###### application/json body: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body: alternative 3.fill_rate At least one alternative must match. ###### application/json body: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body: alternative 3.settled_at At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body: alternative 3.updated_at At least one alternative must match. ###### application/json body: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List on-ramp sessions Source: https://business-api-docs.youhodler.com/api/reference/on-ramp-sessions/on-ramp-sessions-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /on-ramp-sessions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "on_ramp", "family_params": { "destination_payload": {}, "destination_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "intermediate_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_amount": { "currency": "EUR", "value": "250.00" }, "source_rail": "fiat", "target_currency": "USDC" }, "fee_summary": { "components": [ { "amount": { "currency": "EUR", "value": "1.00" }, "kind": "platform_fee" } ], "total": { "currency": "EUR", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "EUR", "value": "250.00" }, "settled_at": "2026-05-01T10:00:00Z", "status": "settled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object or object or object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object or object or object[]`. ###### application/json body.items item At least one alternative must match. ###### application/json body.items item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `applied_rate` | string or null | Yes | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `conversion_execution_id` | string or null | Yes | | | `created_at` | string or string | Yes | | | `failure_detail` | object or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `ledger_posted_target_amount` | object or null | Yes | | | `leg_attempt_id` | string or null | Yes | | | `posted_at` | string or string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `source_gross_amount` | object or null | Yes | | | `source_principal_amount` | object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_amount` | object or null | Yes | | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.applied_rate At least one alternative must match. ###### application/json body.items item: alternative 1.applied_rate: alternative 1 DecimalString Type: `string`. pattern: `^(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.items item: alternative 1.applied_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.conversion_execution_id At least one alternative must match. ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.conversion_execution_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.created_at At least one alternative must match. ###### application/json body.items item: alternative 1.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `failed_at` | string or string or null | Yes | | | `reason_code` | string | Yes | pattern: `^[a-z0-9_.:-]+$`; minLength: 1; maxLength: 128 | | `retryable` | boolean or null | Yes | | | `stage` | "pre_execution" / "execution" / "post_fill" / "ledger_posting" / "unknown" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.failure_detail: alternative 1.failed_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable At least one alternative must match. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 1 Type: `boolean`. ###### application/json body.items item: alternative 1.failure_detail: alternative 1.retryable: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_detail: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 1.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 1.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 1.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fee_transaction_ids At least one alternative must match. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 1.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 1.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.ledger_posted_target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.ledger_posted_target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.leg_attempt_id At least one alternative must match. ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.posted_at At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.posted_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.posted_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.principal_transaction_id At least one alternative must match. ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item: alternative 1.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.settled_at At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 1.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_gross_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_gross_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.source_principal_amount At least one alternative must match. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.source_principal_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.target_amount At least one alternative must match. ###### application/json body.items item: alternative 1.target_amount: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 1.target_amount: alternative 2 Type: `null`. ###### application/json body.items item: alternative 1.updated_at At least one alternative must match. ###### application/json body.items item: alternative 1.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 1.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `external_settlement_role` | "external_source_spend" / "external_target_disbursement" | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "external_settlement_conversion" | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `internal_settlement_account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `settlement_checked_at` | string or string | Yes | | | `settlement_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `target_currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.created_at At least one alternative must match. ###### application/json body.items item: alternative 2.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 2.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 2.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 2.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 2.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 2.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 2.settled_at At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.settlement_checked_at At least one alternative must match. ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.settlement_checked_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 2.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 2.updated_at At least one alternative must match. ###### application/json body.items item: alternative 2.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 2.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.admission_hold_reason At least one alternative must match. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.items item: alternative 3.admission_hold_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.created_at At least one alternative must match. ###### application/json body.items item: alternative 3.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.failure_reason At least one alternative must match. ###### application/json body.items item: alternative 3.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item: alternative 3.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fee_summary At least one alternative must match. ###### application/json body.items item: alternative 3.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.fill_rate At least one alternative must match. ###### application/json body.items item: alternative 3.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item: alternative 3.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item: alternative 3.settled_at At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item: alternative 3.settled_at: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.federation At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item: alternative 3.updated_at At least one alternative must match. ###### application/json body.items item: alternative 3.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item: alternative 3.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Request production access Source: https://business-api-docs.youhodler.com/api/reference/onboarding/production-access-requests-create **Authentication:** Send `Authorization: Bearer `. Tells our compliance team that this sandbox tenant is ready to go live. Nothing is provisioned by the call and the sandbox tenant is unchanged: the two deployments are separate, so going live means a production account created for you by hand, and this is how we learn there is one to create. Requires a human user bound to an enterprise with a contact email. The company and contact address come from platform records; the optional note is the only body field, and the whole body may be omitted. A 200 means our team was reached; if they were not, the call fails with 503 and retrying is the right move. Asking again when you already have a request returns 409. The production deployment returns 409 with reason production_access_not_available. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `note` | string or null | No | | Additional fields are not accepted. #### Request body schema.note At least one alternative must match. ##### Request body schema.note: alternative 1 Type: `string`. maxLength: 2000 ##### Request body schema.note: alternative 2 Type: `null`. **Request URL — POST** ```http POST /production-access-requests ``` **Request Body — application/json** ```json { "note": "We expect around 2,000 payouts a month across AR and BR, and we would like to be live before the end of the quarter." } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-04-19T12:00:00Z", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "notified": true, "production_access_request_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "provisioned_at": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `notified` | boolean or null | Yes | | | `production_access_request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `provisioned_at` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.notified At least one alternative must match. ###### application/json body.notified: alternative 1 Type: `boolean`. ###### application/json body.notified: alternative 2 Type: `null`. ##### application/json body.provisioned_at At least one alternative must match. ###### application/json body.provisioned_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.provisioned_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Read the current production access request Source: https://business-api-docs.youhodler.com/api/reference/onboarding/production-access-requests-current **Authentication:** Send `Authorization: Bearer `. Where your request to go live stands. `production_access_request: null` means no announcement has reached compliance; failed announcement attempts are not shown. A request with `provisioned_at: null` means production provisioning has not been recorded, and `created_at` is the day you asked. A request with `provisioned_at` set means your production account exists. Answers for your bound enterprise under kyc.verify. The production deployment returns 409 with reason production_access_not_available. ## Request **Request URL — GET** ```http GET /production-access-requests/current ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "production_access_request": { "created_at": "2026-04-19T12:00:00Z", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "notified": true, "production_access_request_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "provisioned_at": null } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `production_access_request` | object or null | Yes | | Additional fields are not accepted. ##### application/json body.production_access_request At least one alternative must match. ###### application/json body.production_access_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `notified` | boolean or null | Yes | | | `production_access_request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `provisioned_at` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.production_access_request: alternative 1.notified At least one alternative must match. ###### application/json body.production_access_request: alternative 1.notified: alternative 1 Type: `boolean`. ###### application/json body.production_access_request: alternative 1.notified: alternative 2 Type: `null`. ###### application/json body.production_access_request: alternative 1.provisioned_at At least one alternative must match. ###### application/json body.production_access_request: alternative 1.provisioned_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.production_access_request: alternative 1.provisioned_at: alternative 2 Type: `null`. ###### application/json body.production_access_request: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create operations activity export Source: https://business-api-docs.youhodler.com/api/reference/operations-activity-exports/operations-activity-exports-create **Authentication:** Send `Authorization: Bearer `. Creates an operations activity export with format csv or json; json produces newline-delimited JSON. The time range must be strictly increasing. Requested scope requires operations_reports.create_export coverage; client_refs and client_account_refs filters also require operations_reports.read coverage. Inspect status and download_path for readiness. storage_location is always null; download_path is a relative gateway route. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `requested_scope` | object or object or object or object or object | Yes | | Additional fields are not accepted. #### Request body schema.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `assets` | string[] | No | | | `client_account_refs` | string[] | No | | | `client_refs` | string[] | No | | | `date_from_utc` | string or string | Yes | | | `date_to_utc` | string or string | Yes | | | `failure_reason_codes` | string[] | No | | | `operation_families` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[] | No | | | `statuses` | "created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[] | No | | Additional fields are not accepted. ##### Request body schema.filter_criteria.assets Type: `string[]`. ###### Request body schema.filter_criteria.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### Request body schema.filter_criteria.client_account_refs Type: `string[]`. ###### Request body schema.filter_criteria.client_account_refs item Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.filter_criteria.client_refs Type: `string[]`. ###### Request body schema.filter_criteria.client_refs item Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.filter_criteria.date_from_utc At least one alternative must match. ###### Request body schema.filter_criteria.date_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### Request body schema.filter_criteria.date_from_utc: alternative 2 Type: `string`. format: date-time ##### Request body schema.filter_criteria.date_to_utc At least one alternative must match. ###### Request body schema.filter_criteria.date_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### Request body schema.filter_criteria.date_to_utc: alternative 2 Type: `string`. format: date-time ##### Request body schema.filter_criteria.failure_reason_codes Type: `string[]`. ###### Request body schema.filter_criteria.failure_reason_codes item Type: `string`. minLength: 1 ##### Request body schema.filter_criteria.operation_families Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[]`. ###### Request body schema.filter_criteria.operation_families item Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"`. ##### Request body schema.filter_criteria.statuses Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[]`. ###### Request body schema.filter_criteria.statuses item Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"`. #### Request body schema.requested_scope Exactly one alternative must match. ##### Request body schema.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. **Request URL — POST** ```http POST /operations-activity-exports ``` **Request Body — application/json** ```json { "format": "csv", "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z" }, "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "format": "csv", "byte_size": 32768, "download_path": "/operations-activity-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 150, "status": "ready", "storage_location": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.byte_size At least one alternative must match. ###### application/json body.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.byte_size: alternative 2 Type: `null`. ##### application/json body.download_path At least one alternative must match. ###### application/json body.download_path: alternative 1 Type: `string`. ###### application/json body.download_path: alternative 2 Type: `null`. ##### application/json body.expires_at_utc At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.expires_at_utc: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `assets` | string[] | No | | | `client_account_refs` | string[] | No | | | `client_refs` | string[] | No | | | `date_from_utc` | string or string | Yes | | | `date_to_utc` | string or string | Yes | | | `failure_reason_codes` | string[] | No | | | `operation_families` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[] | No | | | `statuses` | "created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[] | No | | Additional fields are not accepted. ###### application/json body.filter_criteria.assets Type: `string[]`. ###### application/json body.filter_criteria.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.filter_criteria.client_account_refs Type: `string[]`. ###### application/json body.filter_criteria.client_account_refs item Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.filter_criteria.client_refs Type: `string[]`. ###### application/json body.filter_criteria.client_refs item Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.filter_criteria.date_from_utc At least one alternative must match. ###### application/json body.filter_criteria.date_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.date_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.date_to_utc At least one alternative must match. ###### application/json body.filter_criteria.date_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.date_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.failure_reason_codes Type: `string[]`. ###### application/json body.filter_criteria.failure_reason_codes item Type: `string`. minLength: 1 ###### application/json body.filter_criteria.operation_families Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[]`. ###### application/json body.filter_criteria.operation_families item Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"`. ###### application/json body.filter_criteria.statuses Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[]`. ###### application/json body.filter_criteria.statuses item Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"`. ##### application/json body.finished_at_utc At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.finished_at_utc: alternative 2 Type: `null`. ##### application/json body.generated_at_utc At least one alternative must match. ###### application/json body.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.generated_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.requested_scope Exactly one alternative must match. ###### application/json body.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### application/json body.row_count At least one alternative must match. ###### application/json body.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.row_count: alternative 2 Type: `null`. ##### application/json body.storage_location At least one alternative must match. ###### application/json body.storage_location: alternative 1 Type: `string`. ###### application/json body.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Download operations activity export file Source: https://business-api-docs.youhodler.com/api/reference/operations-activity-exports/operations-activity-exports-download **Authentication:** Send `Authorization: Bearer `. Streams the ready export through edge. csv yields text/csv and json yields application/x-ndjson: one JSON object per line, with UTF-8 encoding. Content-Type, Content-Disposition and optional Content-Length are forwarded from the download service. Unavailable, expired or hidden exports return 404; an unsuccessful upstream response other than 404 returns 502. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `export_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /operations-activity-exports/{export_id}/download ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/x-ndjson`. #### application/x-ndjson body UTF-8 newline-delimited JSON, one OperationsActivityRow object per line. Type: `string`. Content type: `text/csv`. #### text/csv body UTF-8 CSV file with a header row. Type: `string`. | Response header | Type | Description | | --- | --- | --- | | `Content-Disposition` | string | | | `Content-Length` | string | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get operations activity export Source: https://business-api-docs.youhodler.com/api/reference/operations-activity-exports/operations-activity-exports-get **Authentication:** Send `Authorization: Bearer `. Reads an export covered by operations_reports.read for its stored scope. Missing or hidden exports return 404. download_path is null until ready and after expiry. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `export_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /operations-activity-exports/{export_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "format": "csv", "byte_size": 32768, "download_path": "/operations-activity-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 150, "status": "ready", "storage_location": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.byte_size At least one alternative must match. ###### application/json body.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.byte_size: alternative 2 Type: `null`. ##### application/json body.download_path At least one alternative must match. ###### application/json body.download_path: alternative 1 Type: `string`. ###### application/json body.download_path: alternative 2 Type: `null`. ##### application/json body.expires_at_utc At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.expires_at_utc: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `assets` | string[] | No | | | `client_account_refs` | string[] | No | | | `client_refs` | string[] | No | | | `date_from_utc` | string or string | Yes | | | `date_to_utc` | string or string | Yes | | | `failure_reason_codes` | string[] | No | | | `operation_families` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[] | No | | | `statuses` | "created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[] | No | | Additional fields are not accepted. ###### application/json body.filter_criteria.assets Type: `string[]`. ###### application/json body.filter_criteria.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.filter_criteria.client_account_refs Type: `string[]`. ###### application/json body.filter_criteria.client_account_refs item Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.filter_criteria.client_refs Type: `string[]`. ###### application/json body.filter_criteria.client_refs item Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.filter_criteria.date_from_utc At least one alternative must match. ###### application/json body.filter_criteria.date_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.date_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.date_to_utc At least one alternative must match. ###### application/json body.filter_criteria.date_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.date_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.failure_reason_codes Type: `string[]`. ###### application/json body.filter_criteria.failure_reason_codes item Type: `string`. minLength: 1 ###### application/json body.filter_criteria.operation_families Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[]`. ###### application/json body.filter_criteria.operation_families item Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"`. ###### application/json body.filter_criteria.statuses Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[]`. ###### application/json body.filter_criteria.statuses item Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"`. ##### application/json body.finished_at_utc At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.finished_at_utc: alternative 2 Type: `null`. ##### application/json body.generated_at_utc At least one alternative must match. ###### application/json body.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.generated_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.requested_scope Exactly one alternative must match. ###### application/json body.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### application/json body.row_count At least one alternative must match. ###### application/json body.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.row_count: alternative 2 Type: `null`. ##### application/json body.storage_location At least one alternative must match. ###### application/json body.storage_location: alternative 1 Type: `string`. ###### application/json body.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List operations activity exports Source: https://business-api-docs.youhodler.com/api/reference/operations-activity-exports/operations-activity-exports-list **Authentication:** Send `Authorization: Bearer `. Lists exports within the current caller operations_reports.read coverage, with optional status and limit filters. limit defaults to 50 and is bounded 1..200. Results contain an items array without cursor pagination. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `status` | query | "queued" / "running" / "ready" / "failed" / "expired" | No | | | `limit` | query | integer | No | minimum: 1; maximum: 200; default: `50` | ## Request **Request URL — GET** ```http GET /operations-activity-exports ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "format": "csv", "byte_size": 32768, "download_path": "/operations-activity-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "date_from_utc": "2026-04-01T00:00:00Z", "date_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 150, "status": "ready", "storage_location": null } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.byte_size At least one alternative must match. ###### application/json body.items item.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.byte_size: alternative 2 Type: `null`. ###### application/json body.items item.download_path At least one alternative must match. ###### application/json body.items item.download_path: alternative 1 Type: `string`. ###### application/json body.items item.download_path: alternative 2 Type: `null`. ###### application/json body.items item.expires_at_utc At least one alternative must match. ###### application/json body.items item.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.items item.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.expires_at_utc: alternative 2 Type: `null`. ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `assets` | string[] | No | | | `client_account_refs` | string[] | No | | | `client_refs` | string[] | No | | | `date_from_utc` | string or string | Yes | | | `date_to_utc` | string or string | Yes | | | `failure_reason_codes` | string[] | No | | | `operation_families` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[] | No | | | `statuses` | "created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[] | No | | Additional fields are not accepted. ###### application/json body.items item.filter_criteria.assets Type: `string[]`. ###### application/json body.items item.filter_criteria.assets item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.items item.filter_criteria.client_account_refs Type: `string[]`. ###### application/json body.items item.filter_criteria.client_account_refs item Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.filter_criteria.client_refs Type: `string[]`. ###### application/json body.items item.filter_criteria.client_refs item Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.filter_criteria.date_from_utc At least one alternative must match. ###### application/json body.items item.filter_criteria.date_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.filter_criteria.date_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.filter_criteria.date_to_utc At least one alternative must match. ###### application/json body.items item.filter_criteria.date_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.filter_criteria.date_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.filter_criteria.failure_reason_codes Type: `string[]`. ###### application/json body.items item.filter_criteria.failure_reason_codes item Type: `string`. minLength: 1 ###### application/json body.items item.filter_criteria.operation_families Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"[]`. ###### application/json body.items item.filter_criteria.operation_families item Type: `"deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension"`. ###### application/json body.items item.filter_criteria.statuses Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"[]`. ###### application/json body.items item.filter_criteria.statuses item Type: `"created" / "pending_approval" / "in_progress" / "completed" / "failed" / "cancelled" / "reversed" / "corrected"`. ###### application/json body.items item.finished_at_utc At least one alternative must match. ###### application/json body.items item.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.items item.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.finished_at_utc: alternative 2 Type: `null`. ###### application/json body.items item.generated_at_utc At least one alternative must match. ###### application/json body.items item.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.generated_at_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.requested_scope Exactly one alternative must match. ###### application/json body.items item.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.row_count At least one alternative must match. ###### application/json body.items item.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.row_count: alternative 2 Type: `null`. ###### application/json body.items item.storage_location At least one alternative must match. ###### application/json body.items item.storage_location: alternative 1 Type: `string`. ###### application/json body.items item.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List available payment methods Source: https://business-api-docs.youhodler.com/api/reference/payment-methods/available-payment-methods-list **Authentication:** Send `Authorization: Bearer `. Returns fiat deposit methods whose current runtime availability permits setup for the supplied `account_ref`. The account must lie within the caller’s bound enterprise or client scope; an out-of-scope account returns `404 resource_not_found`, and an unbound or platform-bound caller is refused. This is a current setup-readiness signal, not a guarantee that a later deposit succeeds. Use `/payment-methods` for the global reference catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rail` | query | string | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /available-payment-methods ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail": "sepa_credit_transfer" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | Additional fields are not accepted. ###### application/json body.items item.currencies Type: `string[]`. minItems: 1 ###### application/json body.items item.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create payment method Source: https://business-api-docs.youhodler.com/api/reference/payment-methods/payment-methods-create **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payment method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payment-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | No | default: `true` | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `rail` | string | Yes | minLength: 1 | Additional fields are not accepted. #### Request body schema.currencies Type: `string[]`. minItems: 1 ##### Request body schema.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` **Request URL — POST** ```http POST /payment-methods ``` **Request Body — application/json** ```json { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "rail": "sepa_credit_transfer" } ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Delete payment method Source: https://business-api-docs.youhodler.com/api/reference/payment-methods/payment-methods-delete **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payment method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payment-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `payment_method_id` | path | string | Yes | format: uuid | ## Request **Request URL — DELETE** ```http DELETE /payment-methods/{payment_method_id} ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List payment methods Source: https://business-api-docs.youhodler.com/api/reference/payment-methods/payment-methods-list **Authentication:** Send `Authorization: Bearer `. Returns the global fiat deposit payment-method catalog. The `rail` filter uses a fiat rail code and `asset` uses a currency code; unsupported combinations return an empty page. This reference listing does not check account setup readiness. `account_ref` is rejected here; use `/available-payment-methods` for account-scoped discovery. Crypto networks are listed separately through `/crypto-networks`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rail` | query | string | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /payment-methods ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail": "sepa_credit_transfer" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | Additional fields are not accepted. ###### application/json body.items item.currencies Type: `string[]`. minItems: 1 ###### application/json body.items item.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Update payment method Source: https://business-api-docs.youhodler.com/api/reference/payment-methods/payment-methods-update **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payment method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payment-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `payment_method_id` | path | string | Yes | format: uuid | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | No | | | `currencies` | string[] | No | minItems: 1 | | `display_name` | string | No | minLength: 1 | | `rail` | string | No | minLength: 1 | Additional fields are not accepted. #### Request body schema.currencies Type: `string[]`. minItems: 1 ##### Request body schema.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` **Request URL — PATCH** ```http PATCH /payment-methods/{payment_method_id} ``` **Request Body — application/json** ```json { "active": false, "display_name": "SEPA Updated" } ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List eligible payout methods Source: https://business-api-docs.youhodler.com/api/reference/payout-methods/eligible-payout-methods-list **Authentication:** Send `Authorization: Bearer `. Returns fiat withdrawal methods eligible for the supplied enterprise or client `scope_ref`, based on technical, commercial and feature-flag eligibility. The scope must lie within the caller’s bound enterprise or client scope; an out-of-scope target returns `404 resource_not_found`, and an unbound or platform-bound caller is refused. Eligibility does not establish account-level runtime readiness or guarantee execution. Use `/payout-methods` for the global reference catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rail` | query | string | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `scope_ref` | query | string or string | Yes | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /eligible-payout-methods ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail": "sepa_credit_transfer" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | Additional fields are not accepted. ###### application/json body.items item.currencies Type: `string[]`. minItems: 1 ###### application/json body.items item.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create payout method Source: https://business-api-docs.youhodler.com/api/reference/payout-methods/payout-methods-create **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payout method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payout-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | No | default: `true` | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `rail` | string | Yes | minLength: 1 | Additional fields are not accepted. #### Request body schema.currencies Type: `string[]`. minItems: 1 ##### Request body schema.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` **Request URL — POST** ```http POST /payout-methods ``` **Request Body — application/json** ```json { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "rail": "sepa_credit_transfer" } ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Delete payout method Source: https://business-api-docs.youhodler.com/api/reference/payout-methods/payout-methods-delete **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payout method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payout-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `payout_method_id` | path | string | Yes | format: uuid | ## Request **Request URL — DELETE** ```http DELETE /payout-methods/{payout_method_id} ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List payout methods Source: https://business-api-docs.youhodler.com/api/reference/payout-methods/payout-methods-list **Authentication:** Send `Authorization: Bearer `. Returns the global fiat withdrawal payout-method catalog. The `rail` filter uses a fiat rail code and `asset` uses a currency code; unsupported combinations return an empty page. This reference listing does not establish scope eligibility or execution readiness. `scope_ref` is rejected here; use `/eligible-payout-methods` for an enterprise or client scope. Crypto networks are listed separately through `/crypto-networks`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rail` | query | string | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /payout-methods ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "active": true, "code": "sepa_credit_transfer", "currencies": [ "EUR" ], "display_name": "SEPA", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "rail": "sepa_credit_transfer" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | Yes | | | `code` | string | Yes | pattern: `^[a-z0-9_]+$` | | `currencies` | string[] | Yes | minItems: 1 | | `display_name` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | Additional fields are not accepted. ###### application/json body.items item.currencies Type: `string[]`. minItems: 1 ###### application/json body.items item.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Update payout method Source: https://business-api-docs.youhodler.com/api/reference/payout-methods/payout-methods-update **Deprecated.** Read the operation restrictions below before integrating. **Authentication:** Send `Authorization: Bearer `. This mutation is unavailable. The fiat payout method catalog is derived from asset/rail support and cannot be changed through this endpoint. Every valid request returns `503 rail_not_available`; no successful creation, update or deletion occurs. Use `GET /payout-methods` to read the catalog. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `payout_method_id` | path | string | Yes | format: uuid | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `active` | boolean | No | | | `currencies` | string[] | No | minItems: 1 | | `display_name` | string | No | minLength: 1 | | `rail` | string | No | minLength: 1 | Additional fields are not accepted. #### Request body schema.currencies Type: `string[]`. minItems: 1 ##### Request body schema.currencies item Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` **Request URL — PATCH** ```http PATCH /payout-methods/{payout_method_id} ``` **Request Body — application/json** ```json { "active": false, "display_name": "SEPA Updated" } ``` ## Responses **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Read client MFA policy Source: https://business-api-docs.youhodler.com/api/reference/policies/clients-mfa-assurance-get **Authentication:** Send `Authorization: Bearer `. Read the MFA assurance setting for this scope. Requires policies.read covering the target scope. own_mode is null when this scope inherits its policy; effective_mode and source_scope_ref describe the resolved policy. owner identifies a scope-owned or platform-owned local row and is null when no local row exists. With no setting in the lineage, effective_mode is optional and source_scope_ref is null. Platform human sessions always have a mandatory MFA floor independent of these enterprise/client settings. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /clients/{client_id}/mfa-assurance ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "effective_mode": "mandatory", "own_mode": "mandatory", "owner": "scope", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `effective_mode` | "optional" / "mandatory" | Yes | | | `own_mode` | "optional" / "mandatory" or null | Yes | | | `owner` | "scope" / "platform" or null | No | | | `scope_ref` | string or string | Yes | | | `source_scope_ref` | string or string or null | Yes | | Additional fields are not accepted. ##### application/json body.own_mode At least one alternative must match. ###### application/json body.own_mode: alternative 1 Type: `"optional" / "mandatory"`. ###### application/json body.own_mode: alternative 2 Type: `null`. ##### application/json body.owner At least one alternative must match. ###### application/json body.owner: alternative 1 Type: `"scope" / "platform"`. ###### application/json body.owner: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.source_scope_ref At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1 At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 1: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Set client MFA policy Source: https://business-api-docs.youhodler.com/api/reference/policies/clients-mfa-assurance-set **Authentication:** Send `Authorization: Bearer `. Requires both policies.manage and policies.read covering the target scope; the current setting is read for the audit diff before writing. Set mode to inherited to remove the scope setting. Setting optional beneath a mandatory ancestor returns HTTP 409 with data.reason=mfa_cannot_relax and data.resource naming that ancestor. A platform-owned setting may only be changed by platform staff with platform-wide policies.manage authority; other callers receive HTTP 403 with data.reason=mfa_setting_platform_owned. The required reason is trimmed and must contain 3 to 500 characters for the audit record. This changes the assurance policy; it does not enroll or remove an authentication factor. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `mode` | "inherited" or "optional" / "mandatory" | Yes | | | `reason` | string | Yes | minLength: 3; maxLength: 500 | Additional fields are not accepted. #### Request body schema.mode At least one alternative must match. ##### Request body schema.mode: alternative 1 Type: `"inherited"`. ##### Request body schema.mode: alternative 2 Type: `"optional" / "mandatory"`. **Request URL — PUT** ```http PUT /clients/{client_id}/mfa-assurance ``` **Request Body — application/json** ```json { "mode": "mandatory", "reason": "Require fresh authentication for protected actions" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "effective_mode": "mandatory", "own_mode": "mandatory", "owner": "scope", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `effective_mode` | "optional" / "mandatory" | Yes | | | `own_mode` | "optional" / "mandatory" or null | Yes | | | `owner` | "scope" / "platform" or null | No | | | `scope_ref` | string or string | Yes | | | `source_scope_ref` | string or string or null | Yes | | Additional fields are not accepted. ##### application/json body.own_mode At least one alternative must match. ###### application/json body.own_mode: alternative 1 Type: `"optional" / "mandatory"`. ###### application/json body.own_mode: alternative 2 Type: `null`. ##### application/json body.owner At least one alternative must match. ###### application/json body.owner: alternative 1 Type: `"scope" / "platform"`. ###### application/json body.owner: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.source_scope_ref At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1 At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 1: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Read enterprise MFA policy Source: https://business-api-docs.youhodler.com/api/reference/policies/enterprises-mfa-assurance-get **Authentication:** Send `Authorization: Bearer `. Read the MFA assurance setting for this scope. Requires policies.read covering the target scope. own_mode is null when this scope inherits its policy; effective_mode and source_scope_ref describe the resolved policy. owner identifies a scope-owned or platform-owned local row and is null when no local row exists. With no setting in the lineage, effective_mode is optional and source_scope_ref is null. Platform human sessions always have a mandatory MFA floor independent of these enterprise/client settings. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /enterprises/{enterprise_id}/mfa-assurance ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "effective_mode": "mandatory", "own_mode": "mandatory", "owner": "scope", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `effective_mode` | "optional" / "mandatory" | Yes | | | `own_mode` | "optional" / "mandatory" or null | Yes | | | `owner` | "scope" / "platform" or null | No | | | `scope_ref` | string or string | Yes | | | `source_scope_ref` | string or string or null | Yes | | Additional fields are not accepted. ##### application/json body.own_mode At least one alternative must match. ###### application/json body.own_mode: alternative 1 Type: `"optional" / "mandatory"`. ###### application/json body.own_mode: alternative 2 Type: `null`. ##### application/json body.owner At least one alternative must match. ###### application/json body.owner: alternative 1 Type: `"scope" / "platform"`. ###### application/json body.owner: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.source_scope_ref At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1 At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 1: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Set enterprise MFA policy Source: https://business-api-docs.youhodler.com/api/reference/policies/enterprises-mfa-assurance-set **Authentication:** Send `Authorization: Bearer `. Requires both policies.manage and policies.read covering the target scope; the current setting is read for the audit diff before writing. Set mode to inherited to remove the scope setting. Setting optional beneath a mandatory ancestor returns HTTP 409 with data.reason=mfa_cannot_relax and data.resource naming that ancestor. A platform-owned setting may only be changed by platform staff with platform-wide policies.manage authority; other callers receive HTTP 403 with data.reason=mfa_setting_platform_owned. The required reason is trimmed and must contain 3 to 500 characters for the audit record. This changes the assurance policy; it does not enroll or remove an authentication factor. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `mode` | "inherited" or "optional" / "mandatory" | Yes | | | `reason` | string | Yes | minLength: 3; maxLength: 500 | Additional fields are not accepted. #### Request body schema.mode At least one alternative must match. ##### Request body schema.mode: alternative 1 Type: `"inherited"`. ##### Request body schema.mode: alternative 2 Type: `"optional" / "mandatory"`. **Request URL — PUT** ```http PUT /enterprises/{enterprise_id}/mfa-assurance ``` **Request Body — application/json** ```json { "mode": "mandatory", "reason": "Require fresh authentication for protected actions" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "effective_mode": "mandatory", "own_mode": "mandatory", "owner": "scope", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "source_scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `effective_mode` | "optional" / "mandatory" | Yes | | | `own_mode` | "optional" / "mandatory" or null | Yes | | | `owner` | "scope" / "platform" or null | No | | | `scope_ref` | string or string | Yes | | | `source_scope_ref` | string or string or null | Yes | | Additional fields are not accepted. ##### application/json body.own_mode At least one alternative must match. ###### application/json body.own_mode: alternative 1 Type: `"optional" / "mandatory"`. ###### application/json body.own_mode: alternative 2 Type: `null`. ##### application/json body.owner At least one alternative must match. ###### application/json body.owner: alternative 1 Type: `"scope" / "platform"`. ###### application/json body.owner: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.source_scope_ref At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1 At least one alternative must match. ###### application/json body.source_scope_ref: alternative 1: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 1: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.source_scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Activate policy rule Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-activate **Authentication:** Send `Authorization: Bearer `. Validates a draft and activates it for policy evaluation. If-Match must match the current rule etag. A named approver role must be active, lie within the governed perimeter and permit approval decisions; omitting the role leaves eligible approvers to the governed perimeter. Only draft rules can be activated. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rule_id` | path | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /policy-rules/{rule_id}/activate ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": "2026-05-01T10:00:00Z", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.activated_at At least one alternative must match. ###### application/json body.activated_at: alternative 1 At least one alternative must match. ###### application/json body.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.activated_at: alternative 2 Type: `null`. ##### application/json body.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.conditions item Exactly one alternative must match. ###### application/json body.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.decision Exactly one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ##### application/json body.retired_at At least one alternative must match. ###### application/json body.retired_at: alternative 1 At least one alternative must match. ###### application/json body.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.retired_at: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create policy rule Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-create **Authentication:** Send `Authorization: Bearer `. Creates a draft rule under the governed scope. Creating a rule does not enforce it: activate the draft separately after authoring. Supply Idempotency-Key for replay-safe creation; it takes precedence over body idempotency_key. When neither is supplied, edge generates a key and a repeated request creates a new rule. A replay with the same Idempotency-Key header returns the original 201 response and original etag. A body-only idempotency_key replay returns the existing rule in its current lifecycle state. Re-read the rule before a later lifecycle action. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | No | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `decision` | object or object or object | Yes | | | `idempotency_key` | string | No | minLength: 1; maxLength: 128 | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `scope_ref` | string or string | Yes | | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.conditions Type: `object or object or object or object or object or object[]`. ##### Request body schema.conditions item Exactly one alternative must match. ###### Request body schema.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. #### Request body schema.decision Exactly one alternative must match. ##### Request body schema.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### Request body schema.decision: alternative 1.reason At least one alternative must match. ###### Request body schema.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### Request body schema.decision: alternative 1.reason: alternative 2 Type: `null`. ##### Request body schema.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ##### Request body schema.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### Request body schema.decision: alternative 3.approver_role_ref At least one alternative must match. ###### Request body schema.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### Request body schema.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. #### Request body schema.scope_ref At least one alternative must match. ##### Request body schema.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` **Request URL — POST** ```http POST /policy-rules ``` **Request Body — application/json** ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "decision": { "approver_role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "operation_type": "withdrawal", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": null, "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "draft", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.activated_at At least one alternative must match. ###### application/json body.activated_at: alternative 1 At least one alternative must match. ###### application/json body.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.activated_at: alternative 2 Type: `null`. ##### application/json body.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.conditions item Exactly one alternative must match. ###### application/json body.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.decision Exactly one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ##### application/json body.retired_at At least one alternative must match. ###### application/json body.retired_at: alternative 1 At least one alternative must match. ###### application/json body.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.retired_at: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get policy rule Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-get **Authentication:** Send `Authorization: Bearer `. Reads a visible policy rule. Use its ETag response header or etag body field as If-Match when updating, activating or retiring the rule. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rule_id` | path | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | ## Request **Request URL — GET** ```http GET /policy-rules/{rule_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": "2026-05-01T10:00:00Z", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.activated_at At least one alternative must match. ###### application/json body.activated_at: alternative 1 At least one alternative must match. ###### application/json body.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.activated_at: alternative 2 Type: `null`. ##### application/json body.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.conditions item Exactly one alternative must match. ###### application/json body.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.decision Exactly one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ##### application/json body.retired_at At least one alternative must match. ###### application/json body.retired_at: alternative 1 At least one alternative must match. ###### application/json body.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.retired_at: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List policy rules Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-list **Authentication:** Send `Authorization: Bearer `. Lists visible policy rules. Filter by governed scope, operation type or status; repeat status_filter to select several lifecycle states. Draft rules are authoring resources; only active rules participate in policy evaluation. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string or string | No | | | `operation_type` | query | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | No | | | `status_filter` | query | "draft" / "active" / "retired" or "draft" / "active" / "retired"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /policy-rules ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": "2026-05-01T10:00:00Z", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.items item.description At least one alternative must match. ###### application/json body.items item.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.description: alternative 2 Type: `null`. ###### application/json body.items item.activated_at At least one alternative must match. ###### application/json body.items item.activated_at: alternative 1 At least one alternative must match. ###### application/json body.items item.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.activated_at: alternative 2 Type: `null`. ###### application/json body.items item.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.items item.conditions item Exactly one alternative must match. ###### application/json body.items item.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.items item.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.decision Exactly one alternative must match. ###### application/json body.items item.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 1.reason At least one alternative must match. ###### application/json body.items item.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.items item.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.items item.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.items item.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ###### application/json body.items item.retired_at At least one alternative must match. ###### application/json body.items item.retired_at: alternative 1 At least one alternative must match. ###### application/json body.items item.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.retired_at: alternative 2 Type: `null`. ###### application/json body.items item.scope_ref At least one alternative must match. ###### application/json body.items item.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Retire policy rule Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-retire **Authentication:** Send `Authorization: Bearer `. Retires a draft or active rule while preserving its history. If-Match must match the current rule etag. Retired rules no longer participate in evaluation and cannot be retired again. The optional body may supply a nullable reason. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rule_id` | path | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /policy-rules/{rule_id}/retire ``` **Request Body — application/json** ```json { "reason": "No longer needed" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": "2026-05-01T10:00:00Z", "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": "2026-05-01T10:00:00Z", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "retired", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.activated_at At least one alternative must match. ###### application/json body.activated_at: alternative 1 At least one alternative must match. ###### application/json body.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.activated_at: alternative 2 Type: `null`. ##### application/json body.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.conditions item Exactly one alternative must match. ###### application/json body.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.decision Exactly one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ##### application/json body.retired_at At least one alternative must match. ###### application/json body.retired_at: alternative 1 At least one alternative must match. ###### application/json body.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.retired_at: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Update policy rule Source: https://business-api-docs.youhodler.com/api/reference/policies/policy-rules-update **Authentication:** Send `Authorization: Bearer `. Updates authoring fields on a draft rule. Active and retired rules cannot be edited. If-Match is required and must match the current rule etag; stale values are refused. Only supplied fields change, and description may be null. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rule_id` | path | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | No | minLength: 1 | | `description` | string or null | No | | | `conditions` | object or object or object or object or object or object[] | No | | | `decision` | object or object or object | No | | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | No | | | `scope_ref` | string or string | No | | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.conditions Type: `object or object or object or object or object or object[]`. ##### Request body schema.conditions item Exactly one alternative must match. ###### Request body schema.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### Request body schema.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. #### Request body schema.decision Exactly one alternative must match. ##### Request body schema.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### Request body schema.decision: alternative 1.reason At least one alternative must match. ###### Request body schema.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### Request body schema.decision: alternative 1.reason: alternative 2 Type: `null`. ##### Request body schema.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ##### Request body schema.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### Request body schema.decision: alternative 3.approver_role_ref At least one alternative must match. ###### Request body schema.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### Request body schema.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. #### Request body schema.scope_ref At least one alternative must match. ##### Request body schema.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` **Request URL — PATCH** ```http PATCH /policy-rules/{rule_id} ``` **Request Body — application/json** ```json { "name": "Updated policy rule name" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Large crypto withdrawal approval", "description": "Require compliance review for large crypto withdrawals", "activated_at": null, "conditions": [ { "amount_basis": "usd_equivalent", "kind": "amount_threshold", "operator": "gte", "threshold": { "currency": "USD", "value": "10000.00" } }, { "asset_class": "crypto", "asset_role": "principal", "kind": "asset_class" } ], "created_at": "2026-05-01T10:00:00Z", "decision": { "approver_role_ref": "roles/44444444-4444-4444-8444-444444444444", "initiator_cannot_approve": true, "kind": "require_approval", "reason": "large_crypto_withdrawal", "threshold": 2 }, "etag": "policy-rule-v2-0001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "operation_type": "withdrawal", "resource": "policy_rule", "retired_at": null, "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "draft", "updated_at": "2026-05-01T10:00:00Z", "version": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `activated_at` | string or string or null | Yes | | | `conditions` | object or object or object or object or object or object[] | Yes | | | `created_at` | string or string | Yes | | | `decision` | object or object or object | Yes | | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `operation_type` | "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `resource` | "policy_rule" | Yes | | | `retired_at` | string or string or null | Yes | | | `scope_ref` | string or string | Yes | | | `status` | "draft" / "active" / "retired" | Yes | | | `updated_at` | string or string | Yes | | | `version` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. minLength: 1 ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.activated_at At least one alternative must match. ###### application/json body.activated_at: alternative 1 At least one alternative must match. ###### application/json body.activated_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.activated_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.activated_at: alternative 2 Type: `null`. ##### application/json body.conditions Type: `object or object or object or object or object or object[]`. ###### application/json body.conditions item Exactly one alternative must match. ###### application/json body.conditions item: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "native_amount" / "usd_equivalent" | Yes | | | `kind` | "amount_threshold" | Yes | | | `operator` | "gt" / "gte" / "lt" / "lte" | Yes | | | `threshold` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.conditions item: alternative 1.threshold | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.conditions item: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_class` | "fiat" / "crypto" | Yes | | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset_class" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset_code` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `asset_role` | "principal" / "source" / "target" | Yes | | | `kind` | "asset" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `direction` | "master_to_client" / "client_to_master" / "client_to_client" | Yes | | | `kind` | "direction" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `initiator_ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `kind` | "initiator" | Yes | | Additional fields are not accepted. ###### application/json body.conditions item: alternative 6 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "conversion_asset_class_pair" | Yes | | | `source_asset_class` | "fiat" / "crypto" | Yes | | | `target_asset_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.decision Exactly one alternative must match. ###### application/json body.decision: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "allow" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. ###### application/json body.decision: alternative 1.reason At least one alternative must match. ###### application/json body.decision: alternative 1.reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.decision: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.decision: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "deny" | Yes | | | `reason` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.decision: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approver_role_ref` | string or null | No | | | `initiator_cannot_approve` | boolean | Yes | | | `kind` | "require_approval" | Yes | | | `reason` | string | Yes | minLength: 1 | | `threshold` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | Additional fields are not accepted. ###### application/json body.decision: alternative 3.approver_role_ref At least one alternative must match. ###### application/json body.decision: alternative 3.approver_role_ref: alternative 1 Type: `string`. pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.decision: alternative 3.approver_role_ref: alternative 2 Type: `null`. ##### application/json body.retired_at At least one alternative must match. ###### application/json body.retired_at: alternative 1 At least one alternative must match. ###### application/json body.retired_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.retired_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.retired_at: alternative 2 Type: `null`. ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(master-accounts|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get per-asset prices Source: https://business-api-docs.youhodler.com/api/reference/prices/prices-assets **Authentication:** Send `Authorization: Bearer `. Returns the current price of each requested asset expressed in `quote_asset`, plus the absolute change over a trailing 24-hour window. `assets` is a comma-separated list (max 50). `account_ref` requires a bound enterprise or client operating scope; missing/platform bindings are refused with 403 and an account outside that scope is hidden with 404. Asset codes are trimmed, uppercased and deduplicated; quote_asset is trimmed and uppercased. The price is account-scoped: the price is produced by the same pricing source that prices a conversion for that account, and the 24h change is attributed to the venue resolved for that account and pair. `change_24h` is `null` — never `0` — whenever the change cannot be established honestly (the venue publishes no rolling 24-hour reference price, the pair routes to the internal book, or the venue stats call failed); a `null` must not be rendered as a flat market. Assets that could not be priced are listed under `unavailable` with a machine-readable reason instead of being silently dropped. This response is informational only; execution must request pricing again. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `assets` | query | string | Yes | minLength: 1 | | `quote_asset` | query | string | Yes | minLength: 1 | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /prices/assets ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "prices": [ { "asset": "BTC", "calculated_at": "2026-05-01T10:00:00Z", "change_24h": "-1204.31", "change_source": "binance:BTCUSDC", "price": "65789.47", "price_source": "binance:ws:via_usdc" }, { "asset": "ETH", "calculated_at": "2026-05-01T10:00:00Z", "change_24h": null, "change_source": null, "price": "3421.08", "price_source": "binance:ws:via_usdc" } ], "quote_asset": "USD", "unavailable": [ { "asset": "SOL", "reason": "unknown_pair" } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `prices` | object[] | Yes | | | `quote_asset` | string | Yes | minLength: 1 | | `unavailable` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.prices Type: `object[]`. ###### application/json body.prices item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | minLength: 1 | | `calculated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `change_24h` | string or null | Yes | | | `change_source` | string or null | Yes | | | `price` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `price_source` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.prices item.change_24h At least one alternative must match. ###### application/json body.prices item.change_24h: alternative 1 SignedDecimalString Type: `string`. pattern: `^-?(0|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` ###### application/json body.prices item.change_24h: alternative 2 Type: `null`. ###### application/json body.prices item.change_source At least one alternative must match. ###### application/json body.prices item.change_source: alternative 1 Type: `string`. ###### application/json body.prices item.change_source: alternative 2 Type: `null`. ###### application/json body.prices item.price_source At least one alternative must match. ###### application/json body.prices item.price_source: alternative 1 Type: `string`. ###### application/json body.prices item.price_source: alternative 2 Type: `null`. ##### application/json body.unavailable Type: `object[]`. ###### application/json body.unavailable item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | minLength: 1 | | `reason` | "unknown_pair" / "pricing_unavailable" | Yes | | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get indicative price Source: https://business-api-docs.youhodler.com/api/reference/prices/prices-indicative **Authentication:** Send `Authorization: Bearer `. Returns the raw non-binding exchange pricing envelope for a from-asset/to-asset pair. Supply exactly the positive anchored amount: `from_amount` when `amount_basis=from`, or `to_amount` when `amount_basis=to`; omit the other amount. `indicative_price.price` is the to-asset amount per unit of from-asset. `account_ref` requires a bound enterprise or client operating scope; missing/platform bindings are refused with 403 and an account outside that scope is hidden with 404. This response is informational only; execution must request pricing again. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `from_asset` | query | string | Yes | minLength: 1 | | `to_asset` | query | string | Yes | minLength: 1 | | `amount_basis` | query | "from" / "to" | Yes | | | `from_amount` | query | string | No | pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `to_amount` | query | string | No | pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `account_ref` | query | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /prices/indicative ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "amount_basis": "from", "binding": false, "calculated_at": "2026-05-01T10:00:00Z", "expires_at": "2026-05-01T10:01:00.000Z", "flow_type": "conversion", "from_amount": { "currency": "USDC", "value": "250.00" }, "from_asset": "USDC", "indicative_price": { "computed_at": "2026-05-01T10:00:00Z", "price": "0.0000152", "price_type": "indicative" }, "pricing_mode": "indicative", "to_amount": { "currency": "BTC", "value": "0.00380000" }, "to_asset": "BTC" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount_basis` | "from" / "to" | Yes | | | `binding` | false | Yes | | | `calculated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `flow_type` | "conversion" | Yes | | | `from_amount` | object | Yes | No additional fields | | `from_asset` | string | Yes | minLength: 1 | | `indicative_price` | object | Yes | No additional fields | | `pricing_mode` | "indicative" | Yes | | | `to_amount` | object | Yes | No additional fields | | `to_asset` | string | Yes | minLength: 1 | Additional fields are not accepted. ##### application/json body.from_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.indicative_price | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `computed_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `expires_at` | string or null | No | | | `price` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | | `price_type` | "indicative" | Yes | | | `provider_hint` | string or null | No | | Additional fields are not accepted. ###### application/json body.indicative_price.expires_at At least one alternative must match. ###### application/json body.indicative_price.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.indicative_price.expires_at: alternative 2 Type: `null`. ###### application/json body.indicative_price.provider_hint At least one alternative must match. ###### application/json body.indicative_price.provider_hint: alternative 1 Type: `string`. ###### application/json body.indicative_price.provider_hint: alternative 2 Type: `null`. ##### application/json body.to_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Preview a conversion](/api/reference/conversions/conversions-preview) — Get a firm quote before committing - `POST` [Create conversion](/api/reference/conversions/conversions-create) — Commit a conversion --- # Grant role assignment Source: https://business-api-docs.youhodler.com/api/reference/role-assignments/role-assignments-create **Authentication:** Send `Authorization: Bearer `. Requires Idempotency-Key and an active role visible for the requested scope. The grantor must hold role_assignments.create with at least the propagation reach being delegated. `scope_propagation` defaults to `subtree`; `self` reaches only the named scope. A user cannot receive a role carrying service-only capabilities. Seed-only roles cannot be granted through the API. At `platform-operators/` scope a role that carries enterprise-governed capabilities needs an explicit `scope_anchor_kind`: `enterprise_wildcard` covers every enterprise, `explicit` covers the platform operator alone. Omitting it there is refused with `invalid_request` / `scope_anchor_kind_required`; at enterprise and client scope it defaults to `explicit`. `enterprise_wildcard` is allowed only at platform-operator scope, requires enterprise-governed permissions, and must use subtree propagation. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | No | | | `scope_propagation` | "self" / "subtree" | No | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. **Request URL — POST** ```http POST /role-assignments ``` **Request Body — application/json** ```json { "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `granted_by` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts\|system-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "role_assignment" | Yes | | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | Yes | | | `scope_propagation` | "self" / "subtree" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "revoked" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.granted_by At least one alternative must match. ###### application/json body.granted_by: alternative 1 Type: `string`. pattern: `^(users|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.granted_by: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List roles](/api/reference/roles/roles-list) — Find the role to assign - `GET` [Get role assignment](/api/reference/role-assignments/role-assignments-get) — Read the created assignment - `POST` [Revoke role assignment](/api/reference/role-assignments/role-assignments-revoke) — Revoke when no longer needed --- # Get role assignment Source: https://business-api-docs.youhodler.com/api/reference/role-assignments/role-assignments-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `role_assignment_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /role-assignments/{role_assignment_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `granted_by` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts\|system-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "role_assignment" | Yes | | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | Yes | | | `scope_propagation` | "self" / "subtree" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "revoked" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.granted_by At least one alternative must match. ###### application/json body.granted_by: alternative 1 Type: `string`. pattern: `^(users|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.granted_by: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Revoke role assignment](/api/reference/role-assignments/role-assignments-revoke) — Revoke this assignment - `GET` [Get role](/api/reference/roles/roles-get) — Inspect the assigned role --- # List role assignments Source: https://business-api-docs.youhodler.com/api/reference/role-assignments/role-assignments-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `principal_ref` | query | string or null | No | | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role_ref` | query | string or null | No | | | `status` | query | "active" / "revoked" or "active" / "revoked"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /role-assignments ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `granted_by` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts\|system-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "role_assignment" | Yes | | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | Yes | | | `scope_propagation` | "self" / "subtree" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "revoked" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.granted_by At least one alternative must match. ###### application/json body.items item.granted_by: alternative 1 Type: `string`. pattern: `^(users|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.granted_by: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Create a new assignment - `GET` [Get role assignment](/api/reference/role-assignments/role-assignments-get) — Fetch a single assignment by ID --- # Revoke role assignment Source: https://business-api-docs.youhodler.com/api/reference/role-assignments/role-assignments-revoke **Authentication:** Send `Authorization: Bearer `. Revokes the assignment and returns status `revoked`; no If-Match header is required. An already revoked assignment returns 409. The final enterprise-scope assignment carrying role_assignments.manage cannot be revoked: grant another enterprise administrator first. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `role_assignment_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /role-assignments/{role_assignment_id}/revoke ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "revoked", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `granted_by` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts\|system-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "role_assignment" | Yes | | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | Yes | | | `scope_propagation` | "self" / "subtree" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "revoked" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.granted_by At least one alternative must match. ###### application/json body.granted_by: alternative 1 Type: `string`. pattern: `^(users|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.granted_by: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List role assignments](/api/reference/role-assignments/role-assignments-list) — List remaining assignments - `GET` [Get role assignment](/api/reference/role-assignments/role-assignments-get) — Read current state before revoking --- # Create role Source: https://business-api-docs.youhodler.com/api/reference/roles/roles-create **Authentication:** Send `Authorization: Bearer `. Creates a tenant-managed active role at the explicit topology scope. Requires Idempotency-Key. Permissions must use canonical capability names and suit the scope: platform-owned and platform-actor-only capabilities cannot be placed in an enterprise or client role. Seed-only capabilities cannot be granted through the API. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | Yes | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | No | | | `permissions` | "users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"[] | Yes | minItems: 1 | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.permissions Type: `"users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"[]`. minItems: 1 ##### Request body schema.permissions item Type: `"users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"`. **Request URL — POST** ```http POST /roles ``` **Request Body — application/json** ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `permissions` | string[] | Yes | | | `platform_managed` | boolean | Yes | | | `resource` | "role" | Yes | | | `scope_ref` | string or null | Yes | | | `status` | "active" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.permissions Type: `string[]`. ###### application/json body.permissions item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get role](/api/reference/roles/roles-get) — Read the created role - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Assign the role to a principal - `GET` [List capabilities](/api/reference/capabilities/capabilities-list) — Find capabilities to include in the role --- # Get role Source: https://business-api-docs.youhodler.com/api/reference/roles/roles-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `role_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /roles/{role_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `permissions` | string[] | Yes | | | `platform_managed` | boolean | Yes | | | `resource` | "role" | Yes | | | `scope_ref` | string or null | Yes | | | `status` | "active" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.permissions Type: `string[]`. ###### application/json body.permissions item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `PATCH` [Update role](/api/reference/roles/roles-update) — Update role permissions - `GET` [List role assignments](/api/reference/role-assignments/role-assignments-list) — See who has this role assigned - `POST` [Retire role](/api/reference/roles/roles-retire) — Retire the role when no longer needed --- # List roles Source: https://business-api-docs.youhodler.com/api/reference/roles/roles-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "retired" or "active" / "retired"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /roles ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `permissions` | string[] | Yes | | | `platform_managed` | boolean | Yes | | | `resource` | "role" | Yes | | | `scope_ref` | string or null | Yes | | | `status` | "active" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.description At least one alternative must match. ###### application/json body.items item.description: alternative 1 Type: `string`. ###### application/json body.items item.description: alternative 2 Type: `null`. ###### application/json body.items item.permissions Type: `string[]`. ###### application/json body.items item.permissions item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ###### application/json body.items item.scope_ref At least one alternative must match. ###### application/json body.items item.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope_ref: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create role](/api/reference/roles/roles-create) — Create a new role - `GET` [Get role](/api/reference/roles/roles-get) — Fetch a single role by ID - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Assign a role to a principal --- # Retire role Source: https://business-api-docs.youhodler.com/api/reference/roles/roles-retire **Authentication:** Send `Authorization: Bearer `. Retires a tenant-managed role and returns status `retired`. Retiring an already retired role or a platform-managed role returns 409. This action does not require If-Match. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `role_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /roles/{role_id}/retire ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "name": "Enterprise Admin", "description": "Full administrative access within an enterprise", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create", "deposits.read", "clients.read" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "retired", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `permissions` | string[] | Yes | | | `platform_managed` | boolean | Yes | | | `resource` | "role" | Yes | | | `scope_ref` | string or null | Yes | | | `status` | "active" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.permissions Type: `string[]`. ###### application/json body.permissions item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Revoke role assignment](/api/reference/role-assignments/role-assignments-revoke) — Revoke active assignments first - `GET` [Get role](/api/reference/roles/roles-get) — Read current state --- # Update role Source: https://business-api-docs.youhodler.com/api/reference/roles/roles-update **Authentication:** Send `Authorization: Bearer `. Patches an active tenant-managed role. Requires the current `If-Match` entity tag. Platform-managed roles are immutable through this API; retired roles cannot be updated. Omitting a field preserves it; `description: null` clears the description, but `name: null` is refused. Permission changes invalidate affected principals’ authority context. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `role_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string or null | No | | | `description` | string or null | No | | | `permissions` | "users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"[] | No | minItems: 1 | Additional fields are not accepted. #### Request body schema.name At least one alternative must match. ##### Request body schema.name: alternative 1 Type: `string`. minLength: 1 ##### Request body schema.name: alternative 2 Type: `null`. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.permissions Type: `"users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"[]`. minItems: 1 ##### Request body schema.permissions item Type: `"users.read" / "users.invite" / "users.create" / "users.manage" / "users.activate_federated" / "users.recovery_initiate" / "service_accounts.read" / "service_accounts.create" / "service_accounts.manage" / "service_accounts.rotate_secret" / "clients.read" / "clients.create" / "clients.manage" / "accounts.read" / "accounts.create" / "accounts.manage" / "roles.read" / "roles.create" / "roles.manage" / "role_assignments.read" / "role_assignments.create" / "role_assignments.manage" / "withdrawals.read" / "withdrawals.create" / "withdrawals.manage" / "conversions.read" / "conversions.create" / "conversions.manage" / "external_settlement_conversions.read" / "external_settlement_conversions.create" / "external_settlement_conversions.manage" / "internal_transfers.read" / "internal_transfers.create" / "internal_transfers.manage" / "ramps.read" / "ramps.create" / "ramps.manage" / "policies.read" / "policies.create" / "policies.manage" / "commercial_agreements.read" / "commercial_agreements.create" / "commercial_agreements.manage" / "loans.read" / "loans.create" / "loans.manage" / "loan_products.read" / "loan_products.manage" / "loan_shortfalls.read" / "sandbox_simulator.run" / "sandbox_reset.run" / "webhooks.read" / "webhooks.create" / "webhooks.manage" / "funding_endpoints.read" / "funding_endpoints.provision" / "deposit_instructions.read" / "deposit_instructions.create" / "withdrawal_destinations.read" / "withdrawal_destinations.create" / "withdrawal_destinations.manage" / "deposits.read" / "deposits.credit" / "approvals.read" / "approvals.decide" / "compliance_assessments.read" / "compliance_assessments.decide" / "compliance_assessments.read_decision_volume" / "compliance_assessments.reveal_subject_identity" / "compliance_alerts.read" / "compliance_alerts.acknowledge" / "compliance_rules.read" / "compliance_rules.manage" / "events.read" / "feature_flags.read" / "feature_flags.manage" / "feature_flags.manage_platform" / "identity_providers.manage" / "enterprises.read" / "enterprises.list" / "enterprises.create" / "enterprises.provision" / "enterprises.manage" / "enterprises.restrict" / "enterprises.reactivate" / "enterprises.terminate" / "kyc.verify" / "payment_methods.manage" / "payout_methods.manage" / "crypto_networks.manage" / "platform_operators.read" / "platform_operators.manage" / "platform_principals.manage" / "platform_principals.rotate_secret" / "ledger.compensate" / "ledger.fee_post" / "ledger.reconciliation_post" / "overdraft_limits.manage" / "operations_reports.read" / "operations_reports.create_export" / "operations_reports.view_fee_breakdown" / "operations_reports.view_actor_attribution" / "audit.read" / "audit.create_export" / "audit.view_technical_traces" / "audit.view_actor_pii" / "audit.view_free_text" / "catalog.manage" / "custody_mappings.manage" / "onchain_analytics_mappings.manage" / "fiat_routes.manage" / "conversion_routes.manage" / "settlement_bindings.manage" / "legal.publish" / "operations.review" / "operations.recovery" / "admissibility.read" / "custody.read"`. **Request URL — PATCH** ```http PATCH /roles/{role_id} ``` **Request Body — application/json** ```json { "name": "Updated Role Name", "description": "Updated description", "permissions": [ "withdrawals.create" ] } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "name": "Updated Role Name", "description": "Updated description", "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "permissions": [ "withdrawals.create" ], "platform_managed": false, "resource": "role", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `permissions` | string[] | Yes | | | `platform_managed` | boolean | Yes | | | `resource` | "role" | Yes | | | `scope_ref` | string or null | Yes | | | `status` | "active" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.permissions Type: `string[]`. ###### application/json body.permissions item Type: `string`. pattern: `^[a-z0-9]+(?:[._][a-z0-9]+)*$`; minLength: 1 ##### application/json body.scope_ref At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get role](/api/reference/roles/roles-get) — Read current state before updating --- # Simulate client verification review Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-clients-kyc-review **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. Produces kyc.verification.reviewed.v1. The client must already have a verification session. Read GET /kyc/clients/{client_id}/status to follow the resulting verification state. Approved, rejected and resubmission_required represent the external review outcomes. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `client_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `outcome` | "approved" / "rejected" / "resubmission_required" | Yes | | Additional fields are not accepted. **Request URL — POST** ```http POST /sandbox/clients/{client_id}/kyc-review ``` **Request Body — application/json** ```json { "outcome": "approved" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Simulate enterprise verification review Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-enterprises-kyb-review **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. Produces kyc.verification.reviewed.v1 as reviews are processed. Reviews the caller's own enterprise. Start verification with POST /kyc/access-token first: an existing verification applicant is required. An approved outcome supplies synthetic business details and advances the verification stages. Read GET /kyc/flow and GET /kyc/status to follow completion; rejected and resubmission_required simulate the corresponding review outcomes. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `outcome` | "approved" / "rejected" / "resubmission_required" | Yes | | Additional fields are not accepted. **Request URL — POST** ```http POST /sandbox/enterprises/{enterprise_id}/kyb-review ``` **Request Body — application/json** ```json { "outcome": "approved" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Simulate an incoming transfer Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-funding-endpoints-incoming-transfers **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. Observe rails.deposit.detected.v1 and operations.deposit.*.v1, including operations.deposit.settled.v1 after successful credit. The funding endpoint must receive the requested currency and belong to the named account. Use rail_class fiat or crypto; only fiat accepts reference. Follow GET /deposits and the credited account's balances. Screening, admission and other normal controls still apply: acceptance is not a guarantee of immediate credit. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `funding_endpoint_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `rail_class` | "fiat" | Yes | | | `reference` | string or null | No | | Additional fields are not accepted. ##### Request body schema: alternative 1.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### Request body schema: alternative 1.reference At least one alternative must match. ###### Request body schema: alternative 1.reference: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 1.reference: alternative 2 Type: `null`. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `rail_class` | "crypto" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 2.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /sandbox/funding-endpoints/{funding_endpoint_id}/incoming-transfers ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "USD", "value": "100.00" }, "rail_class": "fiat", "reference": "Sandbox transfer" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Simulate funding endpoint issuance review Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-funding-endpoints-issuance-review **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. There is no dedicated issuance webhook in the public event catalog; poll the resource. Decides a pending fiat account application or pending account feature. Crypto issuance review is unsupported. Read GET /funding-endpoints/{funding_endpoint_id} with the ordinary account_ref and rail_class query parameters until issuance resolves. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `funding_endpoint_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `outcome` | "approved" / "rejected" | Yes | | | `rail_class` | "fiat" / "crypto" | Yes | | Additional fields are not accepted. **Request URL — POST** ```http POST /sandbox/funding-endpoints/{funding_endpoint_id}/issuance-review ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "outcome": "approved", "rail_class": "fiat" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Simulate withdrawal destination review Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-withdrawal-destinations-review **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. There is no dedicated destination-review webhook in the public event catalog; poll the resource. Decides the external review of a fiat withdrawal destination. Read GET /withdrawal-destinations/{destination_id} with its account_ref and rail_class to follow the resulting state. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `outcome` | "approved" / "rejected" | Yes | | Additional fields are not accepted. **Request URL — POST** ```http POST /sandbox/withdrawal-destinations/{destination_id}/review ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "outcome": "approved" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Simulate withdrawal settlement Source: https://business-api-docs.youhodler.com/api/reference/sandbox/sandbox-withdrawals-settlement **Authentication:** Send `Authorization: Bearer `. **Sandbox only.** This operation returns 404 in production. Use [the sandbox testing guide](/guides/sandbox-testing) and the [sandbox OpenAPI download](/openapi-sandbox.yaml). Sandbox only: this route does not exist in production (404). Requires sandbox_simulator.run and visibility of the target. Use the same Idempotency-Key when retrying the same simulation; without a key, each call creates a new simulation. A 202 response accepts an asynchronous simulation; it does not mean the resource has reached its final state. Observe the ordinary resource reads and subscribed events. An unsupported simulation returns simulation_not_supported_for_route; a target that is not ready returns simulation_target_not_ready. Observe operations.withdrawal.settled.v1 or operations.withdrawal.failed.v1. The fiat withdrawal must already have been dispatched. Use settled or failed and, for a failure, an optional reason. Crypto withdrawals and already-final withdrawals are unsupported. Follow GET /withdrawals/{withdrawal_id} and its normal operation events. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `withdrawal_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `outcome` | "settled" / "failed" | Yes | | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /sandbox/withdrawals/{withdrawal_id}/settlement ``` **Request Body — application/json** ```json { "outcome": "settled" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the affected resource and subscribed events; simulation_id is not an operation ID. ```json { "accepted_at": "2026-05-01T10:00:00Z", "simulation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `simulation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 422 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create service account Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-create **Authentication:** Send `Authorization: Bearer `. Creates a service account and mints a fresh `client_secret`. The plaintext secret is returned in this issuance response; ordinary reads do not return it. Store it immediately. A retry with the same Idempotency-Key returns the account created by the first request, without its `client_secret`, instead of creating a second one. Use `service_accounts.rotate_secret` to issue a new secret if the original response was lost. The service account itself never expires on a timer; lifecycle is status-only (`active` or `revoked`). `client_secret_expires_at` is the client-secret TTL, while JWT access-token TTL is separate. `client_secret_ttl_seconds` is optional, has a minimum of 60 seconds and no maximum; omission uses the deployment default. The parent must be an enterprise or client. Managed accounts (`managed_by` is non-null) cannot be revoked or rotated here. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | No | | | `client_secret_ttl_seconds` | integer | No | minimum: 60; maximum: 9007199254740991 | | `external_id` | string or null | No | | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. ##### Request body schema.external_id: alternative 2 Type: `null`. **Request URL — POST** ```http POST /service-accounts ``` **Request Body — application/json** ```json { "description": "Withdrawal automation account", "external_id": "sa-ext-001", "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `client_secret` | string | No | Present only in the first response. A retry with the same Idempotency-Key replays the response without it. minLength: 1 | | `client_secret_expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `principal_ref` | string | Yes | pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `service_account` | object | Yes | Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. No additional fields | Additional fields are not accepted. ##### application/json body.service_account Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.service_account.description At least one alternative must match. ###### application/json body.service_account.description: alternative 1 Type: `string`. ###### application/json body.service_account.description: alternative 2 Type: `null`. ###### application/json body.service_account.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.service_account.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.current_secret_expires_at: alternative 2 Type: `null`. ###### application/json body.service_account.external_id At least one alternative must match. ###### application/json body.service_account.external_id: alternative 1 Type: `string`. ###### application/json body.service_account.external_id: alternative 2 Type: `null`. ###### application/json body.service_account.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.service_account.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.service_account.managed_by: alternative 2 Type: `null`. ###### application/json body.service_account.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.service_account.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.previous_secret_expires_at: alternative 2 Type: `null`. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get service account](/api/reference/service-accounts/service-accounts-get) — Read the created service account - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Assign roles to the new service account - `POST` [Issue access token](/api/reference/auth/oauth-token) — Issue a bearer token for the service account --- # Get service account Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `service_account_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /service-accounts/{service_account_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.current_secret_expires_at: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.previous_secret_expires_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `PATCH` [Update service account](/api/reference/service-accounts/service-accounts-update) — Update service account metadata - `POST` [Rotate service account secret](/api/reference/service-accounts/service-accounts-rotate-secret) — Rotate the client secret - `POST` [Revoke service account](/api/reference/service-accounts/service-accounts-revoke) — Revoke access permanently - `GET` [List role assignments](/api/reference/role-assignments/role-assignments-list) — View roles assigned to this account --- # List service accounts Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `parent_ref` | query | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "revoked" or "active" / "revoked"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /service-accounts ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.description At least one alternative must match. ###### application/json body.items item.description: alternative 1 Type: `string`. ###### application/json body.items item.description: alternative 2 Type: `null`. ###### application/json body.items item.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.items item.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.current_secret_expires_at: alternative 2 Type: `null`. ###### application/json body.items item.external_id At least one alternative must match. ###### application/json body.items item.external_id: alternative 1 Type: `string`. ###### application/json body.items item.external_id: alternative 2 Type: `null`. ###### application/json body.items item.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.items item.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.managed_by: alternative 2 Type: `null`. ###### application/json body.items item.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.items item.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.previous_secret_expires_at: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create service account](/api/reference/service-accounts/service-accounts-create) — Provision a new service account - `GET` [Get service account](/api/reference/service-accounts/service-accounts-get) — Fetch a single service account by ID --- # Provision service account with roles Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-provision **Authentication:** Send `Authorization: Bearer `. Creates a service account and grants it the supplied roles in a single call. Equivalent to `POST /service-accounts` followed by N × `POST /role-assignments`, but saves the client the round-trips. Best-effort grant phase: the service account is always created if `identity-service` accepts it; per-role grant failures are reported in `role_assignment_errors` (preserving the input order) and the response is still `201`. The plaintext secret is included only in the issuance response; ordinary reads do not return it. Store it before retrying failed grants. A retry with the same Idempotency-Key returns the first response without its `client_secret` and creates or grants nothing again; use `service_accounts.rotate_secret` if the original response was lost. `client_secret_ttl_seconds` has a minimum of 60 seconds, no upper bound, and uses the deployment default when omitted. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | No | | | `client_secret_ttl_seconds` | integer | No | minimum: 60; maximum: 9007199254740991 | | `external_id` | string or null | No | | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `roles` | object[] | Yes | minItems: 1 | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. ##### Request body schema.external_id: alternative 2 Type: `null`. #### Request body schema.roles Type: `object[]`. minItems: 1 ##### Request body schema.roles item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | No | | | `scope_propagation` | "self" / "subtree" | No | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. **Request URL — POST** ```http POST /service-accounts/provision ``` **Request Body — application/json** ```json { "description": "Withdrawal automation account", "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "roles": [ { "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ] } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role_assignment_errors": [], "role_assignments": [ { "created_at": "2026-05-01T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "role_assignment", "role_ref": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope_anchor_kind": "explicit", "scope_propagation": "subtree", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `client_secret` | string | No | Present only in the first response. A retry with the same Idempotency-Key replays the response without it. minLength: 1 | | `client_secret_expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `principal_ref` | string | Yes | pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role_assignment_errors` | object[] | Yes | | | `role_assignments` | object[] | Yes | | | `service_account` | object | Yes | Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. No additional fields | Additional fields are not accepted. ##### application/json body.role_assignment_errors Type: `object[]`. ###### application/json body.role_assignment_errors item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `message` | string | Yes | | | `role_ref` | string | Yes | | | `scope_ref` | string | Yes | | Additional fields are not accepted. ##### application/json body.role_assignments Type: `object[]`. ###### application/json body.role_assignments item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `etag` | string | Yes | minLength: 1 | | `granted_by` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_ref` | string | Yes | pattern: `^(users\|service-accounts\|system-principals)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "role_assignment" | Yes | | | `role_ref` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope_anchor_kind` | "explicit" / "enterprise_wildcard" | Yes | | | `scope_propagation` | "self" / "subtree" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "revoked" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.role_assignments item.granted_by At least one alternative must match. ###### application/json body.role_assignments item.granted_by: alternative 1 Type: `string`. pattern: `^(users|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.role_assignments item.granted_by: alternative 2 Type: `null`. ##### application/json body.service_account Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.service_account.description At least one alternative must match. ###### application/json body.service_account.description: alternative 1 Type: `string`. ###### application/json body.service_account.description: alternative 2 Type: `null`. ###### application/json body.service_account.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.service_account.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.current_secret_expires_at: alternative 2 Type: `null`. ###### application/json body.service_account.external_id At least one alternative must match. ###### application/json body.service_account.external_id: alternative 1 Type: `string`. ###### application/json body.service_account.external_id: alternative 2 Type: `null`. ###### application/json body.service_account.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.service_account.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.service_account.managed_by: alternative 2 Type: `null`. ###### application/json body.service_account.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.service_account.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.previous_secret_expires_at: alternative 2 Type: `null`. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Revoke service account Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-revoke **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `service_account_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /service-accounts/{service_account_id}/revoke ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "revoked", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.current_secret_expires_at: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.previous_secret_expires_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List service accounts](/api/reference/service-accounts/service-accounts-list) — List remaining service accounts --- # Rotate service account secret Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-rotate-secret **Authentication:** Send `Authorization: Bearer `. Issues a new `client_secret` with HTTP 201. The plaintext is returned only in this issuance response; ordinary reads do not return it. Rotation is not replayed: repeating the request issues a new secret, even with the same Idempotency-Key. By default the previous secret is invalidated immediately; pass `invalidate_previous_secret: false` to keep the immediately previous secret valid until its original expiry; rotation does not extend that expiry. Only one previous secret is retained. The service account itself never expires on a timer; lifecycle is status-only (`active` or `revoked`). `client_secret_expires_at` is the new client-secret TTL, while JWT access-token TTL is separate. The body may be omitted; omitted or null invalidate_previous_secret means true. `client_secret_ttl_seconds` is optional, at least 60 seconds, and has no upper bound; omission uses the deployment default. Revoked and managed accounts cannot be rotated. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `service_account_id` | path | string | Yes | format: uuid | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_secret_ttl_seconds` | integer | No | minimum: 60; maximum: 9007199254740991 | | `invalidate_previous_secret` | boolean or null | No | | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.invalidate_previous_secret At least one alternative must match. ##### Request body schema.invalidate_previous_secret: alternative 1 Type: `boolean`. ##### Request body schema.invalidate_previous_secret: alternative 2 Type: `null`. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /service-accounts/{service_account_id}/rotate-secret ``` **Request Body — application/json** ```json { "invalidate_previous_secret": true, "reason": "Routine rotation" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "client_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "client_secret": "cs_live_abc123placeholder", "client_secret_expires_at": "2026-05-02T10:00:00Z", "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "service_account": { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `client_secret` | string | Yes | minLength: 1 | | `client_secret_expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `principal_ref` | string | Yes | pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `service_account` | object | Yes | Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. No additional fields | Additional fields are not accepted. ##### application/json body.service_account Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.service_account.description At least one alternative must match. ###### application/json body.service_account.description: alternative 1 Type: `string`. ###### application/json body.service_account.description: alternative 2 Type: `null`. ###### application/json body.service_account.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.service_account.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.current_secret_expires_at: alternative 2 Type: `null`. ###### application/json body.service_account.external_id At least one alternative must match. ###### application/json body.service_account.external_id: alternative 1 Type: `string`. ###### application/json body.service_account.external_id: alternative 2 Type: `null`. ###### application/json body.service_account.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.service_account.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.service_account.managed_by: alternative 2 Type: `null`. ###### application/json body.service_account.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.service_account.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.service_account.previous_secret_expires_at: alternative 2 Type: `null`. | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Issue access token](/api/reference/auth/oauth-token) — Issue a new token with the rotated secret - `GET` [Get service account](/api/reference/service-accounts/service-accounts-get) — Read account details --- # Update service account Source: https://business-api-docs.youhodler.com/api/reference/service-accounts/service-accounts-update **Authentication:** Send `Authorization: Bearer `. Patch a service account. Requires `If-Match` from the resource GET response header. The body `etag` is the raw storage version; the HTTP `ETag` wraps that value as a weak entity tag. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `service_account_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | No | | | `external_id` | string or null | No | | Additional fields are not accepted. #### Request body schema.description At least one alternative must match. ##### Request body schema.description: alternative 1 Type: `string`. ##### Request body schema.description: alternative 2 Type: `null`. #### Request body schema.external_id At least one alternative must match. ##### Request body schema.external_id: alternative 1 Type: `string`. ##### Request body schema.external_id: alternative 2 Type: `null`. **Request URL — PATCH** ```http PATCH /service-accounts/{service_account_id} ``` **Request Body — application/json** ```json { "description": "Updated description" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "description": "Withdrawal automation account", "created_at": "2026-05-01T10:00:00Z", "current_secret_expires_at": "2026-05-02T10:00:00Z", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "external_id": "sa-ext-001", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "managed_by": null, "parent_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "previous_secret_expires_at": null, "principal_ref": "service-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "service_account", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body Public service account resource. The account itself has no expiry; only client secrets and access tokens have independent TTLs. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `current_secret_expires_at` | string or null | Yes | Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. | | `etag` | string | Yes | minLength: 1 | | `external_id` | string or null | Yes | | | `id` | string | Yes | Stable service account identifier. Matches `client_id` and the trailing id segment of `principal_ref`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `managed_by` | string or null | Yes | Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. | | `parent_ref` | string | Yes | pattern: `^(enterprises\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `previous_secret_expires_at` | string or null | Yes | Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. | | `principal_ref` | string | Yes | principal_ref ≡ service-accounts/{client_id} ≡ service-accounts/{id} pattern: `^(service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource` | "service_account" | Yes | | | `status` | "active" / "revoked" | Yes | Service accounts do not expire on a timer. Lifecycle is status-only: `active` or `revoked`. | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.description At least one alternative must match. ###### application/json body.description: alternative 1 Type: `string`. ###### application/json body.description: alternative 2 Type: `null`. ##### application/json body.current_secret_expires_at Expiry of the currently active client secret, or null for an account with no secret (an enterprise backend authenticating with private_key_jwt). The service account itself never expires on a timer, and JWT access-token TTL is separate. At least one alternative must match. ###### application/json body.current_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.current_secret_expires_at: alternative 2 Type: `null`. ##### application/json body.external_id At least one alternative must match. ###### application/json body.external_id: alternative 1 Type: `string`. ###### application/json body.external_id: alternative 2 Type: `null`. ##### application/json body.managed_by Identity provider that manages this system account; null for tenant-created accounts. Managed accounts cannot be revoked or have their secret rotated through the service-account API. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.previous_secret_expires_at Expiry of the previous client secret during a rotation grace window, or null when no previous secret remains valid. At least one alternative must match. ###### application/json body.previous_secret_expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.previous_secret_expires_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get service account](/api/reference/service-accounts/service-accounts-get) — Read current state before updating --- # Get audit log entry Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-entries/user-action-audit-entries-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `entry_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /user-action-audit-entries/{entry_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "action_family": "tenant_governance", "approval_state": "not_required", "attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "kind": "user", "ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "identity_source": "platform-managed", "initiated_by": null, "subject": { "kind": "user", "ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "changed_fields": null, "correlation_id": null, "detail": null, "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "event_type": "tenant.enterprise.admitted.v1", "human_actor_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "occurred_at_utc": "2026-05-01T10:00:00Z", "reason_code": null, "reason_text": null, "recorded_at_utc": "2026-05-01T10:00:00Z", "request_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource_type": "enterprise", "result_status": "succeeded", "scope": { "client_account_ref": null, "client_ref": null, "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "master_account_ref": null, "platform_operator_ref": null }, "service_account_id": null, "source_service": "edge-service", "trace_id": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other" or null | Yes | | | `approval_state` | "not_required" / "pending" / "approved" / "rejected" / "cancelled" / "expired" or null | Yes | | | `attribution` | object | Yes | No additional fields | | `changed_fields` | object[] or null | Yes | | | `correlation_id` | string or null | Yes | | | `detail` | object or null | Yes | | | `event_id` | string or null | Yes | | | `event_type` | string | Yes | pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` | | `human_actor_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `occurred_at_utc` | string or string | Yes | | | `reason_code` | string or null | Yes | | | `reason_text` | string or null | Yes | | | `recorded_at_utc` | string or string | Yes | | | `request_id` | string or null | Yes | | | `resource_ref` | string or null | Yes | | | `resource_type` | string or null | Yes | | | `result_status` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled" | Yes | | | `scope` | object | Yes | No additional fields | | `service_account_id` | string or null | Yes | | | `source_service` | string | Yes | minLength: 1 | | `trace_id` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.action_family At least one alternative must match. ###### application/json body.action_family: alternative 1 Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ###### application/json body.action_family: alternative 2 Type: `null`. ##### application/json body.approval_state At least one alternative must match. ###### application/json body.approval_state: alternative 1 Type: `"not_required" / "pending" / "approved" / "rejected" / "cancelled" / "expired"`. ###### application/json body.approval_state: alternative 2 Type: `null`. ##### application/json body.attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.attribution.actor At least one alternative must match. ###### application/json body.attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.attribution.actor: alternative 2 Type: `null`. ###### application/json body.attribution.approved_by At least one alternative must match. ###### application/json body.attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.attribution.initiated_by At least one alternative must match. ###### application/json body.attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.attribution.subject At least one alternative must match. ###### application/json body.attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.attribution.subject: alternative 2 Type: `null`. ##### application/json body.changed_fields At least one alternative must match. ###### application/json body.changed_fields: alternative 1 Type: `object[]`. ###### application/json body.changed_fields: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `after` | unspecified | Yes | | | `before` | unspecified | Yes | | Additional fields are not accepted. ###### application/json body.changed_fields: alternative 2 Type: `null`. ##### application/json body.correlation_id At least one alternative must match. ###### application/json body.correlation_id: alternative 1 Type: `string`. ###### application/json body.correlation_id: alternative 2 Type: `null`. ##### application/json body.detail At least one alternative must match. ###### application/json body.detail: alternative 1 Type: `object`. ###### application/json body.detail: alternative 2 Type: `null`. ##### application/json body.event_id At least one alternative must match. ###### application/json body.event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.event_id: alternative 2 Type: `null`. ##### application/json body.human_actor_id At least one alternative must match. ###### application/json body.human_actor_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.human_actor_id: alternative 2 Type: `null`. ##### application/json body.occurred_at_utc At least one alternative must match. ###### application/json body.occurred_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.occurred_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.reason_code At least one alternative must match. ###### application/json body.reason_code: alternative 1 Type: `string`. ###### application/json body.reason_code: alternative 2 Type: `null`. ##### application/json body.reason_text At least one alternative must match. ###### application/json body.reason_text: alternative 1 Type: `string`. ###### application/json body.reason_text: alternative 2 Type: `null`. ##### application/json body.recorded_at_utc At least one alternative must match. ###### application/json body.recorded_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recorded_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.request_id At least one alternative must match. ###### application/json body.request_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.request_id: alternative 2 Type: `null`. ##### application/json body.resource_ref At least one alternative must match. ###### application/json body.resource_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients|master-accounts|client-accounts|users|service-accounts|platform-principals|identity-providers|roles|role-assignments|system-principals|commercial-agreements|policy-rules|operations|compliance-assessments|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.resource_ref: alternative 2 Type: `null`. ##### application/json body.resource_type At least one alternative must match. ###### application/json body.resource_type: alternative 1 Type: `string`. minLength: 1 ###### application/json body.resource_type: alternative 2 Type: `null`. ##### application/json body.scope | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_account_ref` | string or null | Yes | | | `client_ref` | string or null | Yes | | | `enterprise_ref` | string or null | Yes | | | `master_account_ref` | string or null | Yes | | | `platform_operator_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.scope.client_account_ref At least one alternative must match. ###### application/json body.scope.client_account_ref: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope.client_account_ref: alternative 2 Type: `null`. ###### application/json body.scope.client_ref At least one alternative must match. ###### application/json body.scope.client_ref: alternative 1 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope.client_ref: alternative 2 Type: `null`. ###### application/json body.scope.enterprise_ref At least one alternative must match. ###### application/json body.scope.enterprise_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope.enterprise_ref: alternative 2 Type: `null`. ###### application/json body.scope.master_account_ref At least one alternative must match. ###### application/json body.scope.master_account_ref: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope.master_account_ref: alternative 2 Type: `null`. ###### application/json body.scope.platform_operator_ref At least one alternative must match. ###### application/json body.scope.platform_operator_ref: alternative 1 Type: `string`. pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope.platform_operator_ref: alternative 2 Type: `null`. ##### application/json body.service_account_id At least one alternative must match. ###### application/json body.service_account_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.service_account_id: alternative 2 Type: `null`. ##### application/json body.trace_id At least one alternative must match. ###### application/json body.trace_id: alternative 1 Type: `string`. ###### application/json body.trace_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Search audit log entries Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-entries/user-action-audit-entries-search **Authentication:** Send `Authorization: Bearer `. Queries the immutable audit trail. occurred_from_utc and occurred_to_utc are required and must form a strictly increasing range. Supply at least one enterprise_ref, master_account_ref, client_ref or client_account_ref covered by audit.read, or use cross_scope=true with platform-wide audit.read authority. Cross-scope searches cannot include those scope filters. Multi-value event_types, action_families, result_statuses and reason_codes accept repeated query values or a single comma-separated value. limit defaults to 100, with range 1..500; offset defaults to 0 and must be nonnegative. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_ref` | query | string | No | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `master_account_ref` | query | string | No | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_ref` | query | string | No | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `client_account_ref` | query | string | No | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `authenticated_principal` | query | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `subject` | query | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `actor` | query | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `resource_ref` | query | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `subject_ref` | query | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `actor_ref` | query | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `cross_scope` | query | boolean or "true" / "false" | No | | | `source_service` | query | string | No | minLength: 1 | | `event_types` | query | string or string[] | No | | | `action_families` | query | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other" or "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[] | No | | | `result_statuses` | query | "succeeded" / "failed" / "denied" / "rejected" / "cancelled" or "succeeded" / "failed" / "denied" / "rejected" / "cancelled"[] | No | | | `reason_codes` | query | string or string[] | No | | | `occurred_from_utc` | query | string or string | Yes | | | `occurred_to_utc` | query | string or string | Yes | | | `limit` | query | integer | No | minimum: 1; maximum: 500; default: `100` | | `offset` | query | integer | No | minimum: 0; maximum: 9007199254740991; default: `0` | ## Request **Request URL — GET** ```http GET /user-action-audit-entries/search ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "action_family": "tenant_governance", "approval_state": "not_required", "attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "kind": "user", "ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "identity_source": "platform-managed", "initiated_by": null, "subject": { "kind": "user", "ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "changed_fields": null, "correlation_id": null, "detail": null, "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "event_type": "tenant.enterprise.admitted.v1", "human_actor_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "occurred_at_utc": "2026-05-01T10:00:00Z", "reason_code": null, "reason_text": null, "recorded_at_utc": "2026-05-01T10:00:00Z", "request_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource_type": "enterprise", "result_status": "succeeded", "scope": { "client_account_ref": null, "client_ref": null, "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "master_account_ref": null, "platform_operator_ref": null }, "service_account_id": null, "source_service": "edge-service", "trace_id": null } ], "limit": 100, "offset": 0, "total": 1 } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `limit` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `offset` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `total` | integer | Yes | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_family` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other" or null | Yes | | | `approval_state` | "not_required" / "pending" / "approved" / "rejected" / "cancelled" / "expired" or null | Yes | | | `attribution` | object | Yes | No additional fields | | `changed_fields` | object[] or null | Yes | | | `correlation_id` | string or null | Yes | | | `detail` | object or null | Yes | | | `event_id` | string or null | Yes | | | `event_type` | string | Yes | pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` | | `human_actor_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `occurred_at_utc` | string or string | Yes | | | `reason_code` | string or null | Yes | | | `reason_text` | string or null | Yes | | | `recorded_at_utc` | string or string | Yes | | | `request_id` | string or null | Yes | | | `resource_ref` | string or null | Yes | | | `resource_type` | string or null | Yes | | | `result_status` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled" | Yes | | | `scope` | object | Yes | No additional fields | | `service_account_id` | string or null | Yes | | | `source_service` | string | Yes | minLength: 1 | | `trace_id` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.action_family At least one alternative must match. ###### application/json body.items item.action_family: alternative 1 Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ###### application/json body.items item.action_family: alternative 2 Type: `null`. ###### application/json body.items item.approval_state At least one alternative must match. ###### application/json body.items item.approval_state: alternative 1 Type: `"not_required" / "pending" / "approved" / "rejected" / "cancelled" / "expired"`. ###### application/json body.items item.approval_state: alternative 2 Type: `null`. ###### application/json body.items item.attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.attribution.actor At least one alternative must match. ###### application/json body.items item.attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.attribution.approved_by At least one alternative must match. ###### application/json body.items item.attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.attribution.initiated_by At least one alternative must match. ###### application/json body.items item.attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.attribution.subject At least one alternative must match. ###### application/json body.items item.attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "user" / "service" / "system" | Yes | | | `ref` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item.changed_fields At least one alternative must match. ###### application/json body.items item.changed_fields: alternative 1 Type: `object[]`. ###### application/json body.items item.changed_fields: alternative 1 item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `name` | string | Yes | minLength: 1 | | `after` | unspecified | Yes | | | `before` | unspecified | Yes | | Additional fields are not accepted. ###### application/json body.items item.changed_fields: alternative 2 Type: `null`. ###### application/json body.items item.correlation_id At least one alternative must match. ###### application/json body.items item.correlation_id: alternative 1 Type: `string`. ###### application/json body.items item.correlation_id: alternative 2 Type: `null`. ###### application/json body.items item.detail At least one alternative must match. ###### application/json body.items item.detail: alternative 1 Type: `object`. ###### application/json body.items item.detail: alternative 2 Type: `null`. ###### application/json body.items item.event_id At least one alternative must match. ###### application/json body.items item.event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.event_id: alternative 2 Type: `null`. ###### application/json body.items item.human_actor_id At least one alternative must match. ###### application/json body.items item.human_actor_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.human_actor_id: alternative 2 Type: `null`. ###### application/json body.items item.occurred_at_utc At least one alternative must match. ###### application/json body.items item.occurred_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.occurred_at_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.reason_code At least one alternative must match. ###### application/json body.items item.reason_code: alternative 1 Type: `string`. ###### application/json body.items item.reason_code: alternative 2 Type: `null`. ###### application/json body.items item.reason_text At least one alternative must match. ###### application/json body.items item.reason_text: alternative 1 Type: `string`. ###### application/json body.items item.reason_text: alternative 2 Type: `null`. ###### application/json body.items item.recorded_at_utc At least one alternative must match. ###### application/json body.items item.recorded_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.recorded_at_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.request_id At least one alternative must match. ###### application/json body.items item.request_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.request_id: alternative 2 Type: `null`. ###### application/json body.items item.resource_ref At least one alternative must match. ###### application/json body.items item.resource_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients|master-accounts|client-accounts|users|service-accounts|platform-principals|identity-providers|roles|role-assignments|system-principals|commercial-agreements|policy-rules|operations|compliance-assessments|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.resource_ref: alternative 2 Type: `null`. ###### application/json body.items item.resource_type At least one alternative must match. ###### application/json body.items item.resource_type: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.resource_type: alternative 2 Type: `null`. ###### application/json body.items item.scope | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `client_account_ref` | string or null | Yes | | | `client_ref` | string or null | Yes | | | `enterprise_ref` | string or null | Yes | | | `master_account_ref` | string or null | Yes | | | `platform_operator_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.scope.client_account_ref At least one alternative must match. ###### application/json body.items item.scope.client_account_ref: alternative 1 Type: `string`. pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope.client_account_ref: alternative 2 Type: `null`. ###### application/json body.items item.scope.client_ref At least one alternative must match. ###### application/json body.items item.scope.client_ref: alternative 1 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope.client_ref: alternative 2 Type: `null`. ###### application/json body.items item.scope.enterprise_ref At least one alternative must match. ###### application/json body.items item.scope.enterprise_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope.enterprise_ref: alternative 2 Type: `null`. ###### application/json body.items item.scope.master_account_ref At least one alternative must match. ###### application/json body.items item.scope.master_account_ref: alternative 1 Type: `string`. pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope.master_account_ref: alternative 2 Type: `null`. ###### application/json body.items item.scope.platform_operator_ref At least one alternative must match. ###### application/json body.items item.scope.platform_operator_ref: alternative 1 Type: `string`. pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope.platform_operator_ref: alternative 2 Type: `null`. ###### application/json body.items item.service_account_id At least one alternative must match. ###### application/json body.items item.service_account_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.service_account_id: alternative 2 Type: `null`. ###### application/json body.items item.trace_id At least one alternative must match. ###### application/json body.items item.trace_id: alternative 1 Type: `string`. ###### application/json body.items item.trace_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create audit export Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-exports/user-action-audit-exports-create **Authentication:** Send `Authorization: Bearer `. Creates a scope-bound audit export with format csv or json. The json format streams newline-delimited JSON. Inspect status and download_path for readiness; storage_location is always null and clients download through the relative gateway path. Export list, get and download are limited to the creating actor and current audit.read coverage of the stored requested_scope. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `requested_scope` | object or object or object or object or object | Yes | | Additional fields are not accepted. #### Request body schema.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_families` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[] | No | | | `actor` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `authenticated_principal` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `event_types` | string[] | No | | | `occurred_from_utc` | string or string | Yes | | | `occurred_to_utc` | string or string | Yes | | | `reason_codes` | string[] | No | | | `resource_ref` | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `result_statuses` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled"[] | No | | | `subject` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.filter_criteria.action_families Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[]`. ###### Request body schema.filter_criteria.action_families item Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ##### Request body schema.filter_criteria.event_types Type: `string[]`. ###### Request body schema.filter_criteria.event_types item Type: `string`. pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` ##### Request body schema.filter_criteria.occurred_from_utc At least one alternative must match. ###### Request body schema.filter_criteria.occurred_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### Request body schema.filter_criteria.occurred_from_utc: alternative 2 Type: `string`. format: date-time ##### Request body schema.filter_criteria.occurred_to_utc At least one alternative must match. ###### Request body schema.filter_criteria.occurred_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### Request body schema.filter_criteria.occurred_to_utc: alternative 2 Type: `string`. format: date-time ##### Request body schema.filter_criteria.reason_codes Type: `string[]`. ###### Request body schema.filter_criteria.reason_codes item Type: `string`. minLength: 1 ##### Request body schema.filter_criteria.result_statuses Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"[]`. ###### Request body schema.filter_criteria.result_statuses item Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"`. #### Request body schema.requested_scope Exactly one alternative must match. ##### Request body schema.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. **Request URL — POST** ```http POST /user-action-audit-exports ``` **Request Body — application/json** ```json { "format": "csv", "filter_criteria": { "occurred_from_utc": "2026-04-01T00:00:00Z", "occurred_to_utc": "2026-04-30T23:59:59Z" }, "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "format": "csv", "byte_size": 8192, "download_path": "/user-action-audit-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "occurred_from_utc": "2026-04-01T00:00:00Z", "occurred_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 42, "status": "ready", "storage_location": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.byte_size At least one alternative must match. ###### application/json body.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.byte_size: alternative 2 Type: `null`. ##### application/json body.download_path At least one alternative must match. ###### application/json body.download_path: alternative 1 Type: `string`. ###### application/json body.download_path: alternative 2 Type: `null`. ##### application/json body.expires_at_utc At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.expires_at_utc: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_families` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[] | No | | | `actor` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `authenticated_principal` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `event_types` | string[] | No | | | `occurred_from_utc` | string or string | Yes | | | `occurred_to_utc` | string or string | Yes | | | `reason_codes` | string[] | No | | | `resource_ref` | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `result_statuses` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled"[] | No | | | `subject` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.filter_criteria.action_families Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[]`. ###### application/json body.filter_criteria.action_families item Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ###### application/json body.filter_criteria.event_types Type: `string[]`. ###### application/json body.filter_criteria.event_types item Type: `string`. pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` ###### application/json body.filter_criteria.occurred_from_utc At least one alternative must match. ###### application/json body.filter_criteria.occurred_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.occurred_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.occurred_to_utc At least one alternative must match. ###### application/json body.filter_criteria.occurred_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.occurred_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.reason_codes Type: `string[]`. ###### application/json body.filter_criteria.reason_codes item Type: `string`. minLength: 1 ###### application/json body.filter_criteria.result_statuses Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"[]`. ###### application/json body.filter_criteria.result_statuses item Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"`. ##### application/json body.finished_at_utc At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.finished_at_utc: alternative 2 Type: `null`. ##### application/json body.generated_at_utc At least one alternative must match. ###### application/json body.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.generated_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.requested_scope Exactly one alternative must match. ###### application/json body.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### application/json body.row_count At least one alternative must match. ###### application/json body.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.row_count: alternative 2 Type: `null`. ##### application/json body.storage_location At least one alternative must match. ###### application/json body.storage_location: alternative 1 Type: `string`. ###### application/json body.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Download audit export file Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-exports/user-action-audit-exports-download **Authentication:** Send `Authorization: Bearer `. Streams the ready export through edge. csv yields text/csv and json yields application/x-ndjson: one JSON object per line, with UTF-8 encoding. Content-Type, Content-Disposition and optional Content-Length are forwarded from the download service. Unavailable, expired or hidden exports return 404; an unsuccessful upstream response other than 404 returns 502. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `export_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /user-action-audit-exports/{export_id}/download ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/x-ndjson`. #### application/x-ndjson body UTF-8 newline-delimited JSON, one ActionAuditEntry object per line. Type: `string`. Content type: `text/csv`. #### text/csv body UTF-8 CSV file with a header row. Type: `string`. | Response header | Type | Description | | --- | --- | --- | | `Content-Disposition` | string | | | `Content-Length` | string | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get audit export Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-exports/user-action-audit-exports-get **Authentication:** Send `Authorization: Bearer `. Reads an export belonging to the current actor and covered by audit.read. A hidden or missing export returns 404. download_path is null until ready and after expiry. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `export_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /user-action-audit-exports/{export_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "format": "csv", "byte_size": 8192, "download_path": "/user-action-audit-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "occurred_from_utc": "2026-04-01T00:00:00Z", "occurred_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 42, "status": "ready", "storage_location": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.byte_size At least one alternative must match. ###### application/json body.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.byte_size: alternative 2 Type: `null`. ##### application/json body.download_path At least one alternative must match. ###### application/json body.download_path: alternative 1 Type: `string`. ###### application/json body.download_path: alternative 2 Type: `null`. ##### application/json body.expires_at_utc At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.expires_at_utc: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_families` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[] | No | | | `actor` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `authenticated_principal` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `event_types` | string[] | No | | | `occurred_from_utc` | string or string | Yes | | | `occurred_to_utc` | string or string | Yes | | | `reason_codes` | string[] | No | | | `resource_ref` | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `result_statuses` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled"[] | No | | | `subject` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.filter_criteria.action_families Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[]`. ###### application/json body.filter_criteria.action_families item Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ###### application/json body.filter_criteria.event_types Type: `string[]`. ###### application/json body.filter_criteria.event_types item Type: `string`. pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` ###### application/json body.filter_criteria.occurred_from_utc At least one alternative must match. ###### application/json body.filter_criteria.occurred_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.occurred_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.occurred_to_utc At least one alternative must match. ###### application/json body.filter_criteria.occurred_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.filter_criteria.occurred_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.filter_criteria.reason_codes Type: `string[]`. ###### application/json body.filter_criteria.reason_codes item Type: `string`. minLength: 1 ###### application/json body.filter_criteria.result_statuses Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"[]`. ###### application/json body.filter_criteria.result_statuses item Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"`. ##### application/json body.finished_at_utc At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.finished_at_utc: alternative 2 Type: `null`. ##### application/json body.generated_at_utc At least one alternative must match. ###### application/json body.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.generated_at_utc: alternative 2 Type: `string`. format: date-time ##### application/json body.requested_scope Exactly one alternative must match. ###### application/json body.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### application/json body.row_count At least one alternative must match. ###### application/json body.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.row_count: alternative 2 Type: `null`. ##### application/json body.storage_location At least one alternative must match. ###### application/json body.storage_location: alternative 1 Type: `string`. ###### application/json body.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List audit exports Source: https://business-api-docs.youhodler.com/api/reference/user-action-audit-exports/user-action-audit-exports-list **Authentication:** Send `Authorization: Bearer `. Lists exports created by the current actor that remain covered by audit.read, with an optional status filter. limit defaults to 50 and is bounded 1..200. The response is an items array without cursor pagination. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `status` | query | "queued" / "running" / "ready" / "failed" / "expired" | No | | | `limit` | query | integer | No | minimum: 1; maximum: 200; default: `50` | ## Request **Request URL — GET** ```http GET /user-action-audit-exports ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "format": "csv", "byte_size": 8192, "download_path": "/user-action-audit-exports/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b/download", "expires_at_utc": "2026-05-02T10:00:00Z", "failure_reason": null, "filter_criteria": { "occurred_from_utc": "2026-04-01T00:00:00Z", "occurred_to_utc": "2026-04-30T23:59:59Z" }, "finished_at_utc": "2026-05-01T10:00:00Z", "generated_at_utc": "2026-05-01T10:00:00Z", "generated_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "requested_scope": { "kind": "enterprise", "ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "row_count": 42, "status": "ready", "storage_location": null } ] } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `format` | "csv" / "json" | Yes | | | `byte_size` | integer or null | Yes | | | `download_path` | string or null | Yes | | | `expires_at_utc` | string or string or null | Yes | | | `failure_reason` | string or null | Yes | | | `filter_criteria` | object | Yes | No additional fields | | `finished_at_utc` | string or string or null | Yes | | | `generated_at_utc` | string or string | Yes | | | `generated_by` | string | Yes | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `requested_scope` | object or object or object or object or object | Yes | | | `row_count` | integer or null | Yes | | | `status` | "queued" / "running" / "ready" / "failed" / "expired" | Yes | | | `storage_location` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.byte_size At least one alternative must match. ###### application/json body.items item.byte_size: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.byte_size: alternative 2 Type: `null`. ###### application/json body.items item.download_path At least one alternative must match. ###### application/json body.items item.download_path: alternative 1 Type: `string`. ###### application/json body.items item.download_path: alternative 2 Type: `null`. ###### application/json body.items item.expires_at_utc At least one alternative must match. ###### application/json body.items item.expires_at_utc: alternative 1 At least one alternative must match. ###### application/json body.items item.expires_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.expires_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.expires_at_utc: alternative 2 Type: `null`. ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.filter_criteria | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `action_families` | "human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[] | No | | | `actor` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `authenticated_principal` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `event_types` | string[] | No | | | `occurred_from_utc` | string or string | Yes | | | `occurred_to_utc` | string or string | Yes | | | `reason_codes` | string[] | No | | | `resource_ref` | string | No | pattern: `^(enterprises\|platform-operators\|clients\|master-accounts\|client-accounts\|users\|service-accounts\|platform-principals\|identity-providers\|roles\|role-assignments\|system-principals\|commercial-agreements\|policy-rules\|operations\|compliance-assessments\|webhook-subscriptions)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `result_statuses` | "succeeded" / "failed" / "denied" / "rejected" / "cancelled"[] | No | | | `subject` | string | No | pattern: `^(users\|service-accounts\|platform-principals\|identity-providers)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.filter_criteria.action_families Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"[]`. ###### application/json body.items item.filter_criteria.action_families item Type: `"human_actor_lifecycle" / "role_assignment" / "policy_change" / "service_account_governance" / "webhook_subscription_governance" / "financial_operation_audit" / "tenant_governance" / "approval_decision" / "authentication" / "other"`. ###### application/json body.items item.filter_criteria.event_types Type: `string[]`. ###### application/json body.items item.filter_criteria.event_types item Type: `string`. pattern: `^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){2,3}$` ###### application/json body.items item.filter_criteria.occurred_from_utc At least one alternative must match. ###### application/json body.items item.filter_criteria.occurred_from_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.filter_criteria.occurred_from_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.filter_criteria.occurred_to_utc At least one alternative must match. ###### application/json body.items item.filter_criteria.occurred_to_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.filter_criteria.occurred_to_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.filter_criteria.reason_codes Type: `string[]`. ###### application/json body.items item.filter_criteria.reason_codes item Type: `string`. minLength: 1 ###### application/json body.items item.filter_criteria.result_statuses Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"[]`. ###### application/json body.items item.filter_criteria.result_statuses item Type: `"succeeded" / "failed" / "denied" / "rejected" / "cancelled"`. ###### application/json body.items item.finished_at_utc At least one alternative must match. ###### application/json body.items item.finished_at_utc: alternative 1 At least one alternative must match. ###### application/json body.items item.finished_at_utc: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.finished_at_utc: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.finished_at_utc: alternative 2 Type: `null`. ###### application/json body.items item.generated_at_utc At least one alternative must match. ###### application/json body.items item.generated_at_utc: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.generated_at_utc: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.requested_scope Exactly one alternative must match. ###### application/json body.items item.requested_scope: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "enterprise" | Yes | | | `ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "master_account" | Yes | | | `ref` | string | Yes | pattern: `^(master-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 3 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client" | Yes | | | `ref` | string | Yes | pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 4 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "client_account" | Yes | | | `ref` | string | Yes | pattern: `^(client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.requested_scope: alternative 5 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `kind` | "platform_operator" | Yes | | | `ref` | string | Yes | pattern: `^(platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ###### application/json body.items item.row_count At least one alternative must match. ###### application/json body.items item.row_count: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.row_count: alternative 2 Type: `null`. ###### application/json body.items item.storage_location At least one alternative must match. ###### application/json body.items item.storage_location: alternative 1 Type: `string`. ###### application/json body.items item.storage_location: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Accept user invitation Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-accept **Authentication:** This endpoint does not require a bearer token. Public hosted-accept endpoint: no Bearer token is required. Submit `invitation_id` and the one-time `challenge_ref` from the magic-link email. Accept activates the reserved user and its already-granted role and returns an accepted invitation plus a short-lived `session_token`. This credential response is never cached or replayed, even with Idempotency-Key, and the challenge is single-use: repeating an accept that already succeeded, for example after the response was lost, returns `409 state_conflict` with `data.reason=invitation_already_terminal` instead of a second session. The account is already active, so the user signs in normally instead. That token is a federated session assertion: exchange it as `subject_token` at `POST /oauth/token` with `grant_type=urn:ietf:params:oauth:grant-type:token-exchange` before calling protected API routes. Production returns `409 state_conflict` with `data.reason=not_supported`; enterprise_idp first access uses `POST /users/{user_id}/activate-federated` instead. ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `challenge_ref` | string | Yes | minLength: 1; maxLength: 256 | | `invitation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. **Request URL — POST** ```http POST /user-invitations/accept ``` **Request Body — application/json** ```json { "challenge_ref": "challenge-ref-0001", "invitation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "actor_scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invitation": { "accepted_at": "2026-05-01T10:00:00Z", "cancelled_at": null, "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "accepted", "updated_at": "2026-05-01T10:00:00Z" }, "session_expires_at": "2026-05-01T11:00:00Z", "session_token": "sess_eyJhbGciOiJSUzI1NiJ9.payload.sig" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor_scope_ref` | string or string | Yes | | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `invitation` | object | Yes | No additional fields | | `session_expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `session_token` | string | Yes | minLength: 1 | Additional fields are not accepted. ##### application/json body.actor_scope_ref At least one alternative must match. ###### application/json body.actor_scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.actor_scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.invitation | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.invitation.accepted_at At least one alternative must match. ###### application/json body.invitation.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.invitation.accepted_at: alternative 2 Type: `null`. ###### application/json body.invitation.cancelled_at At least one alternative must match. ###### application/json body.invitation.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.invitation.cancelled_at: alternative 2 Type: `null`. ###### application/json body.invitation.scope At least one alternative must match. ###### application/json body.invitation.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.invitation.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Response header | Type | Description | | --- | --- | --- | | `Cache-Control` | "no-store" | | ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 404 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 409 schema Content type: `application/json`. See [response 404 schema](#response-404-schema). ### Response 500 schema Content type: `application/json`. See [response 404 schema](#response-404-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Cancel user invitation Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-cancel **Authentication:** Send `Authorization: Bearer `. Cancels a pending invitation. Requires `If-Match` for optimistic concurrency. Send `invitation_id` and optional `reason` in the body. Use the individual invitation GET response `ETag` header for `If-Match`; the body `etag` is the raw storage version. The list response header is an aggregate tag and cannot cancel an individual invitation. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `invitation_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. maxLength: 500 ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /user-invitations/cancel ``` **Request Body — application/json** ```json { "invitation_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "reason": "User withdrew their request" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "accepted_at": null, "cancelled_at": "2026-05-01T10:00:00Z", "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "cancelled", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.accepted_at At least one alternative must match. ###### application/json body.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.accepted_at: alternative 2 Type: `null`. ##### application/json body.cancelled_at At least one alternative must match. ###### application/json body.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.cancelled_at: alternative 2 Type: `null`. ##### application/json body.scope At least one alternative must match. ###### application/json body.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create user invitation Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-create **Authentication:** Send `Authorization: Bearer `. Reserves a pending user and grants its role immediately; the assignment becomes usable when the actor is activated. The inviter must belong to the owning enterprise and be allowed to grant the selected role over the scope subtree. An existing pending invitation for the same scope and email is refreshed and returns status `resent`. When no pending invitation exists and that email already belongs to a user under the selected scope, creation returns `409 state_conflict` with `data.reason=email_already_used_under_parent`; it does not add an invitation to an existing active user. Hosted first access sends the one-time challenge only in a magic-link email; public invitation responses never include challenge_ref. `enterprise_idp` first access creates no hosted challenge or email and completes through `POST /users/{user_id}/activate-federated`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `email` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. minLength: 1; maxLength: 255 ##### Request body schema.display_name: alternative 2 Type: `null`. #### Request body schema.scope At least one alternative must match. ##### Request body schema.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` **Request URL — POST** ```http POST /user-invitations ``` **Request Body — application/json** ```json { "display_name": "Jane Doe", "email": "jane.doe@acme.example", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "invitation": { "accepted_at": null, "cancelled_at": null, "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" }, "status": "pending" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `invitation` | object | Yes | No additional fields | | `status` | "pending" / "resent" | Yes | | Additional fields are not accepted. ##### application/json body.invitation | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.invitation.accepted_at At least one alternative must match. ###### application/json body.invitation.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.invitation.accepted_at: alternative 2 Type: `null`. ###### application/json body.invitation.cancelled_at At least one alternative must match. ###### application/json body.invitation.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.invitation.cancelled_at: alternative 2 Type: `null`. ###### application/json body.invitation.scope At least one alternative must match. ###### application/json body.invitation.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.invitation.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get user invitation Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `invitation_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /user-invitations/{invitation_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "accepted_at": null, "cancelled_at": null, "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.accepted_at At least one alternative must match. ###### application/json body.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.accepted_at: alternative 2 Type: `null`. ##### application/json body.cancelled_at At least one alternative must match. ###### application/json body.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.cancelled_at: alternative 2 Type: `null`. ##### application/json body.scope At least one alternative must match. ###### application/json body.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List user invitations Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-list **Authentication:** Send `Authorization: Bearer `. Lists user invitations under an enterprise scope. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `enterprise_ref` | query | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "pending" / "accepting" / "accepted" / "expired" / "cancelled" or "pending" / "accepting" / "accepted" / "expired" / "cancelled"[] | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /user-invitations ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "accepted_at": null, "cancelled_at": null, "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.accepted_at At least one alternative must match. ###### application/json body.items item.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.accepted_at: alternative 2 Type: `null`. ###### application/json body.items item.cancelled_at At least one alternative must match. ###### application/json body.items item.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.cancelled_at: alternative 2 Type: `null`. ###### application/json body.items item.scope At least one alternative must match. ###### application/json body.items item.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Resend user invitation Source: https://business-api-docs.youhodler.com/api/reference/user-invitations/user-invitations-resend **Authentication:** Send `Authorization: Bearer `. Resends first access for the invitation identified by the invited user (`user_ref`). Hosted invitations receive a refreshed magic-link email; an enterprise_idp invitation triggers its identity command instead and carries no hosted challenge. The role and scope remain unchanged. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `user_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. **Request URL — POST** ```http POST /user-invitations/resend ``` **Request Body — application/json** ```json { "user_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "accepted_at": null, "cancelled_at": null, "created_at": "2026-05-01T10:00:00Z", "email_constraint": "jane.doe@acme.example", "enterprise_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "expires_at": "2026-05-02T10:00:00Z", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "invited_by": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "pending_human_actor_ref": "users/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "role": "roles/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "scope": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "pending", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted_at` | string or null | Yes | | | `cancelled_at` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `email_constraint` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`; maxLength: 254 | | `enterprise_ref` | string | Yes | pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `etag` | string | Yes | minLength: 1 | | `expires_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invited_by` | string | Yes | pattern: `^(users\|service-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `pending_human_actor_ref` | string | Yes | pattern: `^(users)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `role` | string | Yes | pattern: `^(roles)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `scope` | string or string | Yes | | | `status` | "pending" / "accepting" / "accepted" / "expired" / "cancelled" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.accepted_at At least one alternative must match. ###### application/json body.accepted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.accepted_at: alternative 2 Type: `null`. ##### application/json body.cancelled_at At least one alternative must match. ###### application/json body.cancelled_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.cancelled_at: alternative 2 Type: `null`. ##### application/json body.scope At least one alternative must match. ###### application/json body.scope: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Re-send access to a recovering user Source: https://business-api-docs.youhodler.com/api/reference/users/users-access-resend **Authentication:** Send `Authorization: Bearer `. Emits the recovery command again for a user in `pending_activation` with a `recovery_id`. Requires `users.recovery_initiate`; one per user per five minutes (`429 resend_rate_limited`). ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /users/{user_id}/access-resend ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **429 The request was rate limited** The request was rate limited; retry according to the returned backoff information. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 429 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Activate a user and bind their federated identity Source: https://business-api-docs.youhodler.com/api/reference/users/users-activate-federated **Authentication:** Send `Authorization: Bearer `. Called by an enterprise’s own identity backend (service principal, `private_key_jwt`) once the user finished first access or a recovery. The caller’s IdP row is taken from its verified token; `recovery_id` is forwarded unchanged. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer_uri` | string | Yes | format: uri | | `recovery_id` | string or null | No | | Additional fields are not accepted. #### Request body schema.recovery_id At least one alternative must match. ##### Request body schema.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ##### Request body schema.recovery_id: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/activate-federated ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `human_actor_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `invitation_id` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.invitation_id At least one alternative must match. ###### application/json body.invitation_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.invitation_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Create user Source: https://business-api-docs.youhodler.com/api/reference/users/users-create **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `email` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. ##### Request body schema.display_name: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users ``` **Request Body — application/json** ```json { "display_name": "Jane Doe", "email": "jane.doe@acme.example", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get user](/api/reference/users/users-get) — Read the created user - `POST` [Grant role assignment](/api/reference/role-assignments/role-assignments-create) — Assign roles to the new user - `GET` [List identity providers](/api/reference/identity-providers/identity-providers-list) — Configure identity federation if needed --- # Deactivate user Source: https://business-api-docs.youhodler.com/api/reference/users/users-deactivate **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/deactivate ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "deactivated", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend user](/api/reference/users/users-suspend) — Suspend before deactivating - `GET` [Get user](/api/reference/users/users-get) — Read current status --- # Bind a user to a federated identity Source: https://business-api-docs.youhodler.com/api/reference/users/users-federation-binding **Authentication:** Send `Authorization: Bearer `. Binds the user to the supplied issuer and external subject and returns the updated user. This route is closed for users of an enterprise whose first-access method is `enterprise_idp`: use `POST /users/{user_id}/activate-federated` for that path. Such requests return `409 state_conflict` with `data.reason = route_closed_for_enterprise_idp`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer_uri` | string | Yes | format: uri | Additional fields are not accepted. **Request URL — POST** ```http POST /users/{user_id}/federation-binding ``` **Request Body — application/json** ```json { "external_subject": "acme-user-123", "issuer_uri": "https://identity.acme.example" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": { "external_subject": "acme-user-123", "issuer": "https://identity.acme.example" }, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "federated", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Report a federation conflict Source: https://business-api-docs.youhodler.com/api/reference/users/users-federation-conflict **Authentication:** Send `Authorization: Bearer `. The enterprise identity backend reports an identity it will not overwrite. Shown on the enterprise card; only platform staff clear it. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string or null | No | | | `reason` | "email_taken_by_other_actor" / "email_taken_by_unbound_identity" / "activation_refused" | Yes | | Additional fields are not accepted. #### Request body schema.code At least one alternative must match. ##### Request body schema.code: alternative 1 Type: `string`. maxLength: 128 ##### Request body schema.code: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/federation-conflict ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Clear a federation conflict Source: https://business-api-docs.youhodler.com/api/reference/users/users-federation-conflict-delete **Authentication:** Send `Authorization: Bearer `. Clears a resolved conflict. Requires a platform-operator binding and `users.manage` on an `enterprise_wildcard` grant anchored at `platform-operators/`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | ## Request **Request URL — DELETE** ```http DELETE /users/{user_id}/federation-conflict ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get user Source: https://business-api-docs.youhodler.com/api/reference/users/users-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /users/{user_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `PATCH` [Update user](/api/reference/users/users-update) — Update user metadata - `POST` [Suspend user](/api/reference/users/users-suspend) — Suspend the user - `GET` [List role assignments](/api/reference/role-assignments/role-assignments-list) — View roles assigned to this user --- # Grant hosted sign-in access to platform staff Source: https://business-api-docs.youhodler.com/api/reference/users/users-hosted-access **Authentication:** Send `Authorization: Bearer `. Provisions hosted sign-in access for an existing user parented to a platform operator. The user must have an email address; the workspace is derived from the stored user and is not a request field. Send no request body. Available on development and sandbox deployments; production returns `409 state_conflict` with `data.reason = not_supported` because staff use corporate SSO there. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /users/{user_id}/hosted-access ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "subject_id": "hosted-staff-123" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `subject_id` | string | Yes | minLength: 1 | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List users Source: https://business-api-docs.youhodler.com/api/reference/users/users-list **Authentication:** Send `Authorization: Bearer `. Lists users directly under `scope_ref`. With `include_descendants=true`, `scope_ref` must identify an enterprise and the response includes users of that enterprise and its clients in one page sequence. Subtree mode requires `users.read` over the subtree and does not apply the `status` or `identity_source` filters; those filters apply only to the direct-scope listing. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" or "active" / "suspended" / "deactivated" / "pending_activation" / "invited"[] | No | | | `identity_source` | query | "platform-managed" / "federated" or "platform-managed" / "federated"[] | No | | | `include_descendants` | query | "true" / "false" | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /users ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.access_resend_event_id At least one alternative must match. ###### application/json body.items item.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.access_resend_event_id: alternative 2 Type: `null`. ###### application/json body.items item.display_name At least one alternative must match. ###### application/json body.items item.display_name: alternative 1 Type: `string`. ###### application/json body.items item.display_name: alternative 2 Type: `null`. ###### application/json body.items item.email At least one alternative must match. ###### application/json body.items item.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.items item.email: alternative 2 Type: `null`. ###### application/json body.items item.email_changed_at At least one alternative must match. ###### application/json body.items item.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.email_changed_at: alternative 2 Type: `null`. ###### application/json body.items item.federation At least one alternative must match. ###### application/json body.items item.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.federation: alternative 2 Type: `null`. ###### application/json body.items item.federation_conflict At least one alternative must match. ###### application/json body.items item.federation_conflict: alternative 1 Type: `string`. ###### application/json body.items item.federation_conflict: alternative 2 Type: `null`. ###### application/json body.items item.last_suspended_at At least one alternative must match. ###### application/json body.items item.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.last_suspended_at: alternative 2 Type: `null`. ###### application/json body.items item.previous_email At least one alternative must match. ###### application/json body.items item.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.items item.previous_email: alternative 2 Type: `null`. ###### application/json body.items item.recovered_at At least one alternative must match. ###### application/json body.items item.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.recovered_at: alternative 2 Type: `null`. ###### application/json body.items item.recovery_id At least one alternative must match. ###### application/json body.items item.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.recovery_id: alternative 2 Type: `null`. ###### application/json body.items item.recovery_request At least one alternative must match. ###### application/json body.items item.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.items item.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.items item.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.items item.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.items item.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.items item.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.items item.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.items item.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.items item.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.items item.recovery_request: alternative 2 Type: `null`. ###### application/json body.items item.recovery_requested_at At least one alternative must match. ###### application/json body.items item.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.recovery_requested_at: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create user](/api/reference/users/users-create) — Create a new user - `GET` [Get user](/api/reference/users/users-get) — Fetch a single user by ID --- # Reactivate user Source: https://business-api-docs.youhodler.com/api/reference/users/users-reactivate **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/reactivate ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Suspend user](/api/reference/users/users-suspend) — Suspend again if needed - `GET` [Get user](/api/reference/users/users-get) — Read current status --- # Open an access recovery Source: https://business-api-docs.youhodler.com/api/reference/users/users-recovery **Authentication:** Send `Authorization: Bearer `. Platform support, after verifying the person out of band, opens an `identity.recovery` request; a compliance member approves it. Requires `users.recovery_initiate`. `expected_email` is the address support verified; `409 recovery_email_changed` when the user’s email is no longer that one. `400 recovery_verification_required` without `verification_ref`; `409 recovery_not_applicable`, `recovery_already_pending`, `recovery_new_email_taken`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `expected_email` | string | Yes | format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` | | `new_email` | string or null | No | | | `verification_method` | "video_call" / "kyb_representative" / "document_check" / "other" | Yes | | | `verification_ref` | string | No | minLength: 1; maxLength: 512 | Additional fields are not accepted. #### Request body schema.new_email At least one alternative must match. ##### Request body schema.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ##### Request body schema.new_email: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/recovery ``` ## Responses **201 Resource created successfully** Resource created successfully. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_ref` | string or null | Yes | | | `recovery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.approval_ref: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Flag a user for access recovery Source: https://business-api-docs.youhodler.com/api/reference/users/users-recovery-request **Authentication:** Send `Authorization: Bearer `. The enterprise asks the platform to recover a user’s access. Changes nothing else and creates no approval. On an enterprise that runs its own identity stack only an enterprise-bound caller may: platform staff get `403 platform_cannot_manage_federated_actor`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /users/{user_id}/recovery-request ``` ## Responses **200 Operation succeeded** Operation succeeded. **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `recovery_requested_at` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Suspend user Source: https://business-api-docs.youhodler.com/api/reference/users/users-suspend **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Optional request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `reason` | string or null | No | | Additional fields are not accepted. #### Request body schema.reason At least one alternative must match. ##### Request body schema.reason: alternative 1 Type: `string`. ##### Request body schema.reason: alternative 2 Type: `null`. **Request URL — POST** ```http POST /users/{user_id}/suspend ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "last_suspended_at": "2026-05-01T10:00:00Z", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "suspended", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Reactivate user](/api/reference/users/users-reactivate) — Reactivate after suspension - `GET` [Get user](/api/reference/users/users-get) — Read current status --- # Update user Source: https://business-api-docs.youhodler.com/api/reference/users/users-update **Authentication:** Send `Authorization: Bearer `. Patch a user. Requires `If-Match`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `user_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `display_name` | string or null | No | | | `email` | string or null | No | | Additional fields are not accepted. #### Request body schema.display_name At least one alternative must match. ##### Request body schema.display_name: alternative 1 Type: `string`. ##### Request body schema.display_name: alternative 2 Type: `null`. #### Request body schema.email At least one alternative must match. ##### Request body schema.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ##### Request body schema.email: alternative 2 Type: `null`. **Request URL — PATCH** ```http PATCH /users/{user_id} ``` **Request Body — application/json** ```json { "display_name": "Jane Doe Updated", "email": "jane.new@acme.example" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "display_name": "Jane Doe", "email": "jane.doe@acme.example", "etag": "00a01034334947d85285ad894a952245ded22dac3b2916b827a159f8f4233ef3", "federation": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "identity_source": "platform-managed", "resource": "human_actor", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00.000Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `access_resend_event_id` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `display_name` | string or null | No | | | `email` | string or null | No | | | `email_changed_at` | string or null | No | | | `etag` | string | Yes | minLength: 1 | | `federation` | object or null | No | | | `federation_conflict` | string or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `last_suspended_at` | string or null | No | | | `previous_email` | string or null | No | | | `recovered_at` | string or null | No | | | `recovery_id` | string or null | No | | | `recovery_request` | object or null | No | | | `recovery_requested_at` | string or null | No | | | `resource` | "human_actor" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|clients\|platform-operators)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "suspended" / "deactivated" / "pending_activation" / "invited" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.access_resend_event_id At least one alternative must match. ###### application/json body.access_resend_event_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.access_resend_event_id: alternative 2 Type: `null`. ##### application/json body.display_name At least one alternative must match. ###### application/json body.display_name: alternative 1 Type: `string`. ###### application/json body.display_name: alternative 2 Type: `null`. ##### application/json body.email At least one alternative must match. ###### application/json body.email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.email: alternative 2 Type: `null`. ##### application/json body.email_changed_at At least one alternative must match. ###### application/json body.email_changed_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.email_changed_at: alternative 2 Type: `null`. ##### application/json body.federation At least one alternative must match. ###### application/json body.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.federation: alternative 2 Type: `null`. ##### application/json body.federation_conflict At least one alternative must match. ###### application/json body.federation_conflict: alternative 1 Type: `string`. ###### application/json body.federation_conflict: alternative 2 Type: `null`. ##### application/json body.last_suspended_at At least one alternative must match. ###### application/json body.last_suspended_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_suspended_at: alternative 2 Type: `null`. ##### application/json body.previous_email At least one alternative must match. ###### application/json body.previous_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.previous_email: alternative 2 Type: `null`. ##### application/json body.recovered_at At least one alternative must match. ###### application/json body.recovered_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovered_at: alternative 2 Type: `null`. ##### application/json body.recovery_id At least one alternative must match. ###### application/json body.recovery_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_id: alternative 2 Type: `null`. ##### application/json body.recovery_request At least one alternative must match. ###### application/json body.recovery_request: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string or null | Yes | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `new_email` | string or null | Yes | | | `reason` | string or null | Yes | | | `request_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `state` | "awaiting" / "executed" / "completed" / "failed" / "rejected" / "expired" / "cancelled" / "aborted" / "superseded" | Yes | | Additional fields are not accepted. ###### application/json body.recovery_request: alternative 1.approval_id At least one alternative must match. ###### application/json body.recovery_request: alternative 1.approval_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.recovery_request: alternative 1.approval_id: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.new_email At least one alternative must match. ###### application/json body.recovery_request: alternative 1.new_email: alternative 1 Type: `string`. format: email; pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$` ###### application/json body.recovery_request: alternative 1.new_email: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 1.reason At least one alternative must match. ###### application/json body.recovery_request: alternative 1.reason: alternative 1 Type: `string`. ###### application/json body.recovery_request: alternative 1.reason: alternative 2 Type: `null`. ###### application/json body.recovery_request: alternative 2 Type: `null`. ##### application/json body.recovery_requested_at At least one alternative must match. ###### application/json body.recovery_requested_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.recovery_requested_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get user](/api/reference/users/users-get) — Read current state before updating --- # Create webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-create **Authentication:** Send `Authorization: Bearer `. Creates an active webhook subscription. If omitted, `scope_ref` is derived from the authenticated enterprise or client context; absence of both returns 400. Only enterprise and client subscription scopes are accepted. Use a public HTTPS callback URL and a non-empty signing secret. Public catalog event types and documented group wildcards are accepted; command types are refused with `event_type_not_subscribable`. Identity event filters additionally require users.read covering the whole subscription scope. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"[] | Yes | Non-empty event type filter. Use ["*"] to subscribe to all event types; otherwise provide exact catalog event types or catalog-derived group wildcards such as "operations.withdrawal.*.v1" and "operations.*.v1". minItems: 1 | | `scope_ref` | string or string | No | Webhook subscriptions can be scoped only to an enterprise or client. | | `secret` | string | Yes | minLength: 1 | | `url` | string | Yes | HTTPS callback URL on a public host. Plain http, private and internal addresses are refused with callback_url_not_allowed. format: uri | Additional fields are not accepted. #### Request body schema.event_types Non-empty event type filter. Use ["*"] to subscribe to all event types; otherwise provide exact catalog event types or catalog-derived group wildcards such as "operations.withdrawal.*.v1" and "operations.*.v1". Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"[]`. minItems: 1 ##### Request body schema.event_types item Webhook event type filter value. Use exact catalog event types, "*" for every event, "..*.v" for a resource group, or ".*.v" for a domain group. Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"`. #### Request body schema.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ##### Request body schema.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### Request body schema.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` **Request URL — POST** ```http POST /webhook-subscriptions ``` **Request Body — application/json** ```json { "event_types": [ "operations.withdrawal.settled.v1" ], "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "secret": "wh_secret_placeholder", "url": "https://example.com/webhooks" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Delete webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-delete **Authentication:** Send `Authorization: Bearer `. Marks the subscription `deleted` and returns its resource snapshot. Deletion is terminal: later edits or lifecycle changes return 409 with reason `webhook_subscription_not_active` when the supplied If-Match is current. Requires the current If-Match entity tag. Platform-managed subscriptions cannot be changed through this route. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /webhook-subscriptions/{subscription_id}/delete ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "deleted", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List webhook deliveries Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-deliveries **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `status` | query | "pending" / "delivered" / "failed" / "retrying" / "dlq" or "pending" / "delivered" / "failed" / "retrying" / "dlq"[] | No | | | `event_id` | query | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | ## Request **Request URL — GET** ```http GET /webhook-subscriptions/{subscription_id}/deliveries ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "attempt_count": 1, "attempts": [ { "attempt_number": 1, "attempted_at": "2026-05-01T10:00:00Z", "delivery_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "duration_ms": 142, "http_status_code": 200, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "delivery_attempt", "response_body": "ok" } ], "created_at": "2026-05-01T10:00:00Z", "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "last_attempt_at": "2026-05-01T10:00:00Z", "next_retry_at": null, "resource": "webhook_delivery", "status": "delivered", "subscription_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_count` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `attempts` | object[] | Yes | | | `created_at` | string or string | Yes | | | `event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `last_attempt_at` | string or string or null | Yes | | | `next_retry_at` | string or string or null | Yes | | | `resource` | "webhook_delivery" | Yes | | | `status` | "pending" / "delivered" / "failed" / "retrying" / "dlq" | Yes | | | `subscription_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### application/json body.items item.attempts Type: `object[]`. ###### application/json body.items item.attempts item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_number` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `attempted_at` | string or string | Yes | | | `delivery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `duration_ms` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `http_status_code` | integer or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "delivery_attempt" | Yes | | | `response_body` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.attempts item.attempted_at At least one alternative must match. ###### application/json body.items item.attempts item.attempted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.attempts item.attempted_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.attempts item.http_status_code At least one alternative must match. ###### application/json body.items item.attempts item.http_status_code: alternative 1 Type: `integer`. minimum: 100; maximum: 599 ###### application/json body.items item.attempts item.http_status_code: alternative 2 Type: `null`. ###### application/json body.items item.attempts item.response_body At least one alternative must match. ###### application/json body.items item.attempts item.response_body: alternative 1 Type: `string`. ###### application/json body.items item.attempts item.response_body: alternative 2 Type: `null`. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.last_attempt_at At least one alternative must match. ###### application/json body.items item.last_attempt_at: alternative 1 At least one alternative must match. ###### application/json body.items item.last_attempt_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.last_attempt_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.last_attempt_at: alternative 2 Type: `null`. ###### application/json body.items item.next_retry_at At least one alternative must match. ###### application/json body.items item.next_retry_at: alternative 1 At least one alternative must match. ###### application/json body.items item.next_retry_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.next_retry_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.next_retry_at: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get webhook delivery Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-deliveries-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `delivery_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /webhook-subscriptions/{subscription_id}/deliveries/{delivery_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "attempt_count": 1, "attempts": [ { "attempt_number": 1, "attempted_at": "2026-05-01T10:00:00Z", "delivery_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "duration_ms": 142, "http_status_code": 200, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "delivery_attempt", "response_body": "ok" } ], "created_at": "2026-05-01T10:00:00Z", "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "last_attempt_at": "2026-05-01T10:00:00Z", "next_retry_at": null, "resource": "webhook_delivery", "status": "delivered", "subscription_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_count` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `attempts` | object[] | Yes | | | `created_at` | string or string | Yes | | | `event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `last_attempt_at` | string or string or null | Yes | | | `next_retry_at` | string or string or null | Yes | | | `resource` | "webhook_delivery" | Yes | | | `status` | "pending" / "delivered" / "failed" / "retrying" / "dlq" | Yes | | | `subscription_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ##### application/json body.attempts Type: `object[]`. ###### application/json body.attempts item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_number` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `attempted_at` | string or string | Yes | | | `delivery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `duration_ms` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `http_status_code` | integer or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "delivery_attempt" | Yes | | | `response_body` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.attempts item.attempted_at At least one alternative must match. ###### application/json body.attempts item.attempted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.attempts item.attempted_at: alternative 2 Type: `string`. format: date-time ###### application/json body.attempts item.http_status_code At least one alternative must match. ###### application/json body.attempts item.http_status_code: alternative 1 Type: `integer`. minimum: 100; maximum: 599 ###### application/json body.attempts item.http_status_code: alternative 2 Type: `null`. ###### application/json body.attempts item.response_body At least one alternative must match. ###### application/json body.attempts item.response_body: alternative 1 Type: `string`. ###### application/json body.attempts item.response_body: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.last_attempt_at At least one alternative must match. ###### application/json body.last_attempt_at: alternative 1 At least one alternative must match. ###### application/json body.last_attempt_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.last_attempt_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.last_attempt_at: alternative 2 Type: `null`. ##### application/json body.next_retry_at At least one alternative must match. ###### application/json body.next_retry_at: alternative 1 At least one alternative must match. ###### application/json body.next_retry_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.next_retry_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.next_retry_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Disable webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-disable **Authentication:** Send `Authorization: Bearer `. Sets status to `paused`. Tenant subscriptions do not buffer events while paused: events published during the pause are not delivered and pending deliveries fail without a send attempt. After re-enabling, use event replay to recover events. Requires the current If-Match entity tag. Platform-managed subscriptions cannot be changed through this route. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /webhook-subscriptions/{subscription_id}/disable ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "paused", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Enable webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-enable **Authentication:** Send `Authorization: Bearer `. Activates a paused tenant-created subscription and requires the current If-Match entity tag. A deleted subscription cannot be reactivated and returns 409 with reason `webhook_subscription_not_active`. Enabling an identity event stream additionally requires users.read covering the subscription scope. Platform-managed subscriptions cannot be changed through this route. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /webhook-subscriptions/{subscription_id}/enable ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Get webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /webhook-subscriptions/{subscription_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # List webhook subscriptions Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-list **Authentication:** Send `Authorization: Bearer `. Lists webhook subscriptions. If omitted, `scope_ref` is derived from the authenticated enterprise or client context. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `scope_ref` | query | string or string | No | | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | | `status` | query | "active" / "paused" / "deleted" or "active" / "paused" / "deleted"[] | No | | ## Request **Request URL — GET** ```http GET /webhook-subscriptions ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "active", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.items item.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ###### application/json body.items item.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.items item.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.managed_by: alternative 2 Type: `null`. ###### application/json body.items item.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.items item.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Redeliver webhook delivery Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-redeliver **Authentication:** Send `Authorization: Bearer `. Schedules another attempt for an existing delivery that has not been delivered successfully. An already delivered row returns 409 with reason `webhook_delivery_already_delivered`; use event replay when an event must be delivered again after success. The subscription must be active when redelivery is scheduled, with one exception: a platform-managed subscription paused by the platform holds its deliveries, so the redelivery is accepted and held until the platform resumes it. A subscription you paused, or a deleted one, returns 409 with reason `webhook_subscription_not_active` without changing the delivery. A subsequent pause of your own before the worker sends can still prevent delivery. Re-enable first, then use event replay to recover missed events. Track the returned delivery_id with the ordinary delivery read. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `delivery_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /webhook-subscriptions/{subscription_id}/deliveries/{delivery_id}/redeliver ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "accepted": true, "delivery_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted` | true | Yes | | | `delivery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Send webhook test delivery Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-test **Authentication:** Send `Authorization: Bearer `. Sends a synthetic test event to an active tenant-managed subscription and returns the delivery snapshot, including the first attempt. Failed attempts follow the ordinary retry and dead-letter flow. A paused or deleted subscription returns 409 with reason `webhook_subscription_not_active`; a platform-managed subscription returns 409 with reason `subscription_managed`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /webhook-subscriptions/{subscription_id}/test ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "accepted": true, "delivery": { "attempt_count": 1, "attempts": [ { "attempt_number": 1, "attempted_at": "2026-05-01T10:00:00Z", "delivery_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "duration_ms": 142, "http_status_code": 200, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "resource": "delivery_attempt", "response_body": "ok" } ], "created_at": "2026-05-01T10:00:00Z", "event_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "last_attempt_at": "2026-05-01T10:00:00Z", "next_retry_at": null, "resource": "webhook_delivery", "status": "delivered", "subscription_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `accepted` | true | Yes | | | `delivery` | object | Yes | No additional fields | Additional fields are not accepted. ##### application/json body.delivery | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_count` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `attempts` | object[] | Yes | | | `created_at` | string or string | Yes | | | `event_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `last_attempt_at` | string or string or null | Yes | | | `next_retry_at` | string or string or null | Yes | | | `resource` | "webhook_delivery" | Yes | | | `status` | "pending" / "delivered" / "failed" / "retrying" / "dlq" | Yes | | | `subscription_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ###### application/json body.delivery.attempts Type: `object[]`. ###### application/json body.delivery.attempts item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `attempt_number` | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 | | `attempted_at` | string or string | Yes | | | `delivery_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `duration_ms` | integer | Yes | minimum: 0; maximum: 9007199254740991 | | `http_status_code` | integer or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `resource` | "delivery_attempt" | Yes | | | `response_body` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.delivery.attempts item.attempted_at At least one alternative must match. ###### application/json body.delivery.attempts item.attempted_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.delivery.attempts item.attempted_at: alternative 2 Type: `string`. format: date-time ###### application/json body.delivery.attempts item.http_status_code At least one alternative must match. ###### application/json body.delivery.attempts item.http_status_code: alternative 1 Type: `integer`. minimum: 100; maximum: 599 ###### application/json body.delivery.attempts item.http_status_code: alternative 2 Type: `null`. ###### application/json body.delivery.attempts item.response_body At least one alternative must match. ###### application/json body.delivery.attempts item.response_body: alternative 1 Type: `string`. ###### application/json body.delivery.attempts item.response_body: alternative 2 Type: `null`. ###### application/json body.delivery.created_at At least one alternative must match. ###### application/json body.delivery.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.delivery.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.delivery.last_attempt_at At least one alternative must match. ###### application/json body.delivery.last_attempt_at: alternative 1 At least one alternative must match. ###### application/json body.delivery.last_attempt_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.delivery.last_attempt_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.delivery.last_attempt_at: alternative 2 Type: `null`. ###### application/json body.delivery.next_retry_at At least one alternative must match. ###### application/json body.delivery.next_retry_at: alternative 1 At least one alternative must match. ###### application/json body.delivery.next_retry_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.delivery.next_retry_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.delivery.next_retry_at: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Update webhook subscription Source: https://business-api-docs.youhodler.com/api/reference/webhook-subscriptions/webhook-subscriptions-update **Authentication:** Send `Authorization: Bearer `. Updates the supplied fields and requires the current If-Match entity tag from a prior resource read. Platform-managed subscriptions cannot be changed here. Deleted subscriptions cannot be updated or reactivated; attempts return 409 with reason `webhook_subscription_not_active`. Keeping or widening an identity event stream additionally requires users.read covering the subscription scope; pausing or deleting without other changes only narrows the stream. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `subscription_id` | path | string | Yes | format: uuid | | `If-Match` | header | string | Yes | Weak entity tag from a prior GET. Mismatch causes the request to fail with 412 Precondition Failed. minLength: 1 | ## Request Required request body. ### Request body schema | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"[] | No | Non-empty event type filter. Use ["*"] to subscribe to all event types; otherwise provide exact catalog event types or catalog-derived group wildcards such as "operations.withdrawal.*.v1" and "operations.*.v1". minItems: 1 | | `status` | "active" / "paused" / "deleted" | No | | | `url` | string | No | HTTPS callback URL on a public host. Plain http, private and internal addresses are refused with callback_url_not_allowed. format: uri | Additional fields are not accepted. #### Request body schema.event_types Non-empty event type filter. Use ["*"] to subscribe to all event types; otherwise provide exact catalog event types or catalog-derived group wildcards such as "operations.withdrawal.*.v1" and "operations.*.v1". Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"[]`. minItems: 1 ##### Request body schema.event_types item Webhook event type filter value. Use exact catalog event types, "*" for every event, "..*.v" for a resource group, or ".*.v" for a domain group. Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1"`. **Request URL — PATCH** ```http PATCH /webhook-subscriptions/{subscription_id} ``` **Request Body — application/json** ```json { "status": "paused", "url": "https://example.com/webhooks/updated" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "created_at": "2026-05-01T10:00:00Z", "etag": "2026-05-01T10:00:00Z", "event_types": [ "operations.withdrawal.settled.v1" ], "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "public", "managed_by": null, "resource": "webhook_subscription", "scope_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "signing": "hmac", "status": "paused", "updated_at": "2026-05-01T10:00:00Z", "url": "https://example.com/webhooks/updated" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **412 If-Match check failed** If-Match check failed; the resource has changed since the cached etag. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `created_at` | string or string | Yes | | | `etag` | string | Yes | minLength: 1 | | `event_types` | "*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[] | Yes | minItems: 1 | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "public" / "identity" / "command" | Yes | Which catalog classes the subscription admits: public → public events; identity → public and identity events; command → command events only. | | `managed_by` | string or null | Yes | identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. | | `resource` | "webhook_subscription" | Yes | | | `scope_ref` | string or string | Yes | Webhook subscriptions can be scoped only to an enterprise or client. | | `signing` | "hmac" / "asymmetric" | Yes | hmac: v1 HMAC header plus the v2 Ed25519 header; asymmetric: v2 only, verified against the published JWKS. | | `status` | "active" / "paused" / "deleted" | Yes | | | `updated_at` | string or string | Yes | | | `url` | string | Yes | format: uri | Additional fields are not accepted. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.event_types Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"[]`. minItems: 1 ###### application/json body.event_types item Type: `"*" / "tenant.enterprise.admission_reviewed.v1" / "tenant.enterprise.admitted.v1" / "tenant.enterprise.activated.v1" / "tenant.enterprise.updated.v1" / "tenant.enterprise.suspended.v1" / "tenant.enterprise.reactivated.v1" / "tenant.enterprise.closed.v1" / "tenant.enterprise.terminated.v1" / "tenant.platform_operator.admitted.v1" / "tenant.platform_operator.restricted.v1" / "tenant.platform_operator.reactivated.v1" / "tenant.platform_operator.offboarded.v1" / "tenant.platform_operator.catalog_updated.v1" / "tenant.master_account.created.v1" / "tenant.master_account.suspended.v1" / "tenant.master_account.closed.v1" / "tenant.client.created.v1" / "tenant.client.updated.v1" / "tenant.client.suspended.v1" / "tenant.client.reactivated.v1" / "tenant.client.closed.v1" / "tenant.client_account.created.v1" / "tenant.client_account.suspended.v1" / "tenant.client_account.reactivated.v1" / "tenant.client_account.closed.v1" / "ledger.transaction.posted.v1" / "operations.withdrawal.requested.v1" / "operations.withdrawal.admissible.v1" / "operations.withdrawal.executing.v1" / "operations.withdrawal.pending_approval.v1" / "operations.withdrawal.pending_compliance.v1" / "operations.withdrawal.approved.v1" / "operations.withdrawal.settled.v1" / "operations.withdrawal.failed.v1" / "operations.withdrawal.cancelled.v1" / "operations.conversion.requested.v1" / "operations.conversion.admissible.v1" / "operations.conversion.pending_approval.v1" / "operations.conversion.pending_compliance.v1" / "operations.conversion.approved.v1" / "operations.conversion.settled.v1" / "operations.conversion.failed.v1" / "operations.conversion.cancelled.v1" / "operations.external_settlement_conversion.pending_compliance.v1" / "operations.internal_transfer.requested.v1" / "operations.internal_transfer.admissible.v1" / "operations.internal_transfer.pending_approval.v1" / "operations.internal_transfer.pending_compliance.v1" / "operations.internal_transfer.approved.v1" / "operations.internal_transfer.settled.v1" / "operations.internal_transfer.failed.v1" / "operations.internal_transfer.cancelled.v1" / "operations.on_ramp.requested.v1" / "operations.on_ramp.admissible.v1" / "operations.on_ramp.pending_approval.v1" / "operations.on_ramp.pending_compliance.v1" / "operations.on_ramp.approved.v1" / "operations.on_ramp.settled.v1" / "operations.on_ramp.failed.v1" / "operations.on_ramp.cancelled.v1" / "operations.off_ramp.requested.v1" / "operations.off_ramp.admissible.v1" / "operations.off_ramp.pending_approval.v1" / "operations.off_ramp.pending_compliance.v1" / "operations.off_ramp.approved.v1" / "operations.off_ramp.settled.v1" / "operations.off_ramp.failed.v1" / "operations.off_ramp.cancelled.v1" / "operations.deposit.requested.v1" / "operations.deposit.admissible.v1" / "operations.deposit.pending_approval.v1" / "operations.deposit.pending_admission.v1" / "operations.deposit.pending_compliance.v1" / "operations.deposit.approved.v1" / "operations.deposit.settled.v1" / "operations.deposit.failed.v1" / "operations.deposit.cancelled.v1" / "rails.deposit.detected.v1" / "rails.dispatch.acknowledged.v1" / "rails.dispatch.rejected.v1" / "rails.settlement.confirmed.v1" / "kyc.verification.reviewed.v1" / "loan.originated.v1" / "loan.origination_failed.v1" / "loan.margin_called.v1" / "loan.margin_call_cleared.v1" / "loan.liquidation_halted.v1" / "loan.liquidated.v1" / "loan.repaid.v1" / "loan.extended.v1" / "loan.closed.v1" / "loan.force_closed.v1" / "loan.reconciliation_discrepancy.v1" / "tenant.enterprise.*.v1" / "tenant.*.v1" / "tenant.platform_operator.*.v1" / "tenant.master_account.*.v1" / "tenant.client.*.v1" / "tenant.client_account.*.v1" / "ledger.transaction.*.v1" / "ledger.*.v1" / "operations.withdrawal.*.v1" / "operations.*.v1" / "operations.conversion.*.v1" / "operations.external_settlement_conversion.*.v1" / "operations.internal_transfer.*.v1" / "operations.on_ramp.*.v1" / "operations.off_ramp.*.v1" / "operations.deposit.*.v1" / "rails.deposit.*.v1" / "rails.*.v1" / "rails.dispatch.*.v1" / "rails.settlement.*.v1" / "kyc.verification.*.v1" / "kyc.*.v1" / "loan.loan.*.v1" / "loan.*.v1" / "identity.human_actor.created.v1" / "identity.human_actor.pending_created.v1" / "identity.human_actor.activated.v1" / "identity.human_actor.suspended.v1" / "identity.human_actor.reactivated.v1" / "identity.human_actor.deactivated.v1" / "identity.human_actor.updated.v1" / "identity.human_actor.federation_bound.v1" / "identity.human_actor.*.v1" / "identity.human_actor.access_resend_requested.v1" / "identity.human_actor.recovery_requested.v1"`. ##### application/json body.managed_by identity_provider_id of the IdP row that owns a core-managed subscription; null for tenant-created ones. At least one alternative must match. ###### application/json body.managed_by: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.managed_by: alternative 2 Type: `null`. ##### application/json body.scope_ref Webhook subscriptions can be scoped only to an enterprise or client. At least one alternative must match. ###### application/json body.scope_ref: alternative 1 Type: `string`. pattern: `^(enterprises)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.scope_ref: alternative 2 Type: `string`. pattern: `^(clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 412 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). --- # Register withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-create **Authentication:** Send `Authorization: Bearer `. Registers a crypto withdrawal destination with typed `{asset, network, destination: {address, memo}, label}` routing and `scope_ref`. Fiat destination creation requires `account_ref` and canonical fiat rails routing `{fiat_rail, method, currency, beneficiary_name, bank_coordinates, reference_hint}`; the pooled fiat route owner is derived server-side. Supply `Idempotency-Key` for replay-safe creation; it takes precedence over body `idempotency_key`. Fiat creation requires a key in either location. Crypto creation generates a key when both are absent, so retrying without a caller-supplied key does not replay the original request. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `crypto_routing` | object | Yes | No additional fields | | `idempotency_key` | string | No | minLength: 1 | | `rail_class` | "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | Additional fields are not accepted. ##### Request body schema: alternative 1.crypto_routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | No | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### Request body schema: alternative 1.crypto_routing.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 1.crypto_routing.destination.memo At least one alternative must match. ###### Request body schema: alternative 1.crypto_routing.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 1.crypto_routing.destination.memo: alternative 2 Type: `null`. ###### Request body schema: alternative 1.crypto_routing.label At least one alternative must match. ###### Request body schema: alternative 1.crypto_routing.label: alternative 1 Type: `string`. ###### Request body schema: alternative 1.crypto_routing.label: alternative 2 Type: `null`. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `fiat_routing` | object | Yes | No additional fields | | `idempotency_key` | string | No | minLength: 1 | | `rail_class` | "fiat" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 2.fiat_routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates Exactly one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.reference_hint At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.reference_hint: alternative 2 Type: `null`. **Request URL — POST** ```http POST /withdrawal-destinations ``` **Request Body — application/json** ```json { "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Enable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-enable) — Enable the destination before withdrawing - `POST` [Create withdrawal](/api/reference/withdrawals/withdrawals-create) — Initiate a withdrawal to this destination - `POST` [Preview a fee](/api/reference/fee-previews/fee-previews-create) — Preview fees before initiating --- # Disable withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-disable **Authentication:** Send `Authorization: Bearer `. Changes withdrawal destination state. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat state changes also require `account_ref`. Fiat state changes require an idempotency key in the `Idempotency-Key` header or query `idempotency_key`; the header takes precedence. Crypto state changes do not use an idempotency key in the crypto path. With an Idempotency-Key header, the edge interceptor can replay the original POST response. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `idempotency_key` | query | string | No | minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /withdrawal-destinations/{destination_id}/disable ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-get) — Verify current status - `POST` [Enable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-enable) — Re-enable the destination - `POST` [Retire withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-retire) — Retire permanently when no longer needed --- # Enable withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-enable **Authentication:** Send `Authorization: Bearer `. Changes withdrawal destination state. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat state changes also require `account_ref`. Fiat state changes require an idempotency key in the `Idempotency-Key` header or query `idempotency_key`; the header takes precedence. Crypto state changes do not use an idempotency key in the crypto path. With an Idempotency-Key header, the edge interceptor can replay the original POST response. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `idempotency_key` | query | string | No | minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /withdrawal-destinations/{destination_id}/enable ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-get) — Verify current status - `POST` [Disable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-disable) — Disable if no longer needed - `POST` [Create withdrawal](/api/reference/withdrawals/withdrawals-create) — Initiate a withdrawal once enabled --- # Get withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-get **Authentication:** Send `Authorization: Bearer `. Reads a withdrawal destination by id. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat reads also require `account_ref` as the producer scope field; the pooled fiat route owner is derived server-side. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | ## Request **Request URL — GET** ```http GET /withdrawal-destinations/{destination_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `PATCH` [Update withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-update) — Update destination metadata - `POST` [Enable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-enable) — Enable or re-enable the destination - `POST` [Disable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-disable) — Temporarily disable the destination - `POST` [Retire withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-retire) — Permanently retire the destination - `POST` [Create withdrawal](/api/reference/withdrawals/withdrawals-create) — Initiate a withdrawal to this destination --- # List withdrawal destinations Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-list **Authentication:** Send `Authorization: Bearer `. Lists withdrawal destinations for the selected rail. Crypto lists require `scope_ref` for the topology-scoped address book. Fiat lists require `account_ref`; the pooled fiat route owner is derived server-side and is not part of the request surface. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `scope_ref` | query | string | No | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | query | "active" / "disabled" / "retired" | No | | | `asset` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `currency` | query | string | No | pattern: `^[A-Z0-9]{1,16}$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /withdrawal-destinations ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ###### application/json body.items item.asset At least one alternative must match. ###### application/json body.items item.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.items item.asset: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.items item.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.items item.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.items item.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.items item.crypto_routing: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.items item.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.items item.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.items item.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.items item.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.items item.fiat_routing: alternative 2 Type: `null`. ###### application/json body.items item.label At least one alternative must match. ###### application/json body.items item.label: alternative 1 Type: `string`. ###### application/json body.items item.label: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. minLength: 1 ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Register withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-create) — Register a new destination - `GET` [Get withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-get) — Fetch a single destination by ID --- # Retire withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-retire **Authentication:** Send `Authorization: Bearer `. Changes withdrawal destination state. The `rail_class` query parameter is required so edge can route directly to the selected backend. Fiat state changes also require `account_ref`. Fiat state changes require an idempotency key in the `Idempotency-Key` header or query `idempotency_key`; the header takes precedence. Crypto state changes do not use an idempotency key in the crypto path. With an Idempotency-Key header, the edge interceptor can replay the original POST response. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `rail_class` | query | "fiat" / "crypto" | Yes | | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `idempotency_key` | query | string | No | minLength: 1 | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /withdrawal-destinations/{destination_id}/retire ``` ## Responses **201 Resource created successfully** Resource created successfully. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 201 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Disable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-disable) — Disable before retiring - `GET` [List withdrawal destinations](/api/reference/withdrawal-destinations/withdrawal-destinations-list) — List remaining active destinations --- # Update withdrawal destination Source: https://business-api-docs.youhodler.com/api/reference/withdrawal-destinations/withdrawal-destinations-update **Authentication:** Send `Authorization: Bearer `. Updates a crypto withdrawal destination with typed `{asset, network, destination: {address, memo}, label}` routing. Fiat updates require `account_ref` and canonical fiat rails routing `{fiat_rail, method, currency, beneficiary_name, bank_coordinates, reference_hint}`. Fiat updates require an idempotency key in the `Idempotency-Key` header or body `idempotency_key`; the header takes precedence. Crypto updates do not use an idempotency key. PATCH requests are not replayed by the edge idempotency interceptor; a fiat update uses the key in rails-router. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `destination_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `crypto_routing` | object | Yes | No additional fields | | `rail_class` | "crypto" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 1.crypto_routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | No | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### Request body schema: alternative 1.crypto_routing.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 1.crypto_routing.destination.memo At least one alternative must match. ###### Request body schema: alternative 1.crypto_routing.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 1.crypto_routing.destination.memo: alternative 2 Type: `null`. ###### Request body schema: alternative 1.crypto_routing.label At least one alternative must match. ###### Request body schema: alternative 1.crypto_routing.label: alternative 1 Type: `string`. ###### Request body schema: alternative 1.crypto_routing.label: alternative 2 Type: `null`. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `fiat_routing` | object | Yes | No additional fields | | `idempotency_key` | string | No | minLength: 1 | | `rail_class` | "fiat" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 2.fiat_routing | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates Exactly one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### Request body schema: alternative 2.fiat_routing.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### Request body schema: alternative 2.fiat_routing.reference_hint At least one alternative must match. ###### Request body schema: alternative 2.fiat_routing.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### Request body schema: alternative 2.fiat_routing.reference_hint: alternative 2 Type: `null`. **Request URL — PATCH** ```http PATCH /withdrawal-destinations/{destination_id} ``` **Request Body — application/json** ```json { "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My Polygon wallet", "network": "polygon" }, "rail_class": "crypto" } ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "asset": "USDC", "created_at": "2026-05-01T10:00:00Z", "crypto_routing": { "asset": "USDC", "destination": { "address": "0xAbCd1234567890AbCd1234567890AbCd12345678", "memo": null }, "label": "My ETH wallet", "network": "ethereum" }, "fiat_routing": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "label": "My ETH wallet", "rail_class": "crypto", "scope_ref": "clients/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "status": "active", "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string or null | No | | | `created_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | | `crypto_routing` | object or null | No | | | `fiat_routing` | object or null | No | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `label` | string or null | No | | | `rail_class` | "fiat" / "crypto" | Yes | | | `scope_ref` | string | Yes | pattern: `^(enterprises\|platform-operators\|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `status` | "active" / "disabled" / "retired" | Yes | | | `updated_at` | string | Yes | format: date-time; pattern: `^(?:(?:\d\d[2468][048]\|\d\d[13579][26]\|\d\d0[48]\|[02468][048]00\|[13579][26]00)-02-29\|\d{4}-(?:(?:0[13578]\|1[02])-(?:0[1-9]\|[12]\d\|3[01])\|(?:0[469]\|11)-(?:0[1-9]\|[12]\d\|30)\|(?:02)-(?:0[1-9]\|1\d\|2[0-8])))T(?:(?:[01]\d\|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` | Additional fields are not accepted. ##### application/json body.asset At least one alternative must match. ###### application/json body.asset: alternative 1 Currency code (ISO-4217 or on-chain ticker) Type: `string`. pattern: `^[A-Z0-9]{1,16}$` ###### application/json body.asset: alternative 2 Type: `null`. ##### application/json body.crypto_routing At least one alternative must match. ###### application/json body.crypto_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `destination` | object | Yes | No additional fields | | `label` | string or null | Yes | | | `network` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.crypto_routing: alternative 1.destination.memo At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.destination.memo: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 1.label At least one alternative must match. ###### application/json body.crypto_routing: alternative 1.label: alternative 1 Type: `string`. ###### application/json body.crypto_routing: alternative 1.label: alternative 2 Type: `null`. ###### application/json body.crypto_routing: alternative 2 Type: `null`. ##### application/json body.fiat_routing At least one alternative must match. ###### application/json body.fiat_routing: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `bank_coordinates` | object or object | Yes | | | `beneficiary_name` | string | Yes | minLength: 1; maxLength: 140 | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `fiat_rail` | "sepa_credit_transfer" / "faster_payments" / "swift" / "local_bank_transfer" / "fedwire" | Yes | | | `method` | "bank_transfer" | Yes | | | `reference_hint` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates Exactly one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `iban` | string | Yes | minLength: 1; maxLength: 34 | | `scheme` | "iban" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 1.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_holder_name` | string | Yes | minLength: 1; maxLength: 140 | | `account_number` | string | Yes | minLength: 1; maxLength: 64 | | `account_type` | "checking" / "savings" or null | No | Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. | | `bank_address` | object or null | No | Postal address of the bank that holds the account. | | `bank_name` | string or null | Yes | | | `bic` | string or null | Yes | | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `routing_codes` | object[] | Yes | minItems: 1; maxItems: 16 | | `scheme` | "local_account" | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type Checking or savings. Required by some payout rails (a US domestic wire); null or absent where the rail has no such concept. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 1 Type: `"checking" / "savings"`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.account_type: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address Postal address of the bank that holds the account. At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `city` | string | Yes | minLength: 1; maxLength: 140 | | `country` | string | Yes | pattern: `^[A-Z]{2}$` | | `lines` | string[] | Yes | minItems: 1; maxItems: 4 | | `postal_code` | string or null | Yes | | | `region` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines Type: `string[]`. minItems: 1; maxItems: 4 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.lines item Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 1 Type: `string`. minLength: 1; maxLength: 32 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.postal_code: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 1.region: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_address: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bank_name: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 1 Type: `string`. minLength: 1; maxLength: 11 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.bic: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes Type: `object[]`. minItems: 1; maxItems: 16 ###### application/json body.fiat_routing: alternative 1.bank_coordinates: alternative 2.routing_codes item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `type` | string | Yes | minLength: 1; maxLength: 64 | | `value` | string | Yes | minLength: 1; maxLength: 64 | Additional fields are not accepted. ###### application/json body.fiat_routing: alternative 1.reference_hint At least one alternative must match. ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 1 Type: `string`. minLength: 1; maxLength: 140 ###### application/json body.fiat_routing: alternative 1.reference_hint: alternative 2 Type: `null`. ###### application/json body.fiat_routing: alternative 2 Type: `null`. ##### application/json body.label At least one alternative must match. ###### application/json body.label: alternative 1 Type: `string`. ###### application/json body.label: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-get) — Read current state and ETag before updating - `POST` [Enable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-enable) — Enable the destination after updating --- # Cancel withdrawal Source: https://business-api-docs.youhodler.com/api/reference/withdrawals/withdrawals-cancel **Authentication:** Send `Authorization: Bearer `. Cancels a withdrawal while it is waiting for approval or compliance, before dispatch. Returns the refreshed operation with status `cancelled`. A withdrawal that has already started execution cannot be cancelled and returns `409 state_conflict` with `data.reason = operation_not_cancellable`. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `withdrawal_id` | path | string | Yes | format: uuid | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | ## Request **Request URL — POST** ```http POST /withdrawals/{withdrawal_id}/cancel ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "withdrawal", "family_params": {}, "fee_summary": null, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "cancelled", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 409 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [Get withdrawal](/api/reference/withdrawals/withdrawals-get) — Read current state before cancelling - `GET` [List withdrawals](/api/reference/withdrawals/withdrawals-list) — List withdrawals to find cancellable ones --- # Create withdrawal Source: https://business-api-docs.youhodler.com/api/reference/withdrawals/withdrawals-create **Authentication:** Send `Authorization: Bearer `. Creates a withdrawal operation. For crypto requests, bind either a stored withdrawal destination (`destination_id`) or a one-time inline `destination` (`{address, memo}` plus `network`) — exactly one crypto destination path must be present. For fiat requests, bind a stored fiat withdrawal destination by its `withdrawal_destination_id`, resolved within the supplied `account_ref` scope; the canonical bank routing and the authoritative owner topology are sourced from the stored destination, never from the request body. Both rails are subject to operation admission checks; fiat dispatch also depends on the availability and runtime readiness of the selected fiat rail. A fiat `amount` with more fractional digits than the catalog scale of its currency is refused with `400 invalid_request` and `data.reason = amount_scale_exceeded` before anything is held; trailing zeros do not count (`100.000` is `100`), and a currency the catalog has no scale for is not checked. Successful responses return the operation snapshot — for an immediately admitted withdrawal the response may carry `status = "executing"` once operation-flow has written that state. Idempotent on `Idempotency-Key` or `client_idempotency_key`. Human callers must obtain a step-up confirmation via `POST /action-tokens` and submit it in the `X-Action-Token` header; service principals are exempt. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated key, 1-128 characters. Accepted on POST requests and required where marked. For the same concrete path and caller/subject/tenant scope, an identical body replays the original status and body; a different body returns 409 idempotency_conflict. Keep query parameters unchanged when retrying. minLength: 1; maxLength: 128 | | `X-Action-Token` | header | string | No | Single-use step-up confirmation token bound to the server-canonical command for this request. Required when the effective subject is a human user. Callers without a human subject skip only this confirmation check and still pass normal authentication and capability guards. Obtain the token through `POST /action-tokens`, then submit it with the guarded request. Structured commands are supported for withdrawal, conversion, and external-settlement conversion creation; the issue endpoint also accepts `command_digest`. Missing or invalid human-confirmation tokens produce `400` with `code` in {`action_token_required`, `action_token_rejected`}; an unreachable approval service produces `502 action_token_validation_failed`. minLength: 1 | ## Request Required request body. ### Request body schema Exactly one alternative must match. #### Request body schema: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `destination` | object | No | No additional fields | | `destination_id` | string | No | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `network` | string | No | minLength: 1 | | `rail` | "crypto" | Yes | | Additional fields are not accepted. ##### Request body schema: alternative 1.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### Request body schema: alternative 1.destination | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `address` | string | Yes | minLength: 1; maxLength: 256 | | `memo` | string or null | Yes | | Additional fields are not accepted. ###### Request body schema: alternative 1.destination.memo At least one alternative must match. ###### Request body schema: alternative 1.destination.memo: alternative 1 Type: `string`. ###### Request body schema: alternative 1.destination.memo: alternative 2 Type: `null`. #### Request body schema: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `amount` | object | Yes | No additional fields | | `client_idempotency_key` | string | No | minLength: 1 | | `rail` | "fiat" | Yes | | | `withdrawal_destination_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | Additional fields are not accepted. ##### Request body schema: alternative 2.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. **Request URL — POST** ```http POST /withdrawals ``` **Request Body — application/json** ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "amount": { "currency": "EUR", "value": "100.00" }, "rail": "fiat", "withdrawal_destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } ``` ## Responses **202 Request accepted for asynchronous processing** Request accepted for asynchronous processing. Follow the resource identifiers returned by this operation to observe progress. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "failure_reason": null, "family": "withdrawal", "family_params": {}, "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fill_rate": null, "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "principal_amount": { "currency": "USDC", "value": "250.00" }, "settled_at": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z" } ``` **400 Step-up confirmation failed for a money-movement operation** Step-up confirmation failed for a money-movement operation. `code` is one of: `action_token_required` (X-Action-Token header missing), `action_token_rejected` (token is unknown, expired, already consumed, or its server-canonical command binding does not match the current request). Obtain a fresh token via `POST /action-tokens` and retry. Structured issuance accepts `withdrawal.create`, `conversion.create`, and `external_settlement_conversion.create`. The issue endpoint also accepts `command_digest`. Human confirmation applies to the effective user subject; callers without a human subject skip this confirmation check. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **409 State conflict — the request cannot be applied to the current resource state** State conflict — the request cannot be applied to the current resource state. **422 The request cannot be processed under the resource or route contract** The request cannot be processed under the resource or route contract. Depending on the endpoint, code can be not_admissible or unsupported_currency; inspect the documented code and data.reason. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 202 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `admission_hold_reason` | "CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED" or null | No | | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "deposit" / "withdrawal" / "conversion" / "external_settlement_conversion" / "internal_transfer" / "on_ramp" / "off_ramp" / "loan_origination" / "loan_repayment" / "loan_liquidation" / "loan_closing" / "loan_extension" | Yes | | | `family_params` | object | Yes | | | `fee_summary` | object or null | Yes | | | `fill_rate` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `principal_amount` | object | Yes | No additional fields | | `settled_at` | string or string or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | Additional fields are not accepted. ##### application/json body.admission_hold_reason At least one alternative must match. ###### application/json body.admission_hold_reason: alternative 1 Type: `"CLIENT_NOT_VERIFIED" / "ENTERPRISE_NOT_VERIFIED" / "ENTERPRISE_NOT_OPERATIONAL" / "ENTERPRISE_RESTRICTED" / "ACCOUNT_SUSPENDED" / "ACCOUNT_CLOSED" / "CLIENT_SUSPENDED" / "CLIENT_CLOSED"`. ###### application/json body.admission_hold_reason: alternative 2 Type: `null`. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 403 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 409 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 422 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 500 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 502 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 503 schema Content type: `application/json`. See [response 502 schema](#response-502-schema). **Related endpoints:** - `POST` [Register withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-create) — Register a destination first - `POST` [Enable withdrawal destination](/api/reference/withdrawal-destinations/withdrawal-destinations-enable) — Destination must be enabled - `POST` [Preview a fee](/api/reference/fee-previews/fee-previews-create) — Preview fees before initiating - `GET` [Get withdrawal](/api/reference/withdrawals/withdrawals-get) — Poll withdrawal status after creation - `GET` [List approvals](/api/reference/approvals/approvals-list) — Check pending approvals if awaiting approval --- # Get withdrawal Source: https://business-api-docs.youhodler.com/api/reference/withdrawals/withdrawals-get **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `withdrawal_id` | path | string | Yes | format: uuid | ## Request **Request URL — GET** ```http GET /withdrawals/{withdrawal_id} ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "dispatch_attempt_id": null, "failure_reason": null, "family": "withdrawal", "family_flow_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [], "fill_rate": null, "hold_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": null, "rail": "ethereum", "rail_class": "crypto", "release_transaction_id": null, "settled_at": null, "settlement_evidence": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z", "withdrawal_attempt_id": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `destination_id` | string or null | Yes | | | `dispatch_attempt_id` | string or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "withdrawal" | Yes | | | `family_flow_id` | string or null | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `hold_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `leg_attempt_id` | string or null | Yes | | | `network` | string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `rail` | string or null | Yes | | | `rail_class` | "fiat" / "crypto" or null | Yes | | | `release_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `settlement_evidence` | object or object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | | `withdrawal_attempt_id` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.approval_ref At least one alternative must match. ###### application/json body.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.approval_ref: alternative 2 Type: `null`. ##### application/json body.compliance_assessment_ref At least one alternative must match. ###### application/json body.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.compliance_assessment_ref: alternative 2 Type: `null`. ##### application/json body.created_at At least one alternative must match. ###### application/json body.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.created_at: alternative 2 Type: `string`. format: date-time ##### application/json body.destination_id At least one alternative must match. ###### application/json body.destination_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.destination_id: alternative 2 Type: `null`. ##### application/json body.dispatch_attempt_id At least one alternative must match. ###### application/json body.dispatch_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.dispatch_attempt_id: alternative 2 Type: `null`. ##### application/json body.failure_reason At least one alternative must match. ###### application/json body.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.failure_reason: alternative 2 Type: `null`. ##### application/json body.family_flow_id At least one alternative must match. ###### application/json body.family_flow_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.family_flow_id: alternative 2 Type: `null`. ##### application/json body.fee_summary At least one alternative must match. ###### application/json body.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.fee_summary: alternative 2 Type: `null`. ##### application/json body.fee_transaction_ids At least one alternative must match. ###### application/json body.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.fee_transaction_ids: alternative 2 Type: `null`. ##### application/json body.fill_rate At least one alternative must match. ###### application/json body.fill_rate: alternative 1 Type: `string`. ###### application/json body.fill_rate: alternative 2 Type: `null`. ##### application/json body.hold_id At least one alternative must match. ###### application/json body.hold_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.hold_id: alternative 2 Type: `null`. ##### application/json body.leg_attempt_id At least one alternative must match. ###### application/json body.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.leg_attempt_id: alternative 2 Type: `null`. ##### application/json body.network At least one alternative must match. ###### application/json body.network: alternative 1 Type: `string`. minLength: 1 ###### application/json body.network: alternative 2 Type: `null`. ##### application/json body.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ##### application/json body.principal_transaction_id At least one alternative must match. ###### application/json body.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.principal_transaction_id: alternative 2 Type: `null`. ##### application/json body.rail At least one alternative must match. ###### application/json body.rail: alternative 1 Type: `string`. minLength: 1 ###### application/json body.rail: alternative 2 Type: `null`. ##### application/json body.rail_class At least one alternative must match. ###### application/json body.rail_class: alternative 1 Type: `"fiat" / "crypto"`. ###### application/json body.rail_class: alternative 2 Type: `null`. ##### application/json body.release_transaction_id At least one alternative must match. ###### application/json body.release_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.release_transaction_id: alternative 2 Type: `null`. ##### application/json body.settled_at At least one alternative must match. ###### application/json body.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settled_at: alternative 2 Type: `null`. ##### application/json body.settlement_evidence At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1 Exactly one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `block_number` | integer or null | Yes | | | `confirmations` | integer or null | Yes | | | `finalized_at` | string or string or null | Yes | | | `kind` | "blockchain_transaction" | Yes | | | `network` | string | Yes | minLength: 1 | | `transaction_hash` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.settlement_evidence: alternative 1: alternative 1.block_number At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 1.block_number: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.settlement_evidence: alternative 1: alternative 1.block_number: alternative 2 Type: `null`. ###### application/json body.settlement_evidence: alternative 1: alternative 1.confirmations At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 1.confirmations: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.settlement_evidence: alternative 1: alternative 1.confirmations: alternative 2 Type: `null`. ###### application/json body.settlement_evidence: alternative 1: alternative 1.finalized_at At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1 At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 2 Type: `null`. ###### application/json body.settlement_evidence: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fiat_rail` | string | Yes | minLength: 1 | | `kind` | "bank_transfer" | Yes | | | `rail_reference` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | Additional fields are not accepted. ###### application/json body.settlement_evidence: alternative 1: alternative 2.rail_reference At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 2.rail_reference: alternative 1 Type: `string`. minLength: 1 ###### application/json body.settlement_evidence: alternative 1: alternative 2.rail_reference: alternative 2 Type: `null`. ###### application/json body.settlement_evidence: alternative 1: alternative 2.settled_at At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body.settlement_evidence: alternative 2 Type: `null`. ##### application/json body.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.federation At least one alternative must match. ###### application/json body.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.subject_attribution.subject: alternative 2 Type: `null`. ##### application/json body.updated_at At least one alternative must match. ###### application/json body.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.updated_at: alternative 2 Type: `string`. format: date-time ##### application/json body.withdrawal_attempt_id At least one alternative must match. ###### application/json body.withdrawal_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.withdrawal_attempt_id: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `GET` [List withdrawals](/api/reference/withdrawals/withdrawals-list) — List all withdrawals for the account - `POST` [Cancel withdrawal](/api/reference/withdrawals/withdrawals-cancel) — Cancel if still in a cancellable state - `GET` [Get approval](/api/reference/approvals/approvals-get) — Inspect the approval request if present --- # List withdrawals Source: https://business-api-docs.youhodler.com/api/reference/withdrawals/withdrawals-list **Authentication:** Send `Authorization: Bearer `. ## Parameters | Name | Location | Type | Required | Description and constraints | | --- | --- | --- | --- | --- | | `account_ref` | query | string | No | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `page_size` | query | integer | No | Cursor pagination page size. The canonical contract accepts integers from 1 to 500. minimum: 1; maximum: 500; default: `100` | | `page_token` | query | string | No | Opaque cursor returned by a previous page. | ## Request **Request URL — GET** ```http GET /withdrawals ``` ## Responses **200 Operation succeeded** Operation succeeded. ```json { "items": [ { "account_ref": "client-accounts/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "approval_ref": null, "created_at": "2026-05-01T10:00:00Z", "destination_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "dispatch_attempt_id": null, "failure_reason": null, "family": "withdrawal", "family_flow_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "fee_summary": { "components": [ { "amount": { "currency": "USDC", "value": "1.00" }, "kind": "network_fee" } ], "total": { "currency": "USDC", "value": "1.00" } }, "fee_transaction_ids": [], "fill_rate": null, "hold_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "leg_attempt_id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "network": "ethereum", "principal_amount": { "currency": "USDC", "value": "250.00" }, "principal_transaction_id": null, "rail": "ethereum", "rail_class": "crypto", "release_transaction_id": null, "settled_at": null, "settlement_evidence": null, "status": "executing", "subject_attribution": { "actor": null, "approved_by": null, "authenticated_principal": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "enterprise_binding": { "tenant_type": "enterprise", "topology_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" }, "federation": null, "identity_source": "platform-managed", "initiated_by": null, "subject": { "id": "b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b", "kind": "user", "tenant_ref": "enterprises/b8e2f1a0-4c3d-4e5f-9a1b-2c3d4e5f6a7b" } }, "updated_at": "2026-05-01T10:00:00Z", "withdrawal_attempt_id": null } ], "next_page_token": null } ``` **400 Invalid request payload** Invalid request payload, query, or parameter shape. **401 Caller is not authenticated or the bearer token is invalid** Caller is not authenticated or the bearer token is invalid. **403 Caller lacks the required capability or permitted scope** Caller lacks the required capability or permitted scope. **404 Resource not found** Resource not found. **500 An unexpected internal failure occurred** An unexpected internal failure occurred. The public error code is temporarily_unavailable; internal details are not exposed. **502 Upstream service returned an unexpected error** Upstream service returned an unexpected error. **503 Service is temporarily unavailable** Service is temporarily unavailable; retry with backoff. ### Response 200 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `items` | object[] | Yes | | | `next_page_token` | string or null | Yes | | Additional fields are not accepted. ##### application/json body.items Type: `object[]`. ###### application/json body.items item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `account_ref` | string | Yes | pattern: `^(master-accounts\|client-accounts)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` | | `approval_ref` | object or null | Yes | | | `compliance_assessment_ref` | string or null | No | | | `created_at` | string or string | Yes | | | `destination_id` | string or null | Yes | | | `dispatch_attempt_id` | string or null | Yes | | | `failure_reason` | string or null | Yes | | | `family` | "withdrawal" | Yes | | | `family_flow_id` | string or null | Yes | | | `fee_summary` | object or null | Yes | | | `fee_transaction_ids` | string[] or null | Yes | | | `fill_rate` | string or null | Yes | | | `hold_id` | string or null | Yes | | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `leg_attempt_id` | string or null | Yes | | | `network` | string or null | Yes | | | `principal_amount` | object | Yes | No additional fields | | `principal_transaction_id` | string or null | Yes | | | `rail` | string or null | Yes | | | `rail_class` | "fiat" / "crypto" or null | Yes | | | `release_transaction_id` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | | `settlement_evidence` | object or object or null | Yes | | | `status` | "requested" / "admissible" / "executing" / "pending_approval" / "pending_admission" / "pending_compliance" / "executed" / "settled" / "ledger_visible" / "failed" / "cancelled" / "partially_settled" | Yes | | | `subject_attribution` | object | Yes | No additional fields | | `updated_at` | string or string | Yes | | | `withdrawal_attempt_id` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `approval_id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `expires_at` | string or string | Yes | | | `reason_code` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.approval_ref: alternative 1.expires_at At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.approval_ref: alternative 1.expires_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.approval_ref: alternative 1.reason_code At least one alternative must match. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 1 Type: `string`. ###### application/json body.items item.approval_ref: alternative 1.reason_code: alternative 2 Type: `null`. ###### application/json body.items item.approval_ref: alternative 2 Type: `null`. ###### application/json body.items item.compliance_assessment_ref At least one alternative must match. ###### application/json body.items item.compliance_assessment_ref: alternative 1 Type: `string`. pattern: `^(compliance-assessments)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.compliance_assessment_ref: alternative 2 Type: `null`. ###### application/json body.items item.created_at At least one alternative must match. ###### application/json body.items item.created_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.created_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.destination_id At least one alternative must match. ###### application/json body.items item.destination_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.destination_id: alternative 2 Type: `null`. ###### application/json body.items item.dispatch_attempt_id At least one alternative must match. ###### application/json body.items item.dispatch_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.dispatch_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item.failure_reason At least one alternative must match. ###### application/json body.items item.failure_reason: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.failure_reason: alternative 2 Type: `null`. ###### application/json body.items item.family_flow_id At least one alternative must match. ###### application/json body.items item.family_flow_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.family_flow_id: alternative 2 Type: `null`. ###### application/json body.items item.fee_summary At least one alternative must match. ###### application/json body.items item.fee_summary: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `components` | object[] | Yes | | | `total` | object | Yes | No additional fields | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components Type: `object[]`. ###### application/json body.items item.fee_summary: alternative 1.components item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `amount` | object | Yes | No additional fields | | `kind` | "platform_fee" / "enterprise_fee" / "network_fee" / "spread" | Yes | | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.components item.amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 1.total | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.fee_summary: alternative 2 Type: `null`. ###### application/json body.items item.fee_transaction_ids At least one alternative must match. ###### application/json body.items item.fee_transaction_ids: alternative 1 Type: `string[]`. ###### application/json body.items item.fee_transaction_ids: alternative 1 item Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.fee_transaction_ids: alternative 2 Type: `null`. ###### application/json body.items item.fill_rate At least one alternative must match. ###### application/json body.items item.fill_rate: alternative 1 Type: `string`. ###### application/json body.items item.fill_rate: alternative 2 Type: `null`. ###### application/json body.items item.hold_id At least one alternative must match. ###### application/json body.items item.hold_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.hold_id: alternative 2 Type: `null`. ###### application/json body.items item.leg_attempt_id At least one alternative must match. ###### application/json body.items item.leg_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.leg_attempt_id: alternative 2 Type: `null`. ###### application/json body.items item.network At least one alternative must match. ###### application/json body.items item.network: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.network: alternative 2 Type: `null`. ###### application/json body.items item.principal_amount | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `value` | string | Yes | DecimalString pattern: `^(0\|[1-9][0-9]{0,29})(\.[0-9]{1,18})?$` | Additional fields are not accepted. ###### application/json body.items item.principal_transaction_id At least one alternative must match. ###### application/json body.items item.principal_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.principal_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item.rail At least one alternative must match. ###### application/json body.items item.rail: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.rail: alternative 2 Type: `null`. ###### application/json body.items item.rail_class At least one alternative must match. ###### application/json body.items item.rail_class: alternative 1 Type: `"fiat" / "crypto"`. ###### application/json body.items item.rail_class: alternative 2 Type: `null`. ###### application/json body.items item.release_transaction_id At least one alternative must match. ###### application/json body.items item.release_transaction_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.release_transaction_id: alternative 2 Type: `null`. ###### application/json body.items item.settled_at At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settled_at: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1 Exactly one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `block_number` | integer or null | Yes | | | `confirmations` | integer or null | Yes | | | `finalized_at` | string or string or null | Yes | | | `kind` | "blockchain_transaction" | Yes | | | `network` | string | Yes | minLength: 1 | | `transaction_hash` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.block_number At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.block_number: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.block_number: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.confirmations At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.confirmations: alternative 1 Type: `integer`. minimum: 0; maximum: 9007199254740991 ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.confirmations: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.finalized_at At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settlement_evidence: alternative 1: alternative 1.finalized_at: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `fiat_rail` | string | Yes | minLength: 1 | | `kind` | "bank_transfer" | Yes | | | `rail_reference` | string or null | Yes | | | `settled_at` | string or string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.rail_reference At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.rail_reference: alternative 1 Type: `string`. minLength: 1 ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.rail_reference: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.settled_at At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1 At least one alternative must match. ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 1: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.settlement_evidence: alternative 1: alternative 2.settled_at: alternative 2 Type: `null`. ###### application/json body.items item.settlement_evidence: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `actor` | object or null | Yes | | | `approved_by` | object or null | Yes | | | `authenticated_principal` | object | Yes | No additional fields | | `enterprise_binding` | object | Yes | No additional fields | | `federation` | object or null | Yes | | | `identity_source` | "platform-managed" / "federated" / "system" | Yes | | | `initiated_by` | object or null | Yes | | | `subject` | object or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.actor: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.actor: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.approved_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.approved_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.authenticated_principal | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.authenticated_principal.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.enterprise_binding | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `tenant_type` | "enterprise" / "platform_operator" | Yes | | | `topology_ref` | string or null | Yes | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.enterprise_binding.topology_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.federation At least one alternative must match. ###### application/json body.items item.subject_attribution.federation: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `external_subject` | string | Yes | minLength: 1 | | `issuer` | string | Yes | minLength: 1 | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.federation: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.initiated_by: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.initiated_by: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1 | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `id` | string | Yes | format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$` | | `kind` | "user" / "service" / "system" | Yes | | | `tenant_ref` | string or null | No | | Additional fields are not accepted. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref At least one alternative must match. ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 1 Type: `string`. pattern: `^(enterprises|platform-operators|clients)\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$` ###### application/json body.items item.subject_attribution.subject: alternative 1.tenant_ref: alternative 2 Type: `null`. ###### application/json body.items item.subject_attribution.subject: alternative 2 Type: `null`. ###### application/json body.items item.updated_at At least one alternative must match. ###### application/json body.items item.updated_at: alternative 1 Type: `string`. format: date-time; pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` ###### application/json body.items item.updated_at: alternative 2 Type: `string`. format: date-time ###### application/json body.items item.withdrawal_attempt_id At least one alternative must match. ###### application/json body.items item.withdrawal_attempt_id: alternative 1 Type: `string`. format: uuid; pattern: `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` ###### application/json body.items item.withdrawal_attempt_id: alternative 2 Type: `null`. ##### application/json body.next_page_token At least one alternative must match. ###### application/json body.next_page_token: alternative 1 Type: `string`. ###### application/json body.next_page_token: alternative 2 Type: `null`. ### Response 400 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 401 schema Content type: `application/json`. #### application/json body | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `code` | string | Yes | | | `data` | object | No | No additional fields | | `details` | object | No | Additional fields allowed | | `message` | string | Yes | | Additional fields are not accepted. ##### application/json body.data | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `acr_values` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `blockers` | object[] | No | For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. | | `code` | string | No | For legal refusals: the document code the refusal is about. | | `max_age` | string | No | RFC 9470 step-up challenge (`insufficient_user_authentication`). | | `max_source_amount` | object or null | No | For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. No additional fields | | `min_source_amount` | object | No | For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. No additional fields | | `published_version` | string | No | For `document_version_superseded`: the version currently published. | | `reason` | string | No | Typed refinement of `code`, from the failing service's contract. | | `resource` | string | No | Resource kind a `resource_not_found` refers to. | | `retry_after_ms` | integer or null | No | Suggested back-off in milliseconds for throttling or temporary unavailability; null means no delay is known. minimum: 0 | | `source` | string | No | For `not_admissible`: the gate that denied (verification, lifecycle, policy, compliance). | Additional fields are not accepted. ###### application/json body.data.blockers For `closure_preconditions_not_met` on a terminal lifecycle verb: what must be resolved before the transition. Type: `object[]`. ###### application/json body.data.blockers item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `description` | string | Yes | | | `type` | "non_zero_balance" / "active_sub_resources" / "pending_operations" / "active_users" / "active_service_accounts" / "active_role_assignments" | Yes | | | `assets` | object[] | No | minItems: 1 | | `count` | integer | No | minimum: 0; maximum: 9007199254740991 | Additional fields are not accepted. ###### application/json body.data.blockers item.assets Type: `object[]`. minItems: 1 ###### application/json body.data.blockers item.assets item | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `asset` | string | Yes | Currency code (ISO-4217 or on-chain ticker) pattern: `^[A-Z0-9]{1,16}$` | | `kind` | "balance" / "held" / "owed" / "unsettled" | Yes | | Additional fields are not accepted. ###### application/json body.data.max_source_amount For `amount_below_minimum` / `amount_above_maximum`: the product maximum in source asset units; null means no maximum. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ###### application/json body.data.min_source_amount For `amount_below_minimum` / `amount_above_maximum`: the effective minimum in source asset units, fees included. | Field | Type | Required | Description and constraints | | --- | --- | --- | --- | | `currency` | string | Yes | | | `value` | string | Yes | | Additional fields are not accepted. ### Response 403 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 404 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 500 schema Content type: `application/json`. See [response 401 schema](#response-401-schema). ### Response 502 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). ### Response 503 schema Content type: `application/json`. See [response 400 schema](#response-400-schema). **Related endpoints:** - `POST` [Create withdrawal](/api/reference/withdrawals/withdrawals-create) — Initiate a new withdrawal - `GET` [Get withdrawal](/api/reference/withdrawals/withdrawals-get) — Fetch a single withdrawal by ID