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

# List Invoices

> Retrieve all one-time payment requests (invoices) for your merchant account.

### Authentication

Requires `X-API-KEY` header.

### Query Parameters

**paid** `boolean`

Filter by payment status. `true` returns only paid invoices, `false` returns only unpaid ones. Omit to return all.

**reference\_id** `string`

Filter by the `reference_id` you set when you created the invoice. The match is exact and case-sensitive, after surrounding whitespace is trimmed. A blank value is ignored, so no filtering is applied. It combines with the other filters. Each `reference_id` is used on only one invoice, so at most one invoice matches. Use it to check whether an invoice already exists for a booking before you create another, or to find an invoice after a missed webhook.

### Response

Returns a paginated envelope containing a list of invoices.

### Pagination (List View)

**data** `array`

The list of invoice objects.

**pagination** `object`

Pagination metadata (`limit`, `offset`, `total`, `has_more`).

### Invoice Object

**id** `uuid`

The unique identifier for the invoice.

**invoice\_number** `string`

Auto-generated invoice number (e.g., `INV-20240501-A1B2C3`).

**reference\_id** `string | null`

Your own id for this invoice, as you sent it when you created the invoice. `null` if none was set.

**title** `string`

The invoice title shown to the customer.

**description** `string`

Optional description.

**amount** `integer`

The invoiced amount in cents (smallest currency unit).

**currency** `string`

3-letter ISO currency code.

**customer\_name** `string`

The customer's full name.

**customer\_email** `string`

The customer's email address.

**customer\_phone** `string`

The customer's phone number.

**checkout\_url** `string`

The payment URL to send to the customer.

**redirect\_url** `string`

Post-payment redirect URL.

**is\_paid** `boolean`

Whether the invoice has been paid.

**is\_expired** `boolean`

Whether the invoice has passed its expiry date. It turns `true` once the calendar day of `expires_at` has ended (India Standard Time).

**paid\_at** `datetime`

Timestamp when the invoice was paid. `null` if unpaid.

**expires\_at** `datetime`

Optional expiry deadline. `null` if no expiry was set.

**payment\_method\_configuration** `object | null`

The saved payment method setting, for example `{"enabled": ["card"]}`. `null` means the usual methods. See [Payment Methods](/api-reference/payment-methods.md).

**created\_at** `datetime`

Timestamp when the invoice was created.

```bash cURL (all)
curl https://api.playto.so/v1/invoices/ \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```bash cURL (unpaid only)
curl "https://api.playto.so/v1/invoices/?paid=false" \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```bash cURL (by reference_id)
curl "https://api.playto.so/v1/invoices/?reference_id=booking_88213" \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```json 200
{
  "data": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "invoice_number": "INV-20240501-C3D4E5",
      "reference_id": "booking_88213",
      "title": "Website Redesign - Phase 1",
      "description": "Wireframes and initial mockups.",
      "amount": 120000,
    "currency": "USD",
    "customer_name": "Jane Smith",
    "customer_email": "jane@acme.com",
    "customer_phone": "+1 555 000 1234",
    "checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=c3d4e5f6-a7b8-9012-cdef-123456789012",
    "redirect_url": "https://yoursite.com/thank-you",
    "is_paid": false,
    "is_expired": false,
    "paid_at": null,
    "expires_at": "2027-12-31T23:59:59Z",
    "payment_method_configuration": null,
    "created_at": "2024-05-01T10:00:00Z"
  },
  {
    "id": "d4e5f6a7-b8c9-0123-defa-234567890123",
    "invoice_number": "INV-20240420-D4E5F6",
    "reference_id": null,
    "title": "Logo Design",
    "description": "",
    "amount": 35000,
    "currency": "USD",
    "customer_name": "Tom Lee",
    "customer_email": "tom@startup.io",
    "customer_phone": "",
    "checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=d4e5f6a7-b8c9-0123-defa-234567890123",
    "redirect_url": null,
    "is_paid": true,
    "is_expired": false,
    "paid_at": "2024-04-22T14:33:00Z",
    "expires_at": null,
    "payment_method_configuration": null,
    "created_at": "2024-04-20T09:00:00Z"
  }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 2,
    "has_more": false
  }
}
```
