Create or retrieve standing virtual-account onramp deposit instructions
curl --request POST \
--url https://api-sb.meld.io/payments/virtual-account/deposit-instructions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "<string>",
"destinationCurrencyCode": "USDC",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USD"
}
'import requests
url = "https://api-sb.meld.io/payments/virtual-account/deposit-instructions"
payload = {
"customerId": "<string>",
"destinationCurrencyCode": "USDC",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USD"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customerId: '<string>',
destinationCurrencyCode: 'USDC',
destinationWalletAddress: '0x000000000000000000000000000000000000dEaD',
paymentMethodType: 'ACH',
serviceProvider: 'NOAH',
sourceCurrencyCode: 'USD'
})
};
fetch('https://api-sb.meld.io/payments/virtual-account/deposit-instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sb.meld.io/payments/virtual-account/deposit-instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customerId' => '<string>',
'destinationCurrencyCode' => 'USDC',
'destinationWalletAddress' => '0x000000000000000000000000000000000000dEaD',
'paymentMethodType' => 'ACH',
'serviceProvider' => 'NOAH',
'sourceCurrencyCode' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sb.meld.io/payments/virtual-account/deposit-instructions"
payload := strings.NewReader("{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sb.meld.io/payments/virtual-account/deposit-instructions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/payments/virtual-account/deposit-instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"customerId": "<string>",
"depositInstructionsId": "<string>",
"destinationCurrencyCode": "<string>",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "<string>",
"receivingBankInformation": {
"paymentMethodType": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"bankName": "<string>",
"accountHolderName": "<string>"
},
"serviceProviderDetails": {}
}Headless
Create or retrieve standing virtual-account onramp deposit instructions
Provisions a standing virtual bank account for recurring onramp deposits, or returns the existing instructions when the same customer, provider, payment method, currency pair, and destination wallet were already set up.
POST
/
payments
/
virtual-account
/
deposit-instructions
Create or retrieve standing virtual-account onramp deposit instructions
curl --request POST \
--url https://api-sb.meld.io/payments/virtual-account/deposit-instructions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "<string>",
"destinationCurrencyCode": "USDC",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USD"
}
'import requests
url = "https://api-sb.meld.io/payments/virtual-account/deposit-instructions"
payload = {
"customerId": "<string>",
"destinationCurrencyCode": "USDC",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "USD"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customerId: '<string>',
destinationCurrencyCode: 'USDC',
destinationWalletAddress: '0x000000000000000000000000000000000000dEaD',
paymentMethodType: 'ACH',
serviceProvider: 'NOAH',
sourceCurrencyCode: 'USD'
})
};
fetch('https://api-sb.meld.io/payments/virtual-account/deposit-instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sb.meld.io/payments/virtual-account/deposit-instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customerId' => '<string>',
'destinationCurrencyCode' => 'USDC',
'destinationWalletAddress' => '0x000000000000000000000000000000000000dEaD',
'paymentMethodType' => 'ACH',
'serviceProvider' => 'NOAH',
'sourceCurrencyCode' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sb.meld.io/payments/virtual-account/deposit-instructions"
payload := strings.NewReader("{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sb.meld.io/payments/virtual-account/deposit-instructions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/payments/virtual-account/deposit-instructions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customerId\": \"<string>\",\n \"destinationCurrencyCode\": \"USDC\",\n \"destinationWalletAddress\": \"0x000000000000000000000000000000000000dEaD\",\n \"paymentMethodType\": \"ACH\",\n \"serviceProvider\": \"NOAH\",\n \"sourceCurrencyCode\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"customerId": "<string>",
"depositInstructionsId": "<string>",
"destinationCurrencyCode": "<string>",
"destinationWalletAddress": "0x000000000000000000000000000000000000dEaD",
"paymentMethodType": "ACH",
"serviceProvider": "NOAH",
"sourceCurrencyCode": "<string>",
"receivingBankInformation": {
"paymentMethodType": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"bankName": "<string>",
"accountHolderName": "<string>"
},
"serviceProviderDetails": {}
}Headers
Body
application/json
Request to provision or retrieve standing virtual-account deposit instructions
Response
Deposit instructions created or returned successfully
Standing virtual-account deposit instructions