Refuse document
POST/v1/spaces/:spaceId/documents/:documentId:refuse
Preview: The API is in development or testing phases and the interface could still change slightly.
Refuses a document. Eligible categories: INVOICE, CREDIT_NOTE, SELF_BILLED_INVOICE, SELF_BILLED_CREDIT_NOTE, QUOTE — 422 if not eligible. For INVOICE, CREDIT_NOTE, SELF_BILLED_INVOICE, SELF_BILLED_CREDIT_NOTE: document must be in status VALIDATED, FULLY_APPROVED, DISPUTED, or REFUSED — 409 if not; reason is mandatory — 400 if absent. For QUOTE: document must be in status VALIDATED with delivery status SENT or RECEIVED — 409 if not; reason is optional.
Scope: space_read, space_write
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- 422
Refuse document request accepted
Missing or invalid refusal reason
Unauthorized
Access denied
Document not found
Document is not in an eligible state for refusal
Document category does not support the refuse operation