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
- 202
- 401
- 403
- 404
- 409
- 422
Cancel document request accepted
Unauthorized
Access denied
Document not found
Document is not in an allowed status for cancellation
Document category/folder combination does not support the cancel operation