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
Request
- Base URLhttps://api.cloudbeds.com
- URLhttps://api.cloudbeds.com/fiscal-document/v1/fiscal-documents/rules
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.cloudbeds.com/auth/oauth/authorizeToken URL: https://api.cloudbeds.com/auth/oauth/token scopes: read:reservation
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
Example response
[
{
"path": "name",
"label": "Legal Name",
"sectionKey": "customization.invoicing",
"requiredIf": {
"field": "taxId",
"pattern": "^[^123]"
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.