Get payments by subscription ID

Retrieves payments associated with a subscription with pagination support. Returns a list of payment objects including payment ID, amount, currency, a succeeded indicator, and timestamps. Use the `next_page_token` from the response to fetch the next page.

GET
/sdk/subscriptions/{id}/payments
Authorization<token>

Bearer token authentication for client-side SDK operations. Format: 'Authorization: Bearer '

In: header

Path Parameters

idstring

Query Parameters

limit?integer

Maximum number of results to return per page. Defaults to 50 if not provided. Maximum allowed value is 100.

Formatint64
pageToken?string

Opaque page token for pagination. Use the next_page_token from the previous response to fetch the next page. Omit for first page.

Response Body

curl -X GET "https://test-api.stash.gg/sdk/subscriptions/string/payments?limit=0&pageToken=string"
{
  "payments": [
    {
      "paymentId": "string",
      "amountCents": "string",
      "currency": "string",
      "totalTaxAmountCents": "string",
      "taxInclusive": true,
      "succeeded": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextPageToken": "string"
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}

How is this guide?