Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

The invoice object

A bill to one or more customers, with a due date, that each pays online by card.

An invoice bills named customers for what they owe. Each customer gets an email with a link to pay online by card. With several customers, the total is split equally between them. Only a draft can change: once sent, an invoice is fixed.

Attributes

NameTypeDescription
idstringUnique identifier, starting inv_.
objectstringAlways invoice.
livemodebooleantrue in live mode.
numberstringThe number customers see: INV-, the day it was made, then your next number. Never reused.
namestringWhat it's for.
descriptionstring or nullShown on the invoice.
statusenumdraft, send_blocked, sent, pending_payment, partially_paid, paid, overdue or canceled.
currencystringusd.
languagestringThe invoice and its emails are written in it.
issue_datedateYYYY-MM-DD.
due_datedateYYYY-MM-DD.
payment_termsenumdue_on_receipt, net_15, net_30, net_45, net_60 or custom.
line_itemsarrayEach line: price (or null for a one-time item), name, description, quantity, unit_amount, discount_bps (basis points: 1000 is 10%) and total.
subtotalintegerBefore discounts and tax, in cents.
discount_amountintegerThe lines' discounts, in cents.
tax_rate_bpsinteger or nullThe tax rate in basis points (875 is 8.75%), charged on the total after discounts, for taxable customers only.
tax_amountintegerIn cents.
totalintegerIn cents.
amount_paidintegerIn cents.
amount_dueintegerWhat's still owed, in cents.
recipientsarrayEach customer billed: customer, status (pending, sent, viewed, partially_paid, paid, overdue or canceled), amount_due, amount_paid and paid_at.
late_fee_bpsinteger or nullIn basis points. Stated on the invoice; it is never charged automatically.
auto_remindersbooleanEmails anyone still owing 7, 3 and 1 days before the due date.
notesstring or nullPrinted above the items.
termsstring or nullPrinted at the foot.
scheduled_send_attimestamp or nullWhen a draft sends itself.
sent_attimestamp or nullWhen it was sent.
paid_attimestamp or nullWhen it was paid in full.
canceled_attimestamp or nullWhen it was canceled.
createdtimestampWhen it was created.

Example

json
{  "id": "inv_9901466208dd4002a3d80244",  "object": "invoice",  "livemode": false,  "number": "INV-20261127-10000042",  "name": "October retainer",  "description": null,  "status": "sent",  "currency": "usd",  "language": "en",  "issue_date": "2026-11-27",  "due_date": "2026-12-27",  "payment_terms": "net_30",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "name": "Consulting, October",      "description": null,      "quantity": 10,      "unit_amount": 15000,      "discount_bps": 0,      "total": 150000    }  ],  "subtotal": 150000,  "discount_amount": 0,  "tax_rate_bps": null,  "tax_amount": 0,  "total": 150000,  "amount_paid": 0,  "amount_due": 150000,  "recipients": [    {      "customer": "cust_13ed3f69adfcfcb6289a5491",      "status": "sent",      "amount_due": 150000,      "amount_paid": 0,      "paid_at": null    }  ],  "late_fee_bps": null,  "auto_reminders": true,  "notes": "Thank you for your business.",  "terms": null,  "scheduled_send_at": null,  "sent_at": "2026-11-27T09:00:00Z",  "paid_at": null,  "canceled_at": null,  "created": "2026-11-27T08:41:00Z"}

Endpoints

EndpointWhat it does
POST /v1/invoicesCreate an invoice as a draft.
GET /v1/invoices/{id}Get an invoice by its ID.
POST /v1/invoices/{id}Change a draft. A sent invoice is fixed: cancel it and duplicate it.
POST /v1/invoices/{id}/sendEmail a draft to its customers, or send a sent one again.
POST /v1/invoices/{id}/payRecord a payment the customer made another way, such as a bank transfer.
POST /v1/invoices/{id}/voidCancel an invoice: nothing more is owed.
POST /v1/invoices/{id}/duplicateCopy an invoice into a new draft.
DELETE /v1/invoices/{id}Delete a draft or a canceled invoice. Its number is never reused.
GET /v1/invoicesList your invoices, newest first.