Get my payment
curl --request GET \
--url https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId}"
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/client/me/payments/{paymentId}', 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/client/me/payments/{paymentId}",
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/client/me/payments/{paymentId}"
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/client/me/payments/{paymentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId}")
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{
"payment": {
"id": "payment_123",
"apiVersion": "2026-09-09",
"intent": "receive",
"amountMode": "collect_exact",
"status": "requires_payment_method",
"offrampStatus": null,
"stage": null,
"operationalState": "normal",
"operationalReasonCode": null,
"operationalUpdatedAt": null,
"statusVersion": 1,
"paymentAmount": {
"amount": "50.00",
"amountAtomic": "50000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 6,
"chainId": 8453,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"sourceAmount": {
"amount": "50.00",
"amountAtomic": "50000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 6,
"chainId": 8453,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"participants": [
{
"role": "sender",
"accountId": "acct_123"
}
],
"recipientDisplay": {
"displayName": "Example account",
"logoUrl": null
},
"destination": {
"type": "upa",
"accountId": "acct_123"
},
"settlement": {
"type": "settlement_destination",
"settlementDestinationId": null,
"destinationType": "example",
"destinationAddress": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"assetCode": "USDC",
"tokenAddress": "0x1111111111111111111111111111111111111111",
"decimals": 0
},
"fees": {
"version": null,
"pricingStatus": "quote_pending",
"platformFeeBps": 0,
"partnerFeeBps": 0,
"platformFeeAmountAtomic": null,
"partnerFeeAmountAtomic": null,
"merchantNetAmountAtomic": null
},
"funding": {
"mode": "escrow",
"required": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"providerPrincipal": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"providerFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"platformFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"partnerFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"totalFees": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"exchangeRate": {
"rate": "1000000",
"baseAssetCode": "USDC",
"quoteAssetCode": "USDC"
},
"quoteExpiresAt": null,
"depositAddress": {
"address": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111",
"assetCode": "USDC",
"decimals": 0,
"amount": "1000000",
"amountAtomic": "1000000"
}
},
"externalReference": null,
"description": null,
"metadata": {},
"expiresAt": null,
"acceptedAt": null,
"succeededAt": null,
"cancelledAt": null,
"failure": {
"code": null,
"message": null
},
"refundSummary": {
"status": "none",
"count": 0,
"requestedAmountAtomic": "1000000",
"confirmedAmountAtomic": "1000000"
},
"incidentRecoverySummary": {
"count": 0,
"pendingCount": 0,
"confirmedCount": 0,
"failedCount": 0,
"requiresInterventionCount": 0,
"requestedAmountAtomic": "1000000",
"confirmedAmountAtomic": "1000000"
},
"createdAt": "2026-08-28T10:00:00.000Z",
"updatedAt": "2026-08-28T10:00:00.000Z"
},
"checkout": {
"paymentUrl": "https://example.com",
"clientSecret": "examplexxxxxxxxxxxxxxxxxxxxxxxxx",
"expiresAt": "2026-08-28T10:00:00.000Z",
"returnUrl": null
},
"nextAction": {
"id": "resource_123",
"type": "transaction",
"expiresAt": null,
"depositInstructions": {
"address": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111",
"assetCode": "USDC",
"decimals": 0,
"amount": "1000000",
"amountAtomic": "1000000"
}
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}Client payments
Get a payment for the client account
Fetch a Payment that the client token’s account owns or participates in.
GET
/
v2
/
client
/
me
/
payments
/
{paymentId}
Get my payment
curl --request GET \
--url https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId}"
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/client/me/payments/{paymentId}', 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/client/me/payments/{paymentId}",
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/client/me/payments/{paymentId}"
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/client/me/payments/{paymentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.stableyard.fi/v2/client/me/payments/{paymentId}")
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{
"payment": {
"id": "payment_123",
"apiVersion": "2026-09-09",
"intent": "receive",
"amountMode": "collect_exact",
"status": "requires_payment_method",
"offrampStatus": null,
"stage": null,
"operationalState": "normal",
"operationalReasonCode": null,
"operationalUpdatedAt": null,
"statusVersion": 1,
"paymentAmount": {
"amount": "50.00",
"amountAtomic": "50000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 6,
"chainId": 8453,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"sourceAmount": {
"amount": "50.00",
"amountAtomic": "50000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 6,
"chainId": 8453,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"participants": [
{
"role": "sender",
"accountId": "acct_123"
}
],
"recipientDisplay": {
"displayName": "Example account",
"logoUrl": null
},
"destination": {
"type": "upa",
"accountId": "acct_123"
},
"settlement": {
"type": "settlement_destination",
"settlementDestinationId": null,
"destinationType": "example",
"destinationAddress": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"assetCode": "USDC",
"tokenAddress": "0x1111111111111111111111111111111111111111",
"decimals": 0
},
"fees": {
"version": null,
"pricingStatus": "quote_pending",
"platformFeeBps": 0,
"partnerFeeBps": 0,
"platformFeeAmountAtomic": null,
"partnerFeeAmountAtomic": null,
"merchantNetAmountAtomic": null
},
"funding": {
"mode": "escrow",
"required": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"providerPrincipal": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"providerFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"platformFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"partnerFee": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"totalFees": {
"amount": "1000000",
"amountAtomic": "1000000",
"assetType": "crypto",
"assetCode": "USDC",
"decimals": 0,
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111"
},
"exchangeRate": {
"rate": "1000000",
"baseAssetCode": "USDC",
"quoteAssetCode": "USDC"
},
"quoteExpiresAt": null,
"depositAddress": {
"address": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111",
"assetCode": "USDC",
"decimals": 0,
"amount": "1000000",
"amountAtomic": "1000000"
}
},
"externalReference": null,
"description": null,
"metadata": {},
"expiresAt": null,
"acceptedAt": null,
"succeededAt": null,
"cancelledAt": null,
"failure": {
"code": null,
"message": null
},
"refundSummary": {
"status": "none",
"count": 0,
"requestedAmountAtomic": "1000000",
"confirmedAmountAtomic": "1000000"
},
"incidentRecoverySummary": {
"count": 0,
"pendingCount": 0,
"confirmedCount": 0,
"failedCount": 0,
"requiresInterventionCount": 0,
"requestedAmountAtomic": "1000000",
"confirmedAmountAtomic": "1000000"
},
"createdAt": "2026-08-28T10:00:00.000Z",
"updatedAt": "2026-08-28T10:00:00.000Z"
},
"checkout": {
"paymentUrl": "https://example.com",
"clientSecret": "examplexxxxxxxxxxxxxxxxxxxxxxxxx",
"expiresAt": "2026-08-28T10:00:00.000Z",
"returnUrl": null
},
"nextAction": {
"id": "resource_123",
"type": "transaction",
"expiresAt": null,
"depositInstructions": {
"address": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"tokenAddress": "0x1111111111111111111111111111111111111111",
"assetCode": "USDC",
"decimals": 0,
"amount": "1000000",
"amountAtomic": "1000000"
}
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}{
"error": {
"code": "bad_request",
"message": "The request is invalid",
"details": "example"
}
}Returns the canonical Payment when the account fixed by the client bearer token is its owner or a participant. Internal Payment Session and execution identifiers are never returned.
Authorizations
Short-lived account-bound token returned by POST /v2/client/auth/exchange.
Path Parameters
Canonical payment_* id returned by POST /v2/client/me/payments.
Pattern:
^payment_Example:
"payment_123"
Response
Canonical Payment
Show child attributes
Show child attributes
The exact action the caller must complete. Null means Stableyard needs no action from the partner right now.
- Action required
- Start account KYC
- Verify UPA email
- Complete hosted compliance
- Wait for partner KYC
- Contact support
- No provider action
Show child attributes
Show child attributes
Show child attributes
Show child attributes