# Invoice payment link

`GET /v1/billing/@invoice_id/pay/@gateway_id` · scope `billing:write`

Payment content for invoice `@invoice_id` through gateway `@gateway_id`.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/billing/@invoice_id/pay/@gateway_id` |
| Method | `GET` |
| Scope | `billing:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `invoice_id` | path | integer | yes | Invoice ID |
| `gateway_id` | path | integer | yes | Payment gateway ID |

## Example request

```bash
curl "https://api.tino.vn/v1/billing/300001/pay/190" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `billing:write`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.billing.get_payment_link(invoice_id, gateway_id)`, Node.js `await client.billing.getPaymentLink(invoiceId, gatewayId);`, PHP `$client->billing->getPaymentLink($invoiceId, $gatewayId);`.

## Example response

```json
{
 "success": true,
 "content": "<redacted>"
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
