List products attached to a deal

GET {{baseUrl}}/deals/:id/products?start=0&limit=<integer>&include_product_data=<number>

Lists products attached to a deal.

Request Params

KeyDatatypeRequiredDescription
startnumberPagination start
limitstringItems shown per page
include_product_datastringWhether to fetch product data along with each attached product (1) or not (0, default)

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:7,&quot;deal_id&quot;:5,&quot;order_nr&quot;:1,&quot;product_id&quot;:4,&quot;product_variation_id&quot;:null,&quot;item_price&quot;:22,&quot;discount&quot;:0.2,&quot;discount_type&quot;:&quot;percentage&quot;,&quot;sum&quot;:109.78,&quot;currency&quot;:&quot;EUR&quot;,&quot;enabled_flag&quot;:true,&quot;add_time&quot;:&quot;2020-09-18 11:11:06&quot;,&quot;last_edit&quot;:&quot;2020-09-18 11:11:06&quot;,&quot;comments&quot;:&quot;This is comment&quot;,&quot;active_flag&quot;:true,&quot;tax&quot;:11,&quot;tax_method&quot;:&quot;inclusive&quot;,&quot;name&quot;:&quot;1234&quot;,&quot;sum_formatted&quot;:&quot;109,78 €&quot;,&quot;quantity_formatted&quot;:&quot;5&quot;,&quot;quantity&quot;:5,&quot;billing_frequency&quot;:&quot;weekly&quot;,&quot;billing_frequency_cycles&quot;:52,&quot;billing_start_date&quot;:null,&quot;product&quot;:{&quot;id&quot;:1,&quot;name&quot;:&quot;Regular Pencil&quot;,&quot;code&quot;:&quot;MPENCIL&quot;,&quot;description&quot;:null,&quot;unit&quot;:&quot;&quot;,&quot;tax&quot;:0,&quot;category&quot;:null,&quot;active_flag&quot;:true,&quot;selectable&quot;:true,&quot;first_char&quot;:&quot;r&quot;,&quot;visible_to&quot;:&quot;3&quot;,&quot;owner_id&quot;:{&quot;id&quot;:10100010,&quot;name&quot;:&quot;Example User&quot;,&quot;email&quot;:&quot;example@test.com&quot;,&quot;has_pic&quot;:true,&quot;pic_hash&quot;:&quot;5df5332929fab76702207f38b29a5d82&quot;,&quot;active_flag&quot;:true,&quot;value&quot;:10100010},&quot;files_count&quot;:null,&quot;add_time&quot;:&quot;2019-12-19 11:36:49&quot;,&quot;update_time&quot;:&quot;2019-12-26 13:35:17&quot;,&quot;billing_frequency&quot;:&quot;weekly&quot;,&quot;billing_frequency_cycles&quot;:52,&quot;prices&quot;:[{&quot;id&quot;:1,&quot;product_id&quot;:1,&quot;price&quot;:5,&quot;currency&quot;:&quot;EUR&quot;,&quot;cost&quot;:2,&quot;overhead_cost&quot;:3,&quot;notes&quot;:&quot;this is a note&quot;}]}}],&quot;additional_data&quot;:{&quot;products_quantity_total&quot;:6,&quot;products_sum_total&quot;:3342,&quot;products_quantity_total_formatted&quot;:&quot;6&quot;,&quot;products_sum_total_formatted&quot;:&quot;3 342,79 €&quot;,&quot;pagination&quot;:{&quot;start&quot;:0,&quot;limit&quot;:100,&quot;more_items_in_collection&quot;:false}},&quot;related_objects&quot;:{&quot;user&quot;:{&quot;10100010&quot;:{&quot;id&quot;:10100010,&quot;name&quot;:&quot;Test User&quot;,&quot;email&quot;:&quot;example@test.com&quot;,&quot;has_pic&quot;:true,&quot;pic_hash&quot;:&quot;5df5332929fab76702207f38b29a5d88&quot;,&quot;active_flag&quot;:true}}}}