curl --request GET \
--url https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}import requests
url = "https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}', 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/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"partner": "UPHOLD",
"source": "USD",
"destination": "USDC",
"paymentMethods": [
{
"paymentType": "CARD",
"name": "CREDIT_DEBIT_CARD",
"partnerMethodName": "credit-card",
"category": "CRYPTO_ONRAMP",
"limits": {
"currencyCode": "USD",
"min": 10.83,
"max": 16133
},
"logo": {
"dark": "https://cdn.meld.io/images-paymentmethod/CREDIT_DEBIT_CARD/logo_dark.png",
"light": "https://cdn.meld.io/images-paymentmethod/CREDIT_DEBIT_CARD/logo_light.png"
},
"headlessSupported": true,
"checkoutSupported": false,
"cardRenderMode": "IFRAME",
"headlessPresentation": {
"surface": "EMBEDDED_WIDGET",
"protocol": "UPHOLD_WIDGET",
"version": 1
},
"headlessProviderMethod": "credit-card"
},
{
"paymentType": "BANK_TRANSFER",
"name": "ACH",
"partnerMethodName": "ACH",
"category": "CRYPTO_VIRTUAL_ACCOUNT_ONRAMP",
"limits": {
"currencyCode": "USD",
"min": 10.83,
"max": 16133
},
"logo": {
"dark": "https://cdn.meld.io/images-paymentmethod/ACH/logo_dark.png",
"light": "https://cdn.meld.io/images-paymentmethod/ACH/logo_light.png"
},
"headlessSupported": true,
"checkoutSupported": false,
"headlessProviderMethod": "ACH"
}
],
"kycLimits": []
}
]{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}List supported routes by direction
Same as find-supported-routes, across every non-swap category of the direction: ONRAMP covers CRYPTO_ONRAMP and CRYPTO_VIRTUAL_ACCOUNT_ONRAMP (fiat to crypto), OFFRAMP covers CRYPTO_OFFRAMP and CRYPTO_VIRTUAL_ACCOUNT_OFFRAMP (crypto to fiat). Each payment method carries the category it is published under; a method published under two categories is returned once per category. When both paymentMethod and paymentType are provided, paymentMethod takes precedence. An unknown countryCode, or a subdivision outside US and CA, returns 400. Provider scope rules:
- No authentication: results come from the global dataset;
Meld-Account-Idis ignored. - Basic Auth only: results are restricted to the authenticated identity’s
providersclaim. An identity without aprovidersclaim, or with an empty one, is unrestricted. Meld-Account-Idonly: ignored for anonymous callers.- Both Basic Auth and
Meld-Account-Id: results are restricted to the intersection of both provider sets. An account id this service has no account data for leaves the scope unchanged; a known account with no providers yields an empty scope. - Naming an account that does not belong to the caller returns
403when account-header enforcement is enabled, unless the caller has an authorized administrator or service role. With enforcement in monitor mode, the request is only reported and proceeds. - Explicit partner filters are intersected with the resolved provider scope.
Explicit partners filtering is intersected with the resolved provider scope.
If the effective provider scope contains no providers, this collection endpoint returns 200 with an empty result.
curl --request GET \
--url https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}import requests
url = "https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}', 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/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/network-partner/supported/routes/direction/{direction}/{countryCode}/{sourceCurrencyCode}/{destinationCurrencyCode}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"partner": "UPHOLD",
"source": "USD",
"destination": "USDC",
"paymentMethods": [
{
"paymentType": "CARD",
"name": "CREDIT_DEBIT_CARD",
"partnerMethodName": "credit-card",
"category": "CRYPTO_ONRAMP",
"limits": {
"currencyCode": "USD",
"min": 10.83,
"max": 16133
},
"logo": {
"dark": "https://cdn.meld.io/images-paymentmethod/CREDIT_DEBIT_CARD/logo_dark.png",
"light": "https://cdn.meld.io/images-paymentmethod/CREDIT_DEBIT_CARD/logo_light.png"
},
"headlessSupported": true,
"checkoutSupported": false,
"cardRenderMode": "IFRAME",
"headlessPresentation": {
"surface": "EMBEDDED_WIDGET",
"protocol": "UPHOLD_WIDGET",
"version": 1
},
"headlessProviderMethod": "credit-card"
},
{
"paymentType": "BANK_TRANSFER",
"name": "ACH",
"partnerMethodName": "ACH",
"category": "CRYPTO_VIRTUAL_ACCOUNT_ONRAMP",
"limits": {
"currencyCode": "USD",
"min": 10.83,
"max": 16133
},
"logo": {
"dark": "https://cdn.meld.io/images-paymentmethod/ACH/logo_dark.png",
"light": "https://cdn.meld.io/images-paymentmethod/ACH/logo_light.png"
},
"headlessSupported": true,
"checkoutSupported": false,
"headlessProviderMethod": "ACH"
}
],
"kycLimits": []
}
]{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}Headers
Optional. Base58 encoded account id, ignored for anonymous callers. For authenticated callers, intersects identity providers with account providers. With account-header enforcement enabled, the account must belong to the caller unless the caller has an authorized administrator or service role.
Path Parameters
Query Parameters
Response
Supported routes