# Delete invoice, that is in draft state only. `DELETE https://api.leapa.co/v2/invoices/{invoice_id}` Send your API key as a bearer token in the `Authorization` header. ## Path parameters - `invoice_id` · _string_ · **required** Example: `inv_7c1f9a2b48` ## Response 200 - `id` · _string_ — Invoice ID - `object` · _string_ — The object name - `deleted` · _boolean_ — Flag indicating that the invoice is delete. ```json { "id": "obj_5f21c8a40b", "object": "string", "deleted": false } ``` ## Status codes - `200` OK - `400` Bad request - `401` Unauthorized - `402` Payment required - `403` Forbidden - `404` Not found - `428` Precondition required - `500` Server error ## Example ```bash curl -X DELETE "https://api.leapa.co/v2/invoices/inv_7c1f9a2b48" \ -H "Authorization: Bearer $LEAPA_API_KEY" \ -H "Accept: application/json" ``` --- _Generated from the Leapa documentation at leapa.co/docs._