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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:1,&quot;name&quot;:&quot;Mechanical Pencil&quot;,&quot;code&quot;:&quot;MPENCIL&quot;,&quot;description&quot;:&quot;Product description&quot;,&quot;unit&quot;:&quot;&quot;,&quot;tax&quot;:0,&quot;category&quot;:&quot;Retail&quot;,&quot;is_linkable&quot;:true,&quot;is_deleted&quot;:false,&quot;visible_to&quot;:3,&quot;owner_id&quot;:1234,&quot;add_time&quot;:&quot;2019-12-19T11:36:49Z&quot;,&quot;update_time&quot;:&quot;2019-12-19T11:36:49Z&quot;,&quot;billing_frequency&quot;:&quot;monthly&quot;,&quot;billing_frequency_cycles&quot;:4,&quot;prices&quot;:[{&quot;product_id&quot;:1,&quot;price&quot;:5,&quot;currency&quot;:&quot;EUR&quot;,&quot;cost&quot;:2,&quot;direct_cost&quot;:1,&quot;notes&quot;:&quot;this is a note&quot;}],&quot;custom_fields&quot;:{&quot;6d74315176adcc4c97108440449b93ba57d20704&quot;:16}}}