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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":3,"sum":90,"tax":0,"deal_id":1,"name":"Mechanical Pencil","product_id":1,"product_variation_id":null,"add_time":"2019-12-19T11:36:49Z","update_time":"2019-12-19T11:36:49Z","comments":"","currency":"USD","discount":0,"quantity":1,"item_price":90,"tax_method":"inclusive","discount_type":"percentage","is_enabled":true,"billing_frequency":"one-time","billing_frequency_cycles":null,"billing_start_date":"2019-12-19"}}