# create_payment_link

> Get the payment URL for an invoice — the anonymous pay.inleed.com page where the customer pays by card, Swish or Payson in the browser.

- Tier: W
- Required scope: write:billing
- Annotations: none
- Docs: https://api.inleed.com/tools/create-payment-link

## Description

Get the payment URL for an invoice — the anonymous pay.inleed.com page where the customer pays by card, Swish or Payson in the browser. Returns it as `url` (no login needed, safe to forward to whoever should pay) plus the logged-in invoice page as `accountUrl`. Creating the link spends nothing by itself; the human completes payment in the browser. Take the `invoice_id` from `list_invoices`.

## Input schema

- `invoice_id` — integer (required). The numeric invoice id to create a payment link for. Get it from list_invoices → data[].id.

## Example call

```json
{
  "name": "create_payment_link",
  "arguments": {
    "invoice_id": 1
  }
}
```

## Example conversation

**User:** Pay invoice 367039.

**Assistant:** I cannot complete a card payment for you — here is a payment link you can open.

