# List payments

`GET /payments`

Returns a paginated list of payments, newest first.

Base URL: https://api.acme.dev/v1

Authentication: bearer token in Authorization header

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Maximum number of results, between 1 and 100. |
| `starting_after` | string | no | Cursor for pagination. |
| `status` | enum | no | Lifecycle state of the payment. |

## Example request

```bash
curl -X GET https://api.acme.dev/v1/payments
```

## Responses

- **200**: A page of payments.

### Example response (200)

```json
{
  "data": [
    {
      "id": "pay_3Jk2Lm",
      "object": "payment",
      "amount": 2500,
      "currency": "usd",
      "status": "requires_payment_method",
      "customer": {
        "id": "cus_8f3k2",
        "email": "user@example.com",
        "name": "Ada Lovelace",
        "address": {
          "line1": "string",
          "city": "string",
          "country": "US"
        }
      },
      "created_at": "2024-01-15T09:30:00Z",
      "refunds": [
        {
          "id": "string",
          "amount": 1
        }
      ]
    }
  ],
  "has_more": true
}
```
