Sales Data
Claret Sales data APIs
GET Sales
Query Parameters
Name
Type
Description
-- include_flattened_hierarchy was NOT included in the request for this response:
- Actual request from zymoeno tenant:
-- https://plan.claret.app/zymoeno/api/v1/sales?start_date=2022-06-01&duration=600&sale_type_name=Forecast
{
"success_message": "Successfully retrieved 298 Sales records matching `sale_type_id`='3' and `sell_date`>='2022-06-01' and `sell_date`<='2024-01-22'",
"sales": [
{
"id": 12310,
"sell_date": "2022-06-01",
"quantity": 0,
"created_at": "2021-09-28T16:51:44.000000Z",
"updated_at": "2022-04-15T16:03:35.000000Z",
"item_name": "117",
"customer_group_name": "Palm Tree Distribution",
"timing_interval_span": "month",
"sale_type_name": "Forecast",
"uom_abbr": "9LE"
},
{
"id": 12334,
"sell_date": "2022-06-01",
"quantity": 196.195,
"created_at": "2021-09-28T16:51:44.000000Z",
"updated_at": "2022-04-15T16:03:35.000000Z",
"item_name": "118",
"customer_group_name": "Palm Tree Distribution",
"timing_interval_span": "month",
"sale_type_name": "Forecast",
"uom_abbr": "9LE"
},
... [additional records] ...
{
"id": 23274,
"sell_date": "2022-12-01",
"quantity": 135,
"created_at": "2022-12-21T00:35:13.000000Z",
"updated_at": "2022-12-21T00:35:13.000000Z",
"item_name": "124",
"customer_group_name": "Alamo Wholesalers",
"timing_interval_span": "month",
"sale_type_name": "Forecast",
"uom_abbr": "9LE"
}
],
"total": 298,
"from": 1,
"to": 298,
"per_page": 1000,
"previous_data_count": 0,
"data_count_remaining": 0,
"current_index": 0,
"next_index": null,
"success_count": 298
}
-- include_flattened_hierarchy=1 WAS included in the request for this response:
- Actual request from zymoeno tenant:
-- https://plan.claret.app/zymoeno/api/v1/sales?start_date=2022-06-01&duration=600&sale_type_name=Forecast&include_flattened_hierarchy=1
{
"success_message": "Successfully retrieved 298 Sales records matching `sale_type_id`='3' and `sell_date`>='2022-06-01' and `sell_date`<='2024-01-22'",
"sales": [
{
"id": 12310,
"item_name": "117",
"customer_group_name": "Palm Tree Distribution",
"timing_interval_span": "month",
"uom": "9LE Case",
"uom_abbr": "9LE",
"sale_type_name": "Forecast",
"sell_date": "2022-06-01",
"quantity": 0,
"created_at": "2021-09-28T16:51:44.000000Z",
"updated_at": "2022-04-15T16:03:35.000000Z",
"brand_group": "Premium group",
"brand": "Clairemont brand",
"item": "117",
"item_description": "CLM Central Coast Sangiovese 12 x 750ml",
"division": "East div",
"state": "Florida",
"distributor": "Palm Tree Distribution",
"distributor_description": "PTD"
},
{
"id": 12334,
"item_name": "118",
"customer_group_name": "Palm Tree Distribution",
"timing_interval_span": "month",
"uom": "9LE Case",
"uom_abbr": "9LE",
"sale_type_name": "Forecast",
"sell_date": "2022-06-01",
"quantity": 196.195,
"created_at": "2021-09-28T16:51:44.000000Z",
"updated_at": "2022-04-15T16:03:35.000000Z",
"brand_group": "Premium group",
"brand": "Clairemont brand",
"item": "118",
"item_description": "CLM Central Coast White Blend 12 x 750ml",
"division": "East div",
"state": "Florida",
"distributor": "Palm Tree Distribution",
"distributor_description": "PTD"
},
... [additional records] ...
{
"id": 23274,
"item_name": "124",
"customer_group_name": "Alamo Wholesalers",
"timing_interval_span": "month",
"uom": "9LE Case",
"uom_abbr": "9LE",
"sale_type_name": "Forecast",
"sell_date": "2022-12-01",
"quantity": 135,
"created_at": "2022-12-21T00:35:13.000000Z",
"updated_at": "2022-12-21T00:35:13.000000Z",
"brand_group": "Premium group",
"brand": "ZAM brand",
"item": "124",
"item_description": "ZAM Lodi Zinfandel 12 x 750ml",
"division": "West div",
"state": "Texas",
"distributor": "Alamo Wholesalers",
"distributor_description": "AW"
}
],
"total": 298,
"from": 1,
"to": 298,
"per_page": 1000,
"previous_data_count": 0,
"data_count_remaining": 0,
"current_index": 0,
"next_index": null,
"success_count": 298
}POST Sales
Request Body
Name
Type
Description
Last updated
Was this helpful?