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
Key | Datatype | Required | Description |
---|---|---|---|
start | number | Pagination start | |
limit | string | Items shown per page | |
include_product_data | string | Whether to fetch product data along with each attached product (1) or not (0, default) |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"success":true,"data":[{"id":7,"deal_id":5,"order_nr":1,"product_id":4,"product_variation_id":null,"item_price":22,"discount":0.2,"discount_type":"percentage","sum":109.78,"currency":"EUR","enabled_flag":true,"add_time":"2020-09-18 11:11:06","last_edit":"2020-09-18 11:11:06","comments":"This is comment","active_flag":true,"tax":11,"tax_method":"inclusive","name":"1234","sum_formatted":"109,78 €","quantity_formatted":"5","quantity":5,"billing_frequency":"weekly","billing_frequency_cycles":52,"billing_start_date":null,"product":{"id":1,"name":"Regular Pencil","code":"MPENCIL","description":null,"unit":"","tax":0,"category":null,"active_flag":true,"selectable":true,"first_char":"r","visible_to":"3","owner_id":{"id":10100010,"name":"Example User","email":"example@test.com","has_pic":true,"pic_hash":"5df5332929fab76702207f38b29a5d82","active_flag":true,"value":10100010},"files_count":null,"add_time":"2019-12-19 11:36:49","update_time":"2019-12-26 13:35:17","billing_frequency":"weekly","billing_frequency_cycles":52,"prices":[{"id":1,"product_id":1,"price":5,"currency":"EUR","cost":2,"overhead_cost":3,"notes":"this is a note"}]}}],"additional_data":{"products_quantity_total":6,"products_sum_total":3342,"products_quantity_total_formatted":"6","products_sum_total_formatted":"3 342,79 €","pagination":{"start":0,"limit":100,"more_items_in_collection":false}},"related_objects":{"user":{"10100010":{"id":10100010,"name":"Test User","email":"example@test.com","has_pic":true,"pic_hash":"5df5332929fab76702207f38b29a5d88","active_flag":true}}}}