Skip to main content
GET
/
v1
/
invoices
List invoices
curl --request GET \
  --url https://api.quentli.com/v1/invoices \
  --header 'Authorization: Bearer <token>'
[
  {
    "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",
        "quantity": 1,
        "concept": {
          "id": "pc_1234567890abcdefghij",
          "createdAt": "2025-01-01T00:00:00.000Z",
          "updatedAt": "2025-01-01T00:00:00.000Z",
          "displayName": "Colegiatura",
          "amount": 150000,
          "currency": "MXN",
          "organizationId": "org_1234567890abcdefghij",
          "active": true,
          "amountEditable": false,
          "quantityEditable": false,
          "oneOff": false,
          "groupId": null,
          "group": {
            "id": "pcg_1234567890abcdefghij",
            "name": "Colegiaturas"
          },
          "description": "Colegiatura mensual de preparatoria",
          "sku": "COL-PREP-001",
          "recurrentDetailId": null,
          "recurrentDetail": null
        }
      }
    ],
    "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_....

Query Parameters

filter
string

A qs-encoded invoiceFilter object.

Example:

"isPaid=false&dueDate[gte]=2025-01-01T00:00:00.000Z"

skip
number
default:0

Pagination offset.

Required range: x >= 0
Example:

0

take
number
default:20

Pagination limit.

Required range: 1 <= x <= 100
Example:

20

orderBy
string

A qs-encoded invoiceOrderBy object.

Example:

"createdAt=desc"

Response

Invoices list

id
string
required

Unique identifier of the invoice.

Example:

"inv_1234567890abcdefghij"

createdAt
required

Date and time when the invoice was created.

Example:

"2025-01-10T12:00:00.000Z"

updatedAt
required

Date and time when the invoice was last updated.

Example:

"2025-01-10T12:00:00.000Z"

customerId
string
required

Identifier of the customer this invoice belongs to.

Example:

"cus_1234567890abcdefghij"

collectionMethod
enum<string>
required

How payment is collected: AUTOMATIC, SEND_REMINDER, or NONE.

Available options:
AUTOMATIC,
SEND_REMINDER,
NONE
Example:

"SEND_REMINDER"

totalAmount
number
required

Computed total amount of the invoice in minor units.

Example:

150000

currency
string
required

ISO 4217 currency code for the invoice.

Example:

"MXN"

dueDate
required

Date and time when payment is due.

Example:

"2025-02-01T06:00:00.000Z"

organizationId
string
required

Identifier of the organization that owns this invoice.

Example:

"org_1234567890abcdefghij"

isPaid
boolean
required

Whether the invoice has been fully paid.

Example:

false

amountPaid
number
required

Total amount paid so far in minor units.

Example:

0

allowOfftimePayment
boolean
required

Whether payment is accepted outside the due window.

Example:

false

items
object[]
required
subscriptionId
string | null

Identifier of the subscription that generated this invoice, if any.

Example:

"sub_1234567890abcdefghij"

expireDate

Date and time when the invoice expires.

Example:

null

paidById
string | null

Identifier of the customer who paid the invoice.

Example:

null

beneficiaryId
string | null

Identifier of the beneficiary customer, if any.

Example:

null

paidWithId
string | null

Identifier of the payment that settled the invoice.

Example:

null

canceledAt

Date and time when the invoice was canceled.

Example:

null

canceledById
string | null

Identifier of the user who canceled the invoice.

Example:

null

meta
object

Flattened metadata map where each key maps to a string value.

Example:
{ "Ciclo Escolar": "2025-1" }