List rails
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/rails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/rails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/rails', 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.enterprise.sandbox.uphold.com/core/rails",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.enterprise.sandbox.uphold.com/core/rails"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.enterprise.sandbox.uphold.com/core/rails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/rails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"rails": [
{
"type": "crypto",
"network": "bitcoin",
"method": "crypto-transaction",
"asset": "BTC",
"decimals": 8,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "crypto",
"network": "ethereum",
"method": "crypto-transaction",
"asset": "USDC",
"decimals": 6,
"features": [
"deposit",
"withdraw"
],
"contractAddress": "0xd6d663b601D63a0d1A651D61847Ec8134Eb3a3CF"
},
{
"type": "card",
"network": "visa",
"method": "debit-card",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "bank",
"network": "ach",
"method": "bank-transfer",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
],
"constraints": [
{
"rule": "allowed-deposit-accounts",
"allowed": "default-only"
}
]
},
{
"type": "bank",
"network": "fps",
"method": "bank-transfer",
"asset": "GBP",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "apm",
"network": "paypal",
"method": "paypal",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
}
]
}Assets
List rails
List rails supported by the platform.
GET
/
core
/
rails
List rails
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/rails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/rails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/rails', 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.enterprise.sandbox.uphold.com/core/rails",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.enterprise.sandbox.uphold.com/core/rails"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.enterprise.sandbox.uphold.com/core/rails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/rails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"rails": [
{
"type": "crypto",
"network": "bitcoin",
"method": "crypto-transaction",
"asset": "BTC",
"decimals": 8,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "crypto",
"network": "ethereum",
"method": "crypto-transaction",
"asset": "USDC",
"decimals": 6,
"features": [
"deposit",
"withdraw"
],
"contractAddress": "0xd6d663b601D63a0d1A651D61847Ec8134Eb3a3CF"
},
{
"type": "card",
"network": "visa",
"method": "debit-card",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "bank",
"network": "ach",
"method": "bank-transfer",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
],
"constraints": [
{
"rule": "allowed-deposit-accounts",
"allowed": "default-only"
}
]
},
{
"type": "bank",
"network": "fps",
"method": "bank-transfer",
"asset": "GBP",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
},
{
"type": "apm",
"network": "paypal",
"method": "paypal",
"asset": "USD",
"decimals": 2,
"features": [
"deposit",
"withdraw"
]
}
]
}
If the subject calling the endpoint is a user, the response will be contextualized accordingly.
As an example, the
features field will indicate the available features for the user.Authorizations
OAuth 2.0 authentication.
FlowClient Credentials
- Token URL
- /core/oauth2/token
Query Parameters
Filter rails by type.
Maximum array length:
25Available options:
crypto, card, bank, apm Filter rails by network code.
Maximum array length:
25Minimum string length:
1Filter rails by method.
Maximum array length:
25Available options:
crypto-transaction, credit-card, debit-card, bank-transfer, apple-pay, google-pay, paypal, venmo Filter rails by asset code.
Maximum array length:
100Minimum string length:
1Response
200 - application/json
Rails retrieved.
- Crypto
- Card
- Bank
- Alternative payment method
Show child attributes
Show child attributes
Was this page helpful?