List Payment methods
curl --request GET \
--url https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods', 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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods",
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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods"
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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods")
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{
"paymentMethods": [
{
"id": "crypto.direct",
"providerCode": "direct",
"type": "crypto",
"displayName": "Arbitrum USDC",
"networkCode": "arbitrum",
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"assetSymbol": "USDC",
"decimals": 6,
"available": true,
"availability": "ready",
"recommended": true,
"disabledReason": null,
"estimatedSeconds": null,
"minimumAmount": {
"amountAtomic": "10000000",
"amountDecimal": "10",
"assetSymbol": "USDC",
"decimals": 6,
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"minimumAmountSource": "stableyard",
"maximumAmount": {
"amountAtomic": "10000000",
"amountDecimal": "10",
"assetSymbol": "USDC",
"decimals": 6,
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"executionTypes": [
"deposit_address"
],
"walletFamily": "evm"
}
]
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required"
}
}{
"error": {
"code": "not_found",
"message": "The resource was not found"
}
}Hosted checkout
List payment methods for a checkout payment
List the methods a payer can use to fund a checkout Payment.
GET
/
v2
/
public
/
payments
/
{paymentId}
/
payment-methods
List Payment methods
curl --request GET \
--url https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods', 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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods",
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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods"
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://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.stableyard.fi/v2/public/payments/{paymentId}/payment-methods")
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{
"paymentMethods": [
{
"id": "crypto.direct",
"providerCode": "direct",
"type": "crypto",
"displayName": "Arbitrum USDC",
"networkCode": "arbitrum",
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"assetSymbol": "USDC",
"decimals": 6,
"available": true,
"availability": "ready",
"recommended": true,
"disabledReason": null,
"estimatedSeconds": null,
"minimumAmount": {
"amountAtomic": "10000000",
"amountDecimal": "10",
"assetSymbol": "USDC",
"decimals": 6,
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"minimumAmountSource": "stableyard",
"maximumAmount": {
"amountAtomic": "10000000",
"amountDecimal": "10",
"assetSymbol": "USDC",
"decimals": 6,
"chainId": 42161,
"tokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"executionTypes": [
"deposit_address"
],
"walletFamily": "evm"
}
]
}{
"error": {
"code": "unauthorized",
"message": "Authentication is required"
}
}{
"error": {
"code": "not_found",
"message": "The resource was not found"
}
}Returns the methods that can fund this Payment, authenticated with its
clientSecret as a Bearer token. Each method reports its type (crypto, fiat_onramp or card), network, token and decimals, availability, minimum and maximum amounts, and execution types.
Direct methods are ready immediately. Routing and hosted on-ramp methods are provider_confirmation_required: they need a live quote or order when the option is created, and available does not promise that the quote will succeed. When minimumAmountSource is provider, the exact minimum is dynamic and enforced when the option is created.
Pick one with Select a payment method.Authorizations
Short-lived browser capability for exactly one payment_* resource. Never place it in a URL.
Path Parameters
The payment_* ID returned when the Payment was created.
Pattern:
^payment_[A-Za-z0-9_-]+$Example:
"payment_123"
Response
Available payment methods
Show child attributes
Show child attributes