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

# List Payments

> Retrieve all completed payment transactions for your merchant account.

### Authentication

Requires `X-API-KEY` header.

### Query Parameters

**status** `string`

Filter by payment status. One of: `pending`, `succeeded`, `failed`, `refunded`.

**product\_id** `uuid`

Filter payments for a specific product.

**invoice\_id** `uuid`

Filter payments for a specific invoice.

**reference\_id** `string`

Filter payments by the `reference_id` of the invoice they paid. 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. Payments for products never match, because they have no `reference_id`. Use it to find the payments for a booking after a missed webhook.

**customer\_email** `string`

Filter payments by customer email address (case-insensitive).

**source** `string`

Filter by the payment origin source. One of: `api`, `dashboard`.

### Response

Returns a paginated envelope containing a list of payments, ordered newest first.

### Pagination (List View)

**data** `array`

The list of payment objects.

**pagination** `object`

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

### Payment Object

**id** `uuid`

The unique identifier for the payment. It is the `payment_id` in the `invoice.paid` and `payment.succeeded` [webhooks](/api-reference/webhooks/overview.md).

**status** `string`

Payment status: `pending`, `succeeded`, `failed`, or `refunded`.

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

The `reference_id` of the invoice this payment paid (the same `reference_id` as in the `invoice.paid` webhook). `null` if the invoice has none, and always `null` for a product (payment-link) sale.

**invoice\_id** `uuid`

The `id` of the invoice this payment paid (the same `invoice_id` as in the `invoice.paid` webhook). `null` if the payment was not for an invoice.

**product\_id** `uuid`

The `id` of the product this payment bought (the same `product_id` as in the `payment.succeeded` webhook). `null` if the payment was not for a product.

**amount** `integer`

The payment amount in cents (smallest currency unit).

**currency** `string`

3-letter ISO currency code.

**customer\_email** `string`

The paying customer's email address.

**customer\_name** `string`

The paying customer's full name.

**product\_title** `string`

Title of the product purchased. `null` if the payment was for an invoice.

**invoice\_number** `string`

Invoice number of the paid invoice. `null` if the payment was for a product.

**plan\_title** `string`

Always `null` for now. Subscriptions are not available yet.

**payment\_method** `string`

Payment method used (e.g., `card`, `upi`).

**card\_brand** `string`

Card network (e.g., `visa`, `mastercard`). Empty for non-card payments.

**card\_last\_four** `string`

Last 4 digits of the card. Empty for non-card payments.

**created\_at** `datetime`

Timestamp when the payment record was created.

**updated\_at** `datetime`

Timestamp of the last status update.

```bash cURL (all succeeded)
curl "https://api.playto.so/v1/transactions/?status=succeeded" \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```bash cURL (by customer email)
curl "https://api.playto.so/v1/transactions/?customer_email=jane@acme.com" \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```bash cURL (by product)
curl "https://api.playto.so/v1/transactions/?product_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

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

```json 200 (product payment)
{
  "data": [
    {
      "id": "g7h8i9j0-k1l2-3456-mnop-567890123456",
      "status": "succeeded",
      "reference_id": null,
      "invoice_id": null,
      "product_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "amount": 7500,
      "currency": "USD",
      "customer_email": "jane@acme.com",
      "customer_name": "Jane Smith",
      "product_title": "Design Consultation",
      "invoice_number": null,
      "plan_title": null,
      "payment_method": "card",
      "card_brand": "visa",
      "card_last_four": "4242",
      "created_at": "2024-05-02T15:30:00Z",
      "updated_at": "2024-05-02T15:30:45Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1,
    "has_more": false
  }
}
```

```json 200 (invoice payment)
{
  "data": [
    {
      "id": "h8i9j0k1-l2m3-4567-nopq-678901234567",
      "status": "succeeded",
      "reference_id": "booking_88213",
      "invoice_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "product_id": null,
      "amount": 120000,
      "currency": "USD",
      "customer_email": "jane@acme.com",
      "customer_name": "Jane Smith",
      "product_title": null,
      "invoice_number": "INV-20240501-C3D4E5",
      "plan_title": null,
      "payment_method": "card",
      "card_brand": "mastercard",
      "card_last_four": "5555",
      "created_at": "2024-05-03T11:00:00Z",
      "updated_at": "2024-05-03T11:00:30Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1,
    "has_more": false
  }
}
```
