Update the product attached to a deal

PATCH {{baseUrl}}/deals/:id/products/:product_attachment_id

Updates the details of the product that has been attached to a deal.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&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;}}