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.
Bearer token authentication for client-side SDK operations. Format: 'Authorization: Bearer '
In: header
Path Parameters
Query Parameters
Maximum number of results to return per page. Defaults to 50 if not provided. Maximum allowed value is 100.
int64Opaque 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",
"status": "SUBSCRIPTION_PAYMENT_STATUS_UNSPECIFIED"
}
],
"nextPageToken": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?
Cancel subscription POST
Cancels a subscription. By default, access continues until the end of the current billing period (cancel_at_period_end=true). A subscription.canceled webhook is sent and the returned subscription has status 'canceled'. For past_due subscriptions, cancellation is immediate: a single subscription.expired webhook is sent and the returned subscription has status 'expired'.
Get subscription by ID GET
Retrieves a subscription by its unique identifier. Returns the full subscription object including status, billing period, and dates.