Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const { result, error } = await unprice.subscriptions.get({ customerId: "cus_1234567890" }); if (error) { console.error(error.message); return; } console.log(result);
{ "id": "sub_1234567890", "customerId": "cus_1234567890", "status": "active", "active": true }
Get the active subscription for a customer