---
updatedAt: 2026-09-23T02:21:57.000Z
agentTools:
  projectIndex: https://docs.kyshi.co/llms.txt
---

# Subscription Payment Attempts

Retrieve payment attempts for subscriptions and invoices.

Use these endpoints to inspect subscription payment attempts.

# Subscription Payment Attempts

```Text Header
-H "x-api-key: your_secret_key"
```

```Text Request
GET {{host}}/v1/subscriptions/{id}/payment-attempts?page=1&limit=20
```

# Invoice Payment Attempts

```Text Request
GET {{host}}/v1/subscriptions/invoices/{invoiceId}/payment-attempts?page=1&limit=20
```

# Query Parameters

| Field | Data Type | Required | Description                         |
| :---- | :-------- | :------- | :---------------------------------- |
| page  | integer   | No       | Page to retrieve. Defaults to `1`.  |
| limit | integer   | No       | Records per page. Maximum is `100`. |
| order | string    | No       | `ASC` or `DESC`.                    |

```json Response
{
  "status": true,
  "message": "Success",
  "code": 200,
  "data": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "pageCount": 1,
    "hasPreviousPage": false,
    "hasNextPage": false,
    "data": [
      {
        "id": "ATTEMPT_abc123",
        "status": "PENDING",
        "failureCategory": null,
        "createdAt": "2026-05-20T10:15:00.000Z"
      }
    ]
  }
}
```