v1

latestOpenAPI 3.0.12026-07-245277551.2 MB
Fiscal Documents

Get document creation rules for a given document kind

Returns field definitions that the UI must collect when creating a document of the given kind. Uses the same FieldDefinition schema as action.fields on document actions.

get/fiscal-document/v1/fiscal-documents/rules

Query parameters

documentKind'INVOICE' | 'CREDIT_NOTE' | 'RECEIPT' | 'RECTIFY_INVOICE' | 'PRO_FORMA_INVOICE' | 'REFUND_RECEIPT' | 'INVOICE_RECEIPT' | 'ADVANCE_INVOICE' | 'SETTLEMENT_INVOICE' | 'TAX_WITHHOLDING' required

Kind of fiscal document

Headers

X-Property-IDinteger required

Property id

Accept-Languagestring

Desired language of exported PDF

Response

List of field definitions for document creation

pathstring required

Field path (e.g., "name", "tax_id.code", "addresses")

labelstring required

Display label for the field

type'text' | 'email' | 'password' | 'file' | 'select' | 'boolean' | 'array' | 'object' required

Field input type

category'company' | 'tax' | 'address' | 'contact' | 'supplementary' | 'custom'

Field grouping category

sectionKeystring

Key of the RulesSection that hosts this field. Defaults to "registration" when absent. Nested fields inside arrays/objects inherit the parent's section and should omit this attribute.

requiredboolean required

Whether field is required

primaryboolean

Indicates primary tax ID field

propertiesobject

Object properties for object type fields

descriptionstring

Field description