Skip to main content
End-to-end guide for integrating Meld’s standing virtual-account onramp (fiat → crypto) over the Payment and Account APIs.
A provider provisions reusable bank deposit details for the user. When the user sends fiat to that account, the provider converts it and sends crypto to the destination wallet you registered. You present your own UI — there is no Meld-hosted widget. Fetch deposit instructions once per customer + provider + payment method + currency pair + destination wallet. The user reuses the same account for later deposits.
API compatibility: New fields may appear in responses without a version bump. Use flexible JSON parsing and do not reject unknown properties. Breaking changes ship under a dated Meld-Version.

Before you begin

  • You have a Meld API key with payment access (sandbox first, production for go-live)
For the sandbox testing guide, please refer to Virtual Account Flow Testing Credentials
  • You have a webhook endpoint configured in Developer → Webhooks in the dashboard
  • At least one headless-capable onramp provider is enabled on your account (for example Noah, Due Network, or Brale)
  • Your account has headless onramps enabled (account_preference.crypto.headlessOnrampsEnabled). Reach out to Meld support to confirm this is enabled.
  • If you are using Meld to KYC, then your Meld account must have Sumsub configured. Reach out to Meld for help enabling this if needed.

Flow overview

One time per user

  1. Create a customer (and address when required).
  2. Configure webhooks.
  3. Read the requirements of each provider you will use.
  4. Complete what they list, KYC included, until eligible is true.
  5. Fetch virtual account details for customer + provider + payment method + currency pair + destination wallet.

Every deposit

  1. (Optional) Get a quote for the amount the user wants to send.
  2. User sends fiat to the same stored VA details.
  3. Track via webhooks / Transactions API.

Provider-specific requirements

Most of this guide applies to every provider. Some providers need something extra or work differently. Check the rows for the providers enabled on your account.

1. Create a customer

Endpoint: POST /accounts/customers Once per end user. Reuse the same Meld customerId for KYC, quotes, and deposit instructions.

Required fields

Response:
Save the returned id. You may also use externalCustomerId on some endpoints when supported.

Add a customer address (when your provider requires it)

Some providers need a residential address before KYC (see Provider-specific requirements). Add it before you start KYC. Endpoint: POST /accounts/customers/{customerId}/addresses
Response:

2. Configure webhooks

Set this up before KYC so you receive CUSTOMER_KYC_STATUS_CHANGE as well as transaction events. In the Meld dashboard (Developer → Webhooks), subscribe at minimum to:
  • CUSTOMER_KYC_STATUS_CHANGE
  • TRANSACTION_CRYPTO_PENDING
  • TRANSACTION_CRYPTO_TRANSFERRING
  • TRANSACTION_CRYPTO_COMPLETE
  • TRANSACTION_CRYPTO_FAILED
Verify signatures per Webhook authentication docs.

3. Check the requirements

Endpoint: GET /crypto/onramp/{serviceProvider}/requirements?customerId={customerId} Header: Meld-Version: 2026-11-01 Read each provider’s requirements before you start KYC, one call per provider. This is the eligibility endpoint headless orders use. Send customerId only: deposit instructions have no amount, so there is no order to check. The response lists every step between this customer and the provider, with the call that clears each one.
In an app or a web page, Meld.ensureReady can run these steps for you: create a requirements session for the customer and your providers, without an order, and fetch the deposit instructions once it ends READY.
A new customer heading to Noah:
For Due Network, the same customer without a name, an email or an address also has a CUSTOMER_DETAILS step for each, before MELD_KYC: Due’s PROVIDER_KYC_SHARE then depends on those details as well as on MELD_KYC_APPROVED. MELD_KYC never depends on them, so the customer can start KYC while you collect them. Work through the list as The checklist describes: do each step whose dependsOn steps are SATISFIED and whose action is a CALL or OPEN_URL, wait on the rest, and read the requirements again after each step and each webhook. The provider is ready once eligible is true.

4. KYC

Start Unified KYC once per customer, naming every provider you plan to use. Take the call from the MELD_KYC step’s action, and add the providers your other requirements name. Endpoint: POST /accounts/customers/{customerId}/kyc/initiate Header: Meld-Version: 2026-11-01 Choose one Sumsub initiation mode: For virtual-account onramps, NOAH and DUENETWORK take a shared Sumsub KYC. Meld shares with each one once Sumsub approves the customer and the provider has what it needs before the share, such as Due’s name, email and address. A provider that still lacks one never fails the call: the response lists it in sharePrerequisites, and Meld shares once you add it. See What a provider needs before the share.
Response:
Direct the user to url before expiresAt. Calling the same POST again gives a fresh one. Listen for CUSTOMER_KYC_STATUS_CHANGE.

4b. TOKEN_IMPORT — import an existing Sumsub applicant

There is typically no Sumsub url to open — Meld attaches the existing applicant and shares with each named provider. Listen for CUSTOMER_KYC_STATUS_CHANGE the same way. If your account is set up to forward the token straight to the providers instead of importing it, Meld can’t wait for what a provider needs before the share. A provider that lacks it fails the call with 422 KYC_SHARE_PREREQUISITES_MISSING, and nothing is forwarded.

4c. After Sumsub: the provider’s own steps

After each CUSTOMER_KYC_STATUS_CHANGE webhook, read the requirements again. Once Meld has shared the KYC, a provider may still need its own step, which the requirements list with an OPEN_URL action. Noah, after the share, with its hosted onboarding open:
Never log or store a hosted URL. Meld includes it only for an API key that can create orders.

4d. Ready

The provider is ready once its requirements answer eligible: true. Fetch the deposit instructions then.

5. Get a quote (optional)

Endpoint: POST /payments/crypto/quote?integrationMode=HEADLESS Header: Meld-Version: 2026-05-01 Note that Brale does not support quotes. All Brale transactions are 1:1 (USD to USD backed stablecoin). customerId is optional. Pass it when available so ramp intelligence / previously-used scoring can use it. Use quotes to show rates, fees, available providers / methods, and each provider’s kycMode.
Response:
Some providers (for example Brale) may not surface commercial quotes the same way; confirm available providers in Network Partner / quote responses for your account.

6. Fetch virtual account details

Endpoint: POST /payments/virtual-account/deposit-instructions Call this once for that customer + provider + payment method + currency pair + destination wallet. Store the returned bank details. Do not call again for each deposit unless that combination changes. Idempotency (recommended): X-Idempotency-Key: <uuid>
  • Successful create / return → HTTP 201
  • Same key after success → cached body, HTTP 200

Request (ACH example)

Response (ACH example)

Display details from receivingBankInformation (typed fields) and any extras in serviceProviderDetails. The user sends fiat from their bank app. Meld and the provider do not collect the user’s bank login credentials.

Response (SEPA example)

For SEPA, show iban / bic (and bank / account-holder name) from receivingBankInformation. Some providers also return a payment reference (for example Due Network’s memo in serviceProviderDetails) — the payer must include this reference on the transfer so the provider can correlate funds.

When deposit instructions are refused

After you have the details

  1. Store the VA details against your user.
  2. On later deposits: optional quote → show the same account / routing (or IBAN) → user sends fiat.
  3. Listen for transaction webhooks — no new deposit-instructions call unless destination wallet, currencies, provider, or payment method changes.
Testing in sandbox: you cannot send real fiat to the account, so call the simulate endpoint to create a test deposit instead — see Simulate a deposit.

7. Tracking

Webhook events (buy)

A deposit produces this sequence. Correlate every one of them with paymentTransactionId. Every event uses the same envelope and payload shape, with eventType and payload.paymentTransactionStatus moving together:
The terminal event is the same shape:
Virtual account payloads carry no session fields. sessionId and externalSessionId only exist for widget transactions, which are created from a session. A virtual account deposit has none, and the payload omits empty fields entirely rather than sending them as null — so do not key your handler on their presence.The payload also does not carry the order id. To go from a webhook back to the order, take paymentTransactionId, call GET /payments/transactions/{paymentTransactionId}, and read orderId from the transaction.

Fetch the full transaction

Endpoint: GET /payments/transactions/{paymentTransactionId}

Sequence Diagram

Notes and limits

  • Standing virtual accounts require headlessOnrampsEnabled on the account.
  • The requirements are advisory. Deposit instructions are the final check, so handle their refusals too.
  • Primary API: POST /payments/virtual-account/deposit-instructions (fetch once, reuse).
  • Supported payment methods for this flow: ACH, SEPA, PIX, MOBILE_MONEY.
  • Provider sandboxes do not move real money, but you can still complete a full onramp in sandbox for Noah and Due Network — see Simulate a deposit. For other providers you may stop at instruction issuance.