Invoice

Deletes a draft invoice, discarding it completely.

Changed on

Only an invoice that was never finalized can be deleted — a draft, or a generation attempt that failed. The invoice disappears from the payment provider as well, and its billing period returns to Open so it can be invoiced again. A finalized invoice must be voided through POST /invoice/{invoiceId}/void instead; deleting one responds 409 Conflict, as does deleting while generation is still in progress.

delete/invoice/{invoiceId}

Request

  • Base URL
    https://api.rapidata.ai
  • URL
    https://api.rapidata.ai/invoice/{invoiceId}
  • Auth
    OpenID Connect (https://auth.rapidata.ai/.well-known/openid-configuration, scopes: openid, profile, email, offline_access, api)

Path parameters

invoiceIdstring required

The invoice to delete.

Response

No Content

Changes