Skip to content

Search API reference

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

Create an invoice

Create an invoice as a draft.

POST/v1/invoices

Create an invoice as a draft.

Endpoint

http
POST /v1/invoices

Request body

NameTypeRequiredDescription
customersarray of stringsRequiredWho it bills, cust_.... Several split the total equally.
namestringRequiredWhat it's for.
currencystringRequiredusd.
line_itemsarrayRequiredEach a price from your catalog (one-time), or a one-time item with name and unit_amount; with quantity and an optional discount_bps.
payment_termsenumOptionaldue_on_receipt, net_15, net_30, net_45, net_60, or custom with due_date. Default: your invoice settings.
issue_datedateOptionalDefault: today.
due_datedateOptionalFor custom terms.
descriptionstringOptionalShown on the invoice.
languagestringOptionalDefault: your invoice settings.
tax_rate_bpsintegerOptionalIn basis points, charged on the total after discounts.
late_fee_bpsintegerOptionalIn basis points. Stated, never charged.
auto_remindersbooleanOptionalDefault: your invoice settings.
notesstringOptionalPrinted above the items.
termsstringOptionalPrinted at the foot.
scheduled_send_attimestampOptionalSend it on its own at this time instead of now.

Example request

bash
curl -X POST https://api.sovgate.com/v1/invoices \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: c2925bf7-4b2a-4c1d-9e3f-30a5e2e134bb" \  -H "Content-Type: application/json" \  -d '{  "customers": [    "cust_13ed3f69adfcfcb6289a5491"  ],  "name": "October retainer",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 10    }  ],  "payment_terms": "net_30",  "notes": "Thank you for your business."}'

Example response

json
{  "id": "inv_9901466208dd4002a3d80244",  "object": "invoice",  "livemode": false,  "number": "INV-20261127-10000042",  "name": "October retainer",  "description": null,  "status": "draft",  "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": "pending",      "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": null,  "paid_at": null,  "canceled_at": null,  "created": "2026-11-27T08:41:00Z"}