curl --request GET \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>'{
"id": "sub_1234567890abcdefghij",
"createdAt": "2025-01-01T06:00:00.000Z",
"updatedAt": "2025-01-01T06:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "AUTOMATIC",
"firstCollectionDate": "2025-01-01T06:00:00.000Z",
"generationMode": "AUTO",
"onlyAutomaticCollection": false,
"isActive": true,
"isCompleted": false,
"description": "Colegiatura mensual",
"status": "ACTIVE",
"paymentMethodId": "pm_1234567890abcdefghij",
"taxProfileId": null,
"nextCollectionDate": "2025-02-01T06:00:00.000Z",
"lastCollectionDate": "2025-12-01T06:00:00.000Z",
"metadata": {
"Nivel": "Preparatoria"
},
"customCancelReason": null,
"canceledAt": null,
"canceledById": null
}Returns a subscription by id.
curl --request GET \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>'{
"id": "sub_1234567890abcdefghij",
"createdAt": "2025-01-01T06:00:00.000Z",
"updatedAt": "2025-01-01T06:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "AUTOMATIC",
"firstCollectionDate": "2025-01-01T06:00:00.000Z",
"generationMode": "AUTO",
"onlyAutomaticCollection": false,
"isActive": true,
"isCompleted": false,
"description": "Colegiatura mensual",
"status": "ACTIVE",
"paymentMethodId": "pm_1234567890abcdefghij",
"taxProfileId": null,
"nextCollectionDate": "2025-02-01T06:00:00.000Z",
"lastCollectionDate": "2025-12-01T06:00:00.000Z",
"metadata": {
"Nivel": "Preparatoria"
},
"customCancelReason": null,
"canceledAt": null,
"canceledById": null
}Organization API key using Authorization: Bearer sk_....
Identifier of the subscription.
Subscription details
Subscription details response. Returns null if the subscription does not exist.
Unique identifier of the subscription.
"sub_1234567890abcdefghij"
Date and time when the subscription was created.
"2025-01-01T06:00:00.000Z"
Date and time when the subscription was last updated.
"2025-01-01T06:00:00.000Z"
Identifier of the customer this subscription belongs to.
"cus_1234567890abcdefghij"
How payment is collected: AUTOMATIC, SEND_REMINDER, or NONE.
AUTOMATIC, SEND_REMINDER, NONE "AUTOMATIC"
Date and time of the first collection.
"2025-01-01T06:00:00.000Z"
Whether invoices are generated manually or automatically.
MANUAL, AUTO "AUTO"
Whether only automatic collection is allowed.
false
Whether the subscription is currently active.
true
Whether the subscription has completed all scheduled collections.
false
Human-readable description of the subscription.
"Colegiatura mensual"
Current status: INACTIVE, ACTIVE, CANCELED, or COMPLETED.
INACTIVE, ACTIVE, CANCELED, COMPLETED, null "ACTIVE"
Identifier of the payment method used for automatic collection.
"pm_1234567890abcdefghij"
Identifier of the tax profile used for invoice generation.
null
Date and time of the next scheduled collection.
"2025-02-01T06:00:00.000Z"
Date and time of the last collection, if set.
"2025-12-01T06:00:00.000Z"
Flattened metadata map where each key maps to a string value.
Show child attributes
{ "Nivel": "Preparatoria" }Custom cancellation reason provided by the user.
null
Date and time when the subscription was canceled.
null
Identifier of the user who canceled the subscription.
null
Was this page helpful?