Generate a payment link

POST https://api.tamio.com/v2/orders/payment-link/generate/{uuid}

Generates a shareable payment link for an invoice. The link allows customers to view and pay the invoice through a hosted payment page.

Path Parameters

uuid string*

UUID of the invoice to generate a payment link for

Body Parameters

domain_id string

Custom domain UUID for the payment page (uses default if omitted)

Responses

200 Payment link generated successfully

Payment link generated successfully

status integer
url string

The generated payment link URL

400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/orders/payment-link/generate/{uuid}
1const response = await fetch("https://api.tamio.com/v2/orders/payment-link/generate/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "url": "https://pay.tamio.com/inv_abc123"
}