Get fiscalization rules for a country
Returns country-specific fiscalization rules for building forms. The response always includes the full section list; fields is filtered by the optional sectionKey query param (default registration).
Request
- Base URLhttps://api.cloudbeds.com
- URLhttps://api.cloudbeds.com/fiscal-document/v1/fiscalization/registration/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
ISO 3166-1 alpha-2 country code (e.g., BR, PL, MX)
Filter fields to the given section. Default registration. Pass the key of any section declared in the rules (e.g. customization.invoicing) to fetch its fields only.
Fiscal channel to scope the rules and requirements to (e.g. SR for Italy Smart Receipts / Documento Commerciale). Omit for the default channel (e.g. Italy SDI / FatturaPA); unknown channels fall back to the country's default rules.
Response
Successfully retrieved fiscalization rules
Example response
{
"country": {
"code": "BR",
"name": "Brazil"
},
"fields": [
{
"path": "name",
"label": "Legal Name",
"sectionKey": "customization.invoicing",
"requiredIf": {
"field": "taxId",
"pattern": "^[^123]"
}
}
],
"sections": [
{
"key": "customization.invoicing",
"label": "Invoice generation"
}
],
"requires": {
"reports": [
{
"id": "saft",
"label": "SAF-T Report",
"description": "Export SAF-T file for submission to Autoridade Tributária",
"params": [
{
"name": "year",
"label": "Year",
"description": "Fiscal year (e.g., 2024)"
}
]
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.