Skip to main content
POST

Authorizations

Authorization
string
header
default:BASIC <Meld API Key>
required

Headers

Meld-Version
string

Dated API version to use for this request, e.g. 2026-02-03.

Example:

"2026-02-03"

X-Idempotency-Key
string<uuid>

Body

application/json

Request to create a headless offramp order

destinationCurrencyCode
string
required

Destination fiat currency code

Minimum string length: 1
Example:

"USD"

fiatPayoutMethod
object
required

Payout destination. details has no fixed schema. Call GET /supported/payment-methods/requirements without a serviceProvider to get requirements for every provider. Optionally filter by serviceProvider.

serviceProvider
enum<string>
required

Service provider to use for this offramp order

Available options:
NOAH,
DUENETWORK,
BRALE,
YELLOWCARD,
DLOCAL,
TZERO,
COINME
Example:

"NOAH"

sourceCurrencyCode
string
required

Source cryptocurrency code

Minimum string length: 1
Example:

"PYUSD_SOLANA"

countryCode
string

Country of the payout bank (ISO 3166-1 alpha-2). Used to check that this provider can pay out via this method in that country. Not the person's country — that is beneficiaryAddress.country when published. Optional with a quoteId: omitted, the order takes the quote's countryCode; sent, it must equal it (otherwise QUOTE_ORDER_MISMATCH). Required without a quoteId (TRANSACTION_REQUEST_VALIDATION_ERROR).

Example:

"US"

customerId
string

Meld customer id. Send customerId or externalCustomerId (or both, when they name the same customer); an order with neither is rejected with CUSTOMER_ID_REQUIRED.

destinationAmount
number

Fiat amount the customer receives. With quoteId it must equal the quote's destinationAmount; the response's sourceAmount is then the crypto amount to send. Without quoteId only for a COINME US_CASH payout: the ATM cash in USD, a multiple of 20; the crypto amount that must arrive comes from SELECT_CASH_LOCATION.

Example:

400000

externalCustomerId
string

Your id for the customer. Without customerId, the order is for your customer with this id, who is created on first use; send it with customerId only when both name the same customer (otherwise INCOMPATIBLE_REQUEST).

Example:

"paypal-customer-123"

externalOrderId
string

Your reference for the order, unique per account (otherwise 400 EXTERNAL_ORDER_ID_NOT_UNIQUE, checked before any provider call). It is echoed on the order status, the order's transactions and its webhooks. At most 255 characters.

Maximum string length: 255
Example:

"paypal-order-123"

externalSubaccountCustomerId
string

Optional external identifier for the sub-account customer this transaction belongs to. Used for tracking when multiple businesses operate under one Meld account. A sub-account customer must be created first before it can be referenced.

providerOfframpDetails
TzeroOfframpDetails · object

T-0-specific offramp details — IVMS-101 travel-rule data, required by T-0

quoteId
string

Id of a quote from POST /payments/partner/quote. The order is created at exactly that quote's amounts, without quoting the provider again. It must be used within 10 minutes of the quote, once, by the account that requested it (and, when the quote named a customer, for that customer), and its serviceProvider, currencies, countryCode and amount must match the quote's entry for that provider: otherwise the order is rejected with 400 QUOTE_EXPIRED or QUOTE_ORDER_MISMATCH and nothing is created. The id on a POST /payments/crypto/quote response (Meld-Version 2026-09-01) cannot be used: QUOTE_ORDER_MISMATCH on quoteId. Only DLOCAL, DUENETWORK and YELLOWCARD orders can be created from a quote today; any other serviceProvider is QUOTE_ORDER_MISMATCH.

Example:

"WePXaTBtxJ3qkYfPWGhtLD"

refundWalletAddress
string

Wallet a deposit is returned to if the order is refunded. It may differ from sourceWalletAddress, must be in the format of the source currency's chain (base58 on Solana), and cannot be changed after the order is created. Required for some accounts; missing where required, or malformed, it is rejected with SOURCE_WALLET_INVALID.

Example:

"9xQeWvG816bUx9EPfEZt6j8t8xJ5N5N8Q7k2x4y6z8a"

sourceAmount
number

Source amount in cryptocurrency. Send exactly one of sourceAmount and destinationAmount: omit it when the order is created by destinationAmount. With a quoteId it must equal the quote's sourceAmount.

Example:

20000

sourceWalletAddress
string

Wallet address the cryptocurrency is sent from, in the format of the source currency's chain (base58 on Solana, 0x-hex on EVM chains such as Ethereum and Base). Optional for COINME, DLOCAL and YELLOWCARD; required by every other provider. A missing (where required) or malformed address is rejected with SOURCE_WALLET_INVALID.

Example:

"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo"

subaccountCustomerId
string

Optional Meld customer id used to track the business sub-account this transaction belongs to when multiple businesses operate under one Meld account.

Response

Headless offramp order created

Response containing headless offramp order details

id
string
required
deprecated

Deprecated: use orderId, which holds the same value. Kept for existing integrators.

Minimum string length: 1
paymentMethodType
string
required

Payout method for receiving the converted fiat currency

Minimum string length: 1
Example:

"ACH"

continuationToken
string

Bearer token for paymentActions, bound to this order. Present only when the payout destination is set up after create (COINME: the payout card or cash location). Valid for 7 days, so the COINME cash code can still be read once the deposit has been sold.

errorCode
string | null

Why the order failed, when it is created FAILED: the provider took the order and closed it before it could pay out, so nothing is to be sent and walletAddress is absent. The same value GET /crypto/order/{orderId}/status returns.

Example:

"PROVIDER_ERROR"

errorText
string | null

The reason in words for errorCode.

Example:

"Yellowcard closed the send as failed before it was approved; nothing was paid out"

headlessPresentation
object

Presentation protocol for paymentMethodResponseDetails

orderId
string

Unique order ID for tracking the offramp order. The same value as the orderId of GET /crypto/order/{orderId}/status, the webhooks and the transaction.

Example:

"WfR7abcDEF12345xyz9876"

paymentActions
object

Versioned payment continuation endpoint and supported operations

paymentMethodResponseDetails

COINME card payout: what the Meld SDK needs to open Coinme's card form for the payout card, in the same shape as an onramp card order's paymentMethodResponseDetails.

serviceProviderDid
string | null

The selected service provider's Notabene DID: the counterparty VASP to register the Travel Rule transfer against. Null when Meld holds no DID for the provider; the order is created either way.

Example:

"did:ethr:0x4f2b8c1d9e3a7f5b2c8d6e4a1b9f3c7d5e2a8b4c"

sourceAmount
number

Crypto amount to send for this order. On an order created from a quoteId it is the quote's sourceAmount, for which the provider pays out exactly the quoted destinationAmount.

Example:

134.3

status
enum<string>

The order's lifecycle status as stored: AWAITING_DEPOSIT for a new order, or FAILED when the provider closed it before it could pay out (see errorCode). The same value GET /crypto/order/{orderId}/status returns.

Available options:
AWAITING_DEPOSIT,
DEPOSIT_RECEIVED,
SETTLING,
UNDER_REVIEW,
SETTLED,
REFUNDED,
EXPIRED,
FAILED,
CANCELLED
Example:

"AWAITING_DEPOSIT"

walletAddress
string

Wallet address to send the crypto funds to

Example:

"0x000000000000000000000000000000000000dEaD"