- Fakturan.nu API 2 /
- Products /
- create
POST
/api/v2/products
Create a product
Params
-
name
Name of the product or service.
- unit
- price
- tax
-
product_code
Max length 30
Examples
POST /api/v2/products { "name": "Test", "price": "150.3", "tax": 12, "unit": "h", "product_code": "XYZ" } 201 { "data": { "id": 1, "product_code": "XYZ", "name": "Test", "unit": "h", "price": "150.3", "price_inc_tax": "168.34", "tax": 12 } }
# The name of the product or service is required. # Leaving it out will result in a validation error. POST /api/v2/products { "name": "" } 422 { "errors": { "name": [ { "error": "blank" } ] } }