curl --request POST \
--url https://api.quentli.com/v1/invoices/{id}/try-payment \
--header 'Authorization: Bearer <token>'{
"success": true,
"payment": {
"id": "p_1234567890abcdefghij",
"createdAt": "2025-01-15T18:30:00.000Z",
"updatedAt": "2025-01-15T18:30:00.000Z",
"amount": 150000,
"currency": "MXN",
"description": "Colegiatura Enero 2025",
"type": "CARD",
"status": "COMPLETE",
"isCompleted": true,
"paymentTime": "2025-01-15T18:30:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"organizationId": "org_1234567890abcdefghij",
"skipTaxInvoice": false,
"paymentMethodId": "pm_1234567890abcdefghij",
"metadata": null,
"meta": null
},
"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"
}
}
}Attempts to charge the invoice using the associated payment method.
curl --request POST \
--url https://api.quentli.com/v1/invoices/{id}/try-payment \
--header 'Authorization: Bearer <token>'{
"success": true,
"payment": {
"id": "p_1234567890abcdefghij",
"createdAt": "2025-01-15T18:30:00.000Z",
"updatedAt": "2025-01-15T18:30:00.000Z",
"amount": 150000,
"currency": "MXN",
"description": "Colegiatura Enero 2025",
"type": "CARD",
"status": "COMPLETE",
"isCompleted": true,
"paymentTime": "2025-01-15T18:30:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"organizationId": "org_1234567890abcdefghij",
"skipTaxInvoice": false,
"paymentMethodId": "pm_1234567890abcdefghij",
"metadata": null,
"meta": null
},
"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.
Payment attempt result
Result of retrying a payment for an invoice.
Was this page helpful?