Checkout: invoices
GET
/v0/links/{id}What a payment link sells, for the link page
Authentication
Section titled “Authentication”None. The payment link’s ID is the capability, so this runs in a customer’s browser with no key at all.
Parameters
Section titled “Parameters”idRequired · path
Responses
Section titled “Responses”- 200The link
- 404Unknown or off
Request
Section titled “Request”curl https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEoconst response = await fetch("https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo", { method: "GET",});
if (!response.ok) { const { error } = await response.json(); throw new Error(`${error.code}: ${error.message}`);}const data = await response.json();import httpx
response = httpx.get( "https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo",)response.raise_for_status()data = response.json()Errors
Section titled “Errors”{ "error": { "code": "INVOICE_EXPIRED", "message": "This invoice has expired" } }Switch on code, not on the message: every code has a page under Error codes. Base URL https://api.intents.fi; the whole reference is on one page.