Skip to main content

Cancel document

POST 

/v1/spaces/:spaceId/documents/:documentId:cancel

Preview: The API is in development or testing phases and the interface could still change slightly.

Cancels a document. Eligible categories: INVOICE, CREDIT_NOTE, SELF_BILLED_INVOICE, SELF_BILLED_CREDIT_NOTE, RECEIPT — 422 if not eligible. Allowed statuses per category: DISPUTED or REFUSED for INVOICE, CREDIT_NOTE, SELF_BILLED_INVOICE, SELF_BILLED_CREDIT_NOTE; FULLY_APPROVED for RECEIPT — 409 otherwise. The comment field is optional.
Scope: space_read, space_write

Request

Responses

Cancel document request accepted