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
Key | Datatype | Required | Description |
---|---|---|---|
deal_ids | string | (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_ids | string | (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. | |
cursor | string | For pagination, the marker (an opaque string value) representing the first item on the next page | |
limit | string | For 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_by | string | The field to sort by. Supported fields: id , deal_id , add_time , update_time . | |
sort_direction | string | The sorting direction. Supported values: asc , desc . |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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"}],"additional_data":{"next_cursor":"eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ"}}