Skip to content

Search API reference

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

Delete an invoice

Delete a draft or a canceled invoice. Its number is never reused.

DELETE/v1/invoices/{id}

Delete a draft or a canceled invoice. Its number is never reused.

Endpoint

http
DELETE /v1/invoices/{id}

Path parameters

NameTypeDescription
idstringThe invoice's ID, inv_....

Example request

bash
curl -X DELETE https://api.sovgate.com/v1/invoices/inv_9901466208dd4002a3d80244 \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 94149b42-4b2a-4c1d-9e3f-b1a0a425159e"

Example response

json
{  "id": "inv_9901466208dd4002a3d80244",  "object": "invoice",  "deleted": true}