Skip to main content
POST
/
v1
/
invoices
Create invoice
curl --request POST \
  --url https://api.quentli.com/v1/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "dueDate": "2025-06-01T00:00:00.000Z",
    "collectionMethod": "SEND_REMINDER",
    "customerId": "cus_1234567890abcdefghij",
    "items": [
      {
        "conceptId": "pc_1234567890abcdefghij",
        "concept": {
          "displayName": "Colegiatura Marzo",
          "amount": 150000,
          "currency": "MXN"
        },
        "quantity": 1,
        "amount": null,
        "currency": null,
        "description": null
      }
    ],
    "expireDate": null,
    "subscriptionId": null,
    "allowOfftimePayment": null,
    "beneficiaryId": null,
    "modifiers": [
      {
        "modifierId": "prm_1234567890abcdefghij"
      }
    ],
    "discounts": [
      {
        "discountId": "disc_1234567890abcdefghij"
      }
    ],
    "metadata": [
      {
        "key": "student_id",
        "value": "ALU-2025-001"
      }
    ]
  }
}
'
{
  "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"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for creating an invoice.

input
object
required

Response

Invoice created

Successful invoice creation response.

invoice
object
required

Invoice record representing a payment request sent to a customer.