v1
latestOpenAPI 3.1.02026-07-228956435.8 KBInvoices
Create an invoice
Creates a one-off invoice for a customer, in the live or test mode of the API key used. The invoice is not tied to a subscription and starts in draft status. Fintoc does not charge the invoice until you finalize it. The total is the sum of the lines, which must all share the same currency. Fintoc charges the invoice automatically against default_payment_method, so collection_method is always charge_automatically.
post/invoices
Request body
Example request
{
"customer": "cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu",
"default_payment_method": "pm_2c4mDhAbCdEfGhIjKlMnOpQrStu",
"lines": [
{
"amount": 60000,
"currency": "CLP",
"name": "Design",
"description": "Design work",
"quantity": 1
}
],
"collection_method": "charge_automatically",
"metadata": {
"order_id": "12345"
}
}Response
The created invoice, in draft status.
Example response
{
"id": "inv_2bVdWxLpzXq8RkNcM3JtUv9AhTe",
"hosted_invoice_url": "https://acme.billing.fintoc.com/invoices/inv_2bVdWxLpzXq8RkNcM3JtUv9AhTe",
"attempt_count": 1,
"created_at": "2026-05-01T12:00:00Z",
"currency": "CLP",
"customer": "cus_2bVdWyTnGq4PfLs7DkXjRm0CwIo",
"default_payment_method": "pm_2c4mDhAbCdEfGhIjKlMnOpQrStu",
"lines": [
{
"id": "il_2bVdX0PqJs6RhNu9FmZlTo2EyKq",
"amount": 30000,
"currency": "CLP",
"description": "A premium plan",
"name": "Premium Plan",
"period_end": "2026-06-01T00:00:00Z",
"period_start": "2026-05-01T00:00:00Z",
"quantity": 1
}
],
"mode": "live",
"next_payment_attempt_at": "2026-05-02T12:00:00Z",
"payments": [
{
"amount": 30000,
"currency": "CLP",
"payment_intent": "pi_2bVdX2RsLu8TjPwBHoBnVq4G0Ms",
"status": "succeeded"
}
],
"status": "draft",
"subscription": "sub_2bVdWzKfHr5QgMt8ElYkSn1DxJp",
"total": 30000
}