Moloni ON Logo WhiteGuidesAPI ReferenceExplorer
API Reference

DeletionBlocker

enum

Reasons why an item can't be deleted

Empty array means the item is deletable.

Values

Fields

NameDescription
DOCUMENT_HAS_RELATEDClosed document referenced by another document (relatedIn)
DOCUMENT_TYPE_NOT_CLOSEDDELETABLEDocument type forbids deleting closed documents
DOCUMENT_COMMISSION_PAIDSalesperson commission for this document has already been reconciled/paid
PRODUCT_HAS_DOCUMENTProduct is referenced by a document
PRODUCT_HAS_STOCK_MOVEMENTProduct is stock-tracked and has stock movements
STORE_HAS_AREAStore has an area
TAX_HAS_DOCUMENT_PRODUCT_TAXTax is referenced by a document product's tax
TAX_HAS_PRODUCT_TAXTax is referenced by a product's tax
TABLE_IS_OCCUPIEDTable is currently occupied
AREA_HAS_OCCUPIED_TABLEArea has an occupied table
AGENT_COMMISSION_PAYMENT_NOT_REQUESTEDAgent commission payment has not been requested
AGENT_TYPE_HAS_AGENTAgent type has an agent
POS_REQUEST_PRODUCT_HAS_PAID_QUANTITYPOS request product has a paid quantity
PROMOCODE_HAS_USAGEPromocode has usage
PROMOTIONAL_MEDIUM_CATEGORY_HAS_MEDIAPromotional medium category has media
COMPANY_USER_IS_SUPPORTCompany user is a support user
COMPANY_USER_IS_SELFCompany user is the requesting user themselves
COMPANY_USER_IS_LAST_ADMINCompany user is the last admin of the company

© 2026 Moloni ON

Tax Authority Certificate No. 3075