get_fields
Retrieve field schema for a company entity to build or verify data mapping before running an import.
Instructions
Returns the field schema for an entity in a company: every field with its type, required flag, alternativeTitles, and predefinedValues. Use to build or verify a mapping before running an import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from list_companies. | |
| entityName | Yes | Entity name from list_entities (e.g., 'Invoice', 'Bill'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Field schema entries for the entity. |