curl --request POST \
--url https://api-sb.meld.io/crypto/order/headless/offramp \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"destinationCurrencyCode": "USD",
"fiatPayoutMethod": {
"type": "ACH",
"details": {
"bankName": "Example Bank",
"bankAccountType": "CHECKING",
"routingNumber": "110000000",
"accountNumber": "000123456789",
"beneficiaryAddress": {
"streetLineOne": "123 Main St",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
}
}
},
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USDC"
}
'{
"id": "<string>",
"paymentMethodType": "ACH",
"continuationToken": "<string>",
"errorCode": "PROVIDER_ERROR",
"errorText": "Yellowcard closed the send as failed before it was approved; nothing was paid out",
"headlessPresentation": {
"protocol": "<string>",
"surface": "<string>",
"version": 2
},
"orderId": "WfR7abcDEF12345xyz9876",
"paymentActions": {
"bearerTokenPointer": "<string>",
"endpoint": "<string>",
"operations": [
{
"idempotencyKeyRequired": true,
"operation": "VALIDATE_MERCHANT"
}
],
"version": 123
},
"paymentMethodResponseDetails": "<unknown>",
"serviceProviderDid": "did:ethr:0x4f2b8c1d9e3a7f5b2c8d6e4a1b9f3c7d5e2a8b4c",
"sourceAmount": 134.3,
"status": "AWAITING_DEPOSIT",
"walletAddress": "0x000000000000000000000000000000000000dEaD"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "CONFLICT",
"message": "Conflict",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Create a headless offramp order
Creates a headless offramp order. Caller passes customer + provider + source crypto + fiat payout method and receives a provider-issued wallet address to send cryptocurrency to.
Customer. Name the customer by customerId (Meld’s id) or externalCustomerId (yours). With externalCustomerId alone the order is for your customer with that id, created on first use with nothing but the id, so a mistyped id makes a new customer rather than a 404. Both together must name the same customer (INCOMPATIBLE_REQUEST otherwise); neither is CUSTOMER_ID_REQUIRED.
Your order reference. externalOrderId (optional) is your reference for the order, unique per account: one an earlier order already carries is EXTERNAL_ORDER_ID_NOT_UNIQUE, checked before any provider call. It is echoed on the order status, the order’s transactions and its webhooks.
Response. status is the order’s lifecycle status as stored (AWAITING_DEPOSIT for a new order), the same value GET /crypto/order//status returns.
Refund wallet. refundWalletAddress is where a deposit is returned if the order is refunded. It must be an address on the source currency’s chain (SOURCE_WALLET_INVALID otherwise), may differ from sourceWalletAddress, and cannot be changed once the order exists. Accounts whose orders are held to a quote must send quoteId, destinationAmount and refundWalletAddress on every order.
From a quote. Send quoteId (the id of a POST /payments/partner/quote response; an id from POST /payments/crypto/quote is refused with QUOTE_ORDER_MISMATCH on quoteId) with exactly one of destinationAmount and sourceAmount. The order is created at exactly the quoted amounts — the provider is not quoted again — and the response’s sourceAmount is the crypto amount to send. countryCode may be omitted: the order takes the quote’s (sent, it must match). Without a quoteId, countryCode is required (TRANSACTION_REQUEST_VALIDATION_ERROR). A quote creates one order, within 10 minutes of being issued. Checked before any provider call; a rejected order is not created:
| Code | HTTP | When |
|---|---|---|
QUOTE_EXPIRED | 400 | The quoteId is unknown or another account’s, was issued more than 10 minutes ago, or the provider’s own quote behind it has expired. Request a new quote. |
QUOTE_ORDER_MISMATCH | 400 | The quote has no quote from serviceProvider, or sourceCurrencyCode, destinationCurrencyCode, countryCode, fiatPayoutMethod.type, destinationAmount or sourceAmount differs from it (errors names the field), or the quote was already used (errors: quoteId), or it is not a partner quote (errors: quoteId). |
Name the bank with details.bankIdentifier, using a bank from GET /network-partner/banks: type BANK_DIRECTORY_CODE with its Meld code (BANCOLOMBIA), NATIONAL_BANK_CODE with its nationalCode (Colombia ACH 007; leading zeros ignored), or SWIFT_BIC with its swiftBic (8 or 11 characters, for the order’s country). Never send bankCode: it is the provider’s code, which Meld fills from the identifier, and sending it, alone or with bankIdentifier, is 400 BENEFICIARY_DETAILS_INVALID. An unknown type, a blank value, an identifier that names no bank the provider maps (a bank with no national code or BIC on file cannot be named by one), or a provider with no bank list for the country is 400 BANK_NOT_RESOLVED. A payment method that needs a bank and has no identifier is 400 BANK_NOT_RESOLVED. In each case no order is created. Invalid or missing payout details return 400 BENEFICIARY_DETAILS_INVALID.
A rejected order does not use the quote up — rejected by Meld before reaching the provider (e.g. SOURCE_WALLET_INVALID) or refused by the provider (4xx): a corrected order on the same quoteId can follow. If the provider call fails (5xx) or times out, Meld asks the provider whether it created the payout: if so the order is created (201); if not, the quote stays used (the payout may still be in progress): request a new quote. Retrying with the same X-Idempotency-Key returns the first order.
curl --request POST \
--url https://api-sb.meld.io/crypto/order/headless/offramp \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"destinationCurrencyCode": "USD",
"fiatPayoutMethod": {
"type": "ACH",
"details": {
"bankName": "Example Bank",
"bankAccountType": "CHECKING",
"routingNumber": "110000000",
"accountNumber": "000123456789",
"beneficiaryAddress": {
"streetLineOne": "123 Main St",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "US"
}
}
},
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USDC"
}
'{
"id": "<string>",
"paymentMethodType": "ACH",
"continuationToken": "<string>",
"errorCode": "PROVIDER_ERROR",
"errorText": "Yellowcard closed the send as failed before it was approved; nothing was paid out",
"headlessPresentation": {
"protocol": "<string>",
"surface": "<string>",
"version": 2
},
"orderId": "WfR7abcDEF12345xyz9876",
"paymentActions": {
"bearerTokenPointer": "<string>",
"endpoint": "<string>",
"operations": [
{
"idempotencyKeyRequired": true,
"operation": "VALIDATE_MERCHANT"
}
],
"version": 123
},
"paymentMethodResponseDetails": "<unknown>",
"serviceProviderDid": "did:ethr:0x4f2b8c1d9e3a7f5b2c8d6e4a1b9f3c7d5e2a8b4c",
"sourceAmount": 134.3,
"status": "AWAITING_DEPOSIT",
"walletAddress": "0x000000000000000000000000000000000000dEaD"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "CONFLICT",
"message": "Conflict",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "<string>",
"message": "<string>",
"errors": [
"<string>"
],
"serviceProviderDetails": {},
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Headers
Body
Request to create a headless offramp order
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).
"US"
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.
400000
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.
255"paypal-order-123"
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.
"WePXaTBtxJ3qkYfPWGhtLD"
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.
"9xQeWvG816bUx9EPfEZt6j8t8xJ5N5N8Q7k2x4y6z8a"
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.
"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo"
Response
Headless offramp order created
Response containing headless offramp order details
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.
AWAITING_DEPOSIT, DEPOSIT_RECEIVED, SETTLING, UNDER_REVIEW, SETTLED, REFUNDED, EXPIRED, FAILED, CANCELLED "AWAITING_DEPOSIT"