Find an endpoint or a guide of the Sovgate API reference and jump straight to it.
Copy an invoice into a new draft.
POST /v1/invoices/{id}/duplicate| Name | Type | Description |
|---|---|---|
id | string | The invoice's ID, inv_.... |
curl -X POST https://api.sovgate.com/v1/invoices/inv_9901466208dd4002a3d80244/duplicate \ -H "Authorization: Bearer sov_sk_test_your_key" \ -H "Idempotency-Key: 1ba22829-4b2a-4c1d-9e3f-add99c642342"{ "id": "inv_be1d78432106579f67929368", "object": "invoice", "livemode": false, "number": "INV-20261127-10000043", "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": "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": null, "paid_at": null, "canceled_at": null, "created": "2026-11-27T08:41:00Z"}