| Field | Type | Required | Description |
|---|---|---|---|
external_id |
Optional[str] | ➖ | A unique identifier for the transaction item. |
date_ |
date | ✔️ | The date of the transaction item. |
description |
Optional[str] | ➖ | A description of the item. |
external_product_id |
Optional[str] | ➖ | External product identifier. If not found and product_subcategory and product_category are not provided, an error occurs. |
product_name |
Optional[str] | ➖ | Name of the product. Used if creating a new product. |
product_description |
Optional[str] | ➖ | Description of the product. Used if creating a new product. |
product_source |
Optional[models.SourceEnum] | ➖ | N/A |
product_subcategory |
Optional[str] | ➖ | Subcategory of the product. Required if product_category is used in place of external_product_id. |
product_category |
Optional[str] | ➖ | Category of the product. Required if product_subcategory is used in place of external_product_id. |
quantity |
Optional[float] | ➖ | Defaults to 1.0. The quantity of the item. |
amount |
float | ✔️ | The total amount of the item. |
exempt |
Optional[bool] | ➖ | Defaults to false. Indicates whether the item is exempt from tax. |