Create a product
eboekhouden_create_productCreate a product or service. Needs code, description, a sale VAT code and a ledger id, and exactly one of price_excl or price_incl. Returns the new id. POST /v1/product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | Yes | Sale VAT code of the account's country, e.g. HOOG_VERK_21, LAAG_VERK_9, BE_21_VERK or GEEN (purchase codes are refused by the API). | |
| code | Yes | Product code (max 20). | |
| active | No | Whether the product is active. | |
| unit_id | No | Unit id from eboekhouden_list_units. | |
| group_id | No | Product group id from eboekhouden_list_product_groups. | |
| ledger_id | Yes | Revenue ledger id (from eboekhouden_list_ledgers). | |
| price_excl | No | Price excluding VAT (not with price_incl). | |
| price_incl | No | Price including VAT (not with price_excl). | |
| description | Yes | Product description. | |
| cost_center_id | No | Cost center id from eboekhouden_list_cost_centers. | |
| in_stock_management | No | Include in automatic stock management. | |
| purchase_price_excl | No | Purchase price excluding VAT. |