Add a product to a deal

POST {{baseUrl}}/deals/:id/products

Adds a product to a deal, creating a new item called a deal-product.

Request Body

{"item_price"=>"<number>", "quantity"=>"<number>", "product_id"=>"<integer>", "tax"=>0, "comments"=>"<string>", "discount"=>0, "is_enabled"=>true, "tax_method"=>"<string>", "discount_type"=>"percentage", "product_variation_id"=>"<integer>", "billing_frequency"=>"one-time", "billing_frequency_cycles"=>nil, "billing_start_date"=>nil}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:3,&quot;sum&quot;:90,&quot;tax&quot;:0,&quot;deal_id&quot;:1,&quot;name&quot;:&quot;Mechanical Pencil&quot;,&quot;product_id&quot;:1,&quot;product_variation_id&quot;:null,&quot;add_time&quot;:&quot;2019-12-19T11:36:49Z&quot;,&quot;update_time&quot;:&quot;2019-12-19T11:36:49Z&quot;,&quot;comments&quot;:&quot;&quot;,&quot;currency&quot;:&quot;USD&quot;,&quot;discount&quot;:0,&quot;quantity&quot;:1,&quot;item_price&quot;:90,&quot;tax_method&quot;:&quot;inclusive&quot;,&quot;discount_type&quot;:&quot;percentage&quot;,&quot;is_enabled&quot;:true,&quot;billing_frequency&quot;:&quot;one-time&quot;,&quot;billing_frequency_cycles&quot;:null,&quot;billing_start_date&quot;:&quot;2019-12-19&quot;}}