Bills API
Delete a bill draft
Delete an unsent draft at its current revision.
DELETE
https://app.mindbill.org/partner/v2/bill-drafts/{draftId}Discard a saved draft the biller no longer needs. Submitted drafts cannot be deleted; they remain as the record of their bill.
Use this URL with a server API key or a browser session and its exact allowed Origin. Both credentials use the same request and response contract. See the component API inventory for exact paths and SDK methods.
Path parameters
FieldTypeDescription
draftIdRequiredstringBill draft identifier returned when the draft was saved.
1–255 charactersQuery parameters
FieldTypeDescription
expectedRevisionRequiredintegerThe draft's current revision.
≥ 1Examples
curl 'https://app.mindbill.org/partner/v2/bill-drafts/billdraft_example?expectedRevision=2' \
--request DELETE \
--header "Authorization: Bearer $MINDBILL_API_KEY" \
--header 'Idempotency-Key: billdraft_example-delete'curl 'https://app.mindbill.org/partner/v2/bill-drafts/billdraft_example?expectedRevision=2' \
--request DELETE \
--header "Authorization: Bearer $MINDBILL_BROWSER_TOKEN" \
--header 'Origin: https://your-app.example' \
--header 'Idempotency-Key: billdraft_example-delete'Response
200 OK
{ "data": { "id": "billdraft_example", "deleted": true } }FieldTypeDescription
data.idRequiredstringThe deleted draft.
data.deletedRequiredtrueAlways true on success.