Skip to main content

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

Refuse document request accepted