import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.subscriptions.list({});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"id": "<string>",
"object": "<string>",
"status": {},
"quantity": {},
"current_period_start": {},
"current_period_end": {},
"trial_ends_at": {},
"ends_at": {},
"created_at": {},
"updated_at": {},
"canceled": true,
"paused": true
}
],
"has_more": true,
"url": "<string>"
}Returns a list of customer subscriptions for the current account
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.subscriptions.list({});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"id": "<string>",
"object": "<string>",
"status": {},
"quantity": {},
"current_period_start": {},
"current_period_end": {},
"trial_ends_at": {},
"ends_at": {},
"created_at": {},
"updated_at": {},
"canceled": true,
"paused": true
}
],
"has_more": true,
"url": "<string>"
}API key in the format: Bearer {api_token}
Filter by subscription status
active, canceled, paused, past_due, unpaid, incomplete, trialing Cursor for pagination — the ID of the last item in the previous page
Items per page
1 <= x <= 100Was this page helpful?