Skip to main content
PATCH
/
v1
/
subscriptions
/
{id}
Update subscription
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
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Path Parameters

id
string
required

Identifier of the subscription.

Body

application/json

Request body for updating a subscription (id is provided in the URL path).

input
object
required

Response

Subscription updated

Successful subscription update response.

subscription
object
required

Recurring billing subscription tied to a customer.