VUZDevelopers

Unlink a receipt from this document

DELETE
/documents/{id}/unlink-receipt/{receiptId}

Remove the link between a receipt and an invoice.

Important: Only receipts that were NOT created through the system can be unlinked. If a receipt was created by converting this invoice to a receipt, it cannot be unlinked because it's an official document that was generated from the invoice.

Use Case: When an imported receipt was incorrectly linked to an invoice during manual linking.

X-Api-Key<token>

Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.

In: header

Path Parameters

id*string

Invoice document ID

receiptId*string

Receipt document ID to unlink

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/documents/string/unlink-receipt/string"
{  "success": true,  "documentBalance": 500,  "paymentStatus": "PARTIALLY_PAID",  "linkedCount": 2}