# Billing

> How lines are charged to your card, and your monthly invoices.

Lines are paid with the card on your account. Each line is charged a month in advance when
it goes live, then renews every month until you release it. All the lines on your account
renew on the same day each month. Taxes and regulatory fees are added on top, based on each
line's service location.

## Invoices

You get one invoice per calendar month (UTC), issued a few hours after the month ends. It lists
every charge to your card that month (new lines, renewals and other line orders) and every refund
made that month, with taxes and fees shown separately. Each invoice has a number like `GL-000123`
and never changes once issued; a refund made later appears on the invoice of the month it was
made. A month with no charges has no invoice.

Invoices are billed to your company details as they are when the invoice is issued, so keep your
legal name, billing email and address current in the portal. Each invoice is emailed to your
billing email.

```http
GET /v1/gather/lines/invoice/list
GET /v1/gather/lines/invoice/id?id={invoice_id}
GET /v1/gather/lines/invoice/id?id={invoice_id}&format=html
```

`invoice/list` returns your invoices newest month first, with `limit` (up to 100), `starting_after`
and `month` (`YYYY-MM`). Add `format=html` to `invoice/id` for a printable page.

```json
{
  "id": "inv_7Rk2pQ",
  "number": "GL-000123",
  "month": "2026-10",
  "status": "paid",
  "currency": "usd",
  "items": [
    { "description": "Mobile line: new line order (first month of service)", "line_id": "ln_8Hq2cV3k",
      "date": "2026-10-04T09:12:00Z", "amount_cents": 1000, "payment_ref": "pay_1" }
  ],
  "subtotal_cents": 1000,
  "tax_cents": 142,
  "total_cents": 1142,
  "issued_at": "2026-11-01T06:00:00Z"
}
```

`status` is `paid`, or `credit` when the month's refunds are larger than its charges. Amounts are
in cents. Sandbox keys have no invoices.

## Releasing a line

Releasing a line stops its future renewals. The month already paid is not refunded, so the
line's last month runs to its next renewal date.

## Your card

Add or replace your card in the portal. If a charge is declined, the new line waits and the
charge is tried again after 1, 2, 4 and 8 hours, or straight away when you add or replace your
card. After five declined charges (about 15 hours) the line goes `failed` with
`failure.code = "payment_failed"` and is not charged; order it again once your card works. Lines
you already have keep working.

## Holds

New orders return `402 billing_hold` while your account has no card on file. Lines you
already have keep working.
