Get deal products of several deals

GET {{baseUrl}}/deals/products?deal_ids=<integer>&deal_ids=<integer>&cursor=<string>&limit=<integer>&sort_by=id&sort_direction=asc

Returns data about products attached to deals

Request Params

KeyDatatypeRequiredDescription
deal_idsstring(Required) An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
deal_idsstring(Required) An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided.
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page
limitstringFor pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
sort_bystringThe field to sort by. Supported fields: id, deal_id, add_time, update_time.
sort_directionstringThe sorting direction. Supported values: asc, desc.

HEADERS

KeyDatatypeRequiredDescription
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;}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}