Skip to content
Developer
Sign inSign up

Retrieve a public link

Get what a link's hosted checkout shows, without IDs, fees or internal settings.

Ask AI about this page

Returns what a link's hosted checkout shows, so you can build your own page for the link. When the customer chooses how to pay, create a checkout with its code.

It's public, with nothing internal: no IDs, and none of your fees except one you pass on.

Path

  • code string Required
    The code at the end of the link's url, such as v6e4mrczwg.

Fields to know

  • crypto array
    Each coin and network you accept, with an amount at today's rate that a checkout locks when it opens, and rate, one coin in the link's currency as a decimal string.
  • card array
    Card payments, with whether their total is within their min and max.
  • breakdown object
    On each crypto and card option, what the customer pays, as on a checkout: the price, the processing fee when you pass it on (which the amount and total then include), and for crypto an estimated network fee the customer's wallet pays on top.
  • quote_expires_at timestamp
    When a quote opened now would end.
  • collect_email boolean
    Whether checkout asks for an email.
  • corner_style string
    How round checkout draws its buttons, fields and panels.
  • request object
    Always null here.
  • integrations array
    The payment integrations you linked that can take this amount. Each one's name is what a checkout takes as integration.
  • methods array
    The pay page's list of ways to pay (crypto, card, P2P and the finance apps), each with its cheapest and fastest options. An option's id is what a checkout takes as option, its total includes the provider's own fees, and tags says which it is.
  • p2p object
    Buying the coin from a P2P seller, when a market was read lately. null otherwise.
  • card_offers_pending boolean
    true only when the page was read with cards=later and the card providers' prices weren't known yet.

Errors

  • 404 not_found
    No active link has this code. Archived and deleted links, and API payments' codes, return this too.

Any request can also fail on its key or its body. See errors.

Request
curl "https://api.402pay.co/api/v1/public/links/v6e4mrczwg"
Response200 OK
{  "data": {    "kind": "public_link",    "code": "v6e4mrczwg",    "name": "Team plan, monthly",    "description": "Everything in Pro for up to 10 people.",    "amount": "199.00",    "currency": "USD",    "business": {      "name": "Acme Studio",      "website": "https://example.com",      "support_email": "billing@example.com"    },    "accepting_payments": true,    "collect_email": true,    "corner_style": "rounded",    "accepted_rails": ["crypto", "card"],    "crypto": [      {        "asset": "USDC",        "network": "ethereum",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.90",          "total": "199.90"        }      },      {        "asset": "USDC",        "network": "base",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.01",          "total": "199.01"        }      },      {        "asset": "USDC",        "network": "solana",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.01",          "total": "199.01"        }      },      {        "asset": "USDT",        "network": "tron",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "1.10",          "total": "200.10"        }      },      {        "asset": "USDT",        "network": "ethereum",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.90",          "total": "199.90"        }      },      {        "asset": "USDT",        "network": "solana",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.01",          "total": "199.01"        }      },      {        "asset": "BTC",        "network": "bitcoin",        "amount": "0.00202236",        "rate": {          "amount": "98400.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "1.50",          "total": "200.50"        }      },      {        "asset": "ETH",        "network": "ethereum",        "amount": "0.054972",        "rate": {          "amount": "3620.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.30",          "total": "199.30"        }      },      {        "asset": "SOL",        "network": "solana",        "amount": "1.0815",        "rate": {          "amount": "184.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.01",          "total": "199.01"        }      },      {        "asset": "LTC",        "network": "litecoin",        "amount": "1.77678571",        "rate": {          "amount": "112.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.03",          "total": "199.03"        }      },      {        "asset": "TRX",        "network": "tron",        "amount": "621.88",        "rate": {          "amount": "0.32",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "1.10",          "total": "200.10"        }      },      {        "asset": "PYUSD",        "network": "solana",        "amount": "199.00",        "rate": {          "amount": "1.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": "0.01",          "total": "199.01"        }      }    ],    "card": [      {        "rail": "card",        "available": true,        "min": {          "amount": "5.00",          "currency": "USD"        },        "max": {          "amount": "10000.00",          "currency": "USD"        },        "total": {          "amount": "199.00",          "currency": "USD"        },        "breakdown": {          "currency": "USD",          "price": "199.00",          "processing_fee": null,          "network_fee": null,          "total": "199.00"        }      }    ],    "integrations": [],    "methods": [      {        "id": "crypto",        "method": "crypto",        "name": null,        "logo_url": null,        "options": [          {            "id": "crypto",            "rail": "crypto",            "total": {              "amount": "199.00",              "currency": "USD"            },            "provider_fee": null,            "breakdown": {              "currency": "USD",              "price": "199.00",              "processing_fee": null,              "network_fee": null,              "total": "199.00"            },            "estimate": false,            "id_check": "none",            "speed": "minutes",            "tags": ["cheapest", "fastest"],            "account": null,            "asset": null,            "network": null          }        ],        "fallbacks": []      }    ],    "quote_minutes": 15,    "quote_expires_at": "2026-09-27T18:32:19.065Z",    "request": null,    "p2p": null,    "card_offers_pending": false  }}