curl --request PATCH \
--url https://api.quentli.com/v1/invoices/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"dueDate": "2023-11-07T05:31:56Z",
"expireDate": "2023-11-07T05:31:56Z",
"collectionMethod": "AUTOMATIC",
"beneficiaryId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {},
"items": [
{
"quantity": 2,
"conceptId": "<string>",
"concept": {
"displayName": "<string>",
"amount": 123,
"currency": "<string>"
}
}
],
"modifiers": [
{
"modifierId": "<string>"
}
],
"discounts": [
{
"discountId": "<string>"
}
]
}
}
}
'{
"invoice": {
"id": "inv_1234567890abcdefghij",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-10T12:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "SEND_REMINDER",
"totalAmount": 150000,
"currency": "MXN",
"dueDate": "2025-02-01T06:00:00.000Z",
"organizationId": "org_1234567890abcdefghij",
"isPaid": false,
"amountPaid": 0,
"allowOfftimePayment": false,
"items": [
{
"id": "invi_1234567890abcdefghij",
"description": "Colegiatura Enero 2025",
"conceptId": "pc_1234567890abcdefghij",
"concept": null,
"quantity": 1
}
],
"subscriptionId": "sub_1234567890abcdefghij",
"expireDate": null,
"paidById": null,
"beneficiaryId": null,
"paidWithId": null,
"canceledAt": null,
"canceledById": null,
"meta": {
"Ciclo Escolar": "2025-1"
}
}
}Updates editable fields of an existing invoice by id.
curl --request PATCH \
--url https://api.quentli.com/v1/invoices/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"data": {
"dueDate": "2023-11-07T05:31:56Z",
"expireDate": "2023-11-07T05:31:56Z",
"collectionMethod": "AUTOMATIC",
"beneficiaryId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
],
"meta": {},
"items": [
{
"quantity": 2,
"conceptId": "<string>",
"concept": {
"displayName": "<string>",
"amount": 123,
"currency": "<string>"
}
}
],
"modifiers": [
{
"modifierId": "<string>"
}
],
"discounts": [
{
"discountId": "<string>"
}
]
}
}
}
'{
"invoice": {
"id": "inv_1234567890abcdefghij",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2025-01-10T12:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "SEND_REMINDER",
"totalAmount": 150000,
"currency": "MXN",
"dueDate": "2025-02-01T06:00:00.000Z",
"organizationId": "org_1234567890abcdefghij",
"isPaid": false,
"amountPaid": 0,
"allowOfftimePayment": false,
"items": [
{
"id": "invi_1234567890abcdefghij",
"description": "Colegiatura Enero 2025",
"conceptId": "pc_1234567890abcdefghij",
"concept": null,
"quantity": 1
}
],
"subscriptionId": "sub_1234567890abcdefghij",
"expireDate": null,
"paidById": null,
"beneficiaryId": null,
"paidWithId": null,
"canceledAt": null,
"canceledById": null,
"meta": {
"Ciclo Escolar": "2025-1"
}
}
}Organization API key using Authorization: Bearer sk_....
Identifier of the invoice.
Request body for updating an invoice (id is provided in the URL path).
Show child attributes
Invoice updated
Successful invoice update response.
Invoice record representing a payment request sent to a customer.
Show child attributes
Was this page helpful?