curl --request PATCH \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"description": "<string>",
"lastCollectionDate": "2023-11-07T05:31:56Z",
"numberOfPayments": 123,
"nextCollectionDate": "2023-11-07T05:31:56Z",
"onlyAutomaticCollection": true,
"isActive": true,
"beneficiaryId": "<string>",
"taxProfileId": "<string>",
"collectionMethod": "AUTOMATIC",
"items": [
{
"conceptId": "<string>",
"quantity": 2,
"amount": 49999999999.5,
"currency": "<string>",
"description": "<string>"
}
],
"invoices": [
{
"items": [
{
"conceptId": "<string>",
"quantity": 2
}
],
"dueDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"modifiers": [
{
"modifierId": "<string>"
}
],
"discounts": [
{
"discountId": "<string>",
"maxInvoices": 2
}
]
}
}
}
'{
"subscription": {
"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
}
}Updates editable fields of an existing subscription by id.
curl --request PATCH \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"description": "<string>",
"lastCollectionDate": "2023-11-07T05:31:56Z",
"numberOfPayments": 123,
"nextCollectionDate": "2023-11-07T05:31:56Z",
"onlyAutomaticCollection": true,
"isActive": true,
"beneficiaryId": "<string>",
"taxProfileId": "<string>",
"collectionMethod": "AUTOMATIC",
"items": [
{
"conceptId": "<string>",
"quantity": 2,
"amount": 49999999999.5,
"currency": "<string>",
"description": "<string>"
}
],
"invoices": [
{
"items": [
{
"conceptId": "<string>",
"quantity": 2
}
],
"dueDate": "2023-11-07T05:31:56Z",
"id": "<string>"
}
],
"modifiers": [
{
"modifierId": "<string>"
}
],
"discounts": [
{
"discountId": "<string>",
"maxInvoices": 2
}
]
}
}
}
'{
"subscription": {
"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.
Request body for updating a subscription (id is provided in the URL path).
Show child attributes
Subscription updated
Successful subscription update response.
Recurring billing subscription tied to a customer.
Show child attributes
Was this page helpful?