> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Links API Overview

> Create invoices, track analytics, and query your store via payments.shakesco.com

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

The Payment Links API (`https://payments.shakesco.com`) gives your backend full programmatic control over invoices, customer analytics, and store items. Use it to automate billing, build dashboards, or sync your catalogue.

## Authentication

All requests require your API key in the `Authorization` header.

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

<Note>
  Generate your API key at [users.shakesco.com/user/api-tokens](https://users.shakesco.com/user/api-tokens)
</Note>

## Base URL

```
https://payments.shakesco.com
```

## Endpoint Groups

<CardGroup cols={2}>
  <Card title="Invoices" icon="file-invoice" href="/api-reference/payment-links/invoices/create">
    Create invoices, generate payment URLs, confirm settlement, and void unpaid invoices
  </Card>

  <Card title="Analytics" icon="chart-line" href="/api-reference/payment-links/analytics/customer">
    Query per-customer payment history and breakdowns scoped to your business
  </Card>

  <Card title="Store Items" icon="bag-shopping" href="/api-reference/payment-links/store/list">
    Browse your product catalogue and fetch individual items by ID
  </Card>

  <Card title="Currency Codes" icon="globe" href="/api-reference/general/codes">
    List all 300+ supported currency codes for invoices and analytics
  </Card>
</CardGroup>

## Common Error Codes

| Code | Meaning                                        |
| ---- | ---------------------------------------------- |
| 400  | Bad request, invalid or missing parameters     |
| 401  | Unauthorized, missing or invalid API key       |
| 404  | Not Found, resource does not exist             |
| 422  | Unprocessable, invoice is already paid or void |
| 500  | Internal Server Error, contact support         |
