Get a link's checkout
curl --request GET \
--url https://api.staging.paywire.xyz/payments/links/{linkId}/checkoutconst options = {method: 'GET'};
fetch('https://api.staging.paywire.xyz/payments/links/{linkId}/checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.paywire.xyz/payments/links/{linkId}/checkout"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.staging.paywire.xyz/payments/links/{linkId}/checkout");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "0193a0c4-5f2e-7c1d-9b8a-3e4f5a6b7c8d",
"merchantName": "Example Shop",
"amount": 49.9,
"currency": "USD",
"allowedAssets": [
{
"network": "ethereum_sepolia",
"token": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
"decimals": 6
},
{
"network": "solana_devnet",
"token": "native",
"decimals": 9
}
],
"orderTtlMinutes": 20,
"returnUrl": "https://shop.example.com/orders/1042",
"isActive": true
}{
"title": "PaymentLink.NotFound",
"status": 404,
"detail": "No payment link with this id."
}Payment links
Get a link's checkout
What a payer sees: the merchant’s name, the price and the coins to choose from. Public: no API key needed. Call it from your server (the API doesn’t allow cross-origin browser requests).
GET
/
payments
/
links
/
{linkId}
/
checkout
Get a link's checkout
curl --request GET \
--url https://api.staging.paywire.xyz/payments/links/{linkId}/checkoutconst options = {method: 'GET'};
fetch('https://api.staging.paywire.xyz/payments/links/{linkId}/checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.paywire.xyz/payments/links/{linkId}/checkout"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.staging.paywire.xyz/payments/links/{linkId}/checkout");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"id": "0193a0c4-5f2e-7c1d-9b8a-3e4f5a6b7c8d",
"merchantName": "Example Shop",
"amount": 49.9,
"currency": "USD",
"allowedAssets": [
{
"network": "ethereum_sepolia",
"token": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
"decimals": 6
},
{
"network": "solana_devnet",
"token": "native",
"decimals": 9
}
],
"orderTtlMinutes": 20,
"returnUrl": "https://shop.example.com/orders/1042",
"isActive": true
}{
"title": "PaymentLink.NotFound",
"status": 404,
"detail": "No payment link with this id."
}Use it to show the coins in your own checkout. See Build your own checkout.