# Read the invoice behind a pay link (public)

`GET /api/v1/pay/{token}`

Public. A forged token, an expired token and an unknown invoice all answer 404 `not_found`, so this endpoint cannot be used to discover invoice ids. Rate-limited by IP.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `token` | string | required |  |

## Responses

### 200

Invoice summary, merchant branding and the publishable key for Stripe Elements.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "invoice": {
          "type": "object",
          "properties": {
            "number": {
              "type": "string"
            },
            "total_cents": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Invoice total in minor units, serialized as a decimal string.",
              "example": "1999"
            },
            "currency": {
              "type": "string",
              "enum": [
                "USD",
                "AUD",
                "CAD",
                "GBP",
                "EUR",
                "INR",
                "NPR"
              ],
              "example": "USD"
            },
            "status": {
              "type": "string"
            },
            "due_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "lines": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "quantity": {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "Line quantity, serialized as a decimal string.",
                    "example": "1999"
                  },
                  "unit_amount_cents": {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "Unit price in minor units, serialized as a decimal string.",
                    "example": "1999"
                  },
                  "amount_cents": {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "Line total in minor units, serialized as a decimal string.",
                    "example": "1999"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "USD",
                      "AUD",
                      "CAD",
                      "GBP",
                      "EUR",
                      "INR",
                      "NPR"
                    ],
                    "example": "USD"
                  }
                },
                "required": [
                  "description",
                  "quantity",
                  "unit_amount_cents",
                  "amount_cents",
                  "currency"
                ]
              }
            }
          },
          "required": [
            "number",
            "total_cents",
            "currency",
            "status",
            "due_at",
            "lines"
          ]
        },
        "branding": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "merchant_name": {
              "type": "string"
            },
            "logo_url": {
              "type": [
                "string",
                "null"
              ]
            },
            "brand_color": {
              "type": [
                "string",
                "null"
              ]
            },
            "support_email": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "merchant_name",
            "logo_url",
            "brand_color",
            "support_email"
          ]
        },
        "publishable_key": {
          "type": [
            "string",
            "null"
          ]
        },
        "payable": {
          "type": "boolean",
          "description": "False once the invoice is paid, void or uncollectible."
        }
      },
      "required": [
        "invoice",
        "branding",
        "publishable_key",
        "payable"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
