Add a product
POST {{baseUrl}}/products
Adds a new product to the Products inventory. For more information, see the tutorial for adding a product.
Request Body
{"name"=>"<string>", "code"=>"<string>", "description"=>"<string>", "unit"=>"<string>", "tax"=>0, "category"=>"<number>", "owner_id"=>"<integer>", "is_linkable"=>true, "visible_to"=>"<number>", "prices"=>["<object>", "<object>"], "billing_frequency"=>"one-time", "billing_frequency_cycles"=>nil}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"success":true,"data":{"id":1,"name":"Mechanical Pencil","code":"MPENCIL","description":"Product description","unit":"","tax":0,"category":"Retail","is_linkable":true,"is_deleted":false,"visible_to":3,"owner_id":1234,"add_time":"2019-12-19T11:36:49Z","update_time":"2019-12-19T11:36:49Z","billing_frequency":"monthly","billing_frequency_cycles":4,"prices":[{"product_id":1,"price":5,"currency":"EUR","cost":2,"direct_cost":1,"notes":"this is a note"}],"custom_fields":{"6d74315176adcc4c97108440449b93ba57d20704":16}}}