Ware house pagination and sub total count

mail@pastecode.io avatar
unknown
plain_text
a year ago
11 kB
1
Indexable
Never
{
    "status": "SUCCESS",
    "data": {
        "reports": [
            {
                "item_id": "item_01HCN667CSXC7X7SND3A66SN85",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 1,
                "delivered_quantity": null,
                "order_id": "ord_01HCN67X8N9DKZC2VP7WN4AAWB",
                "order_number": "PO-83",
                "status": "placed",
                "order_date": "2023-10-13T18:54:35.797Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "Gg yiffyifiyffyi"
            },
            {
                "item_id": "item_01HCMCMWTECCJJFKEQ1R11QC30",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 1,
                "delivered_quantity": null,
                "order_id": "ord_01HCMD6DVPKGEMYEGPQ8EV6EVB",
                "order_number": "PO-65",
                "status": "placed",
                "order_date": "2023-10-13T11:36:52.854Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "Kareem Halwai"
            },
            {
                "item_id": "item_01HCMBBAWTEPRGH0HJF5GAWJHM",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMBCH9P1RH9AT2T7WJNSTA6",
                "order_number": "PO-63",
                "status": "placed",
                "order_date": "2023-10-13T11:05:15.831Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            },
            {
                "item_id": "item_01HCMB2EZNK71T0MN93MX5V6ZZ",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMB359X0Q3DFZVR9F4PBDXE",
                "order_number": "PO-62",
                "status": "placed",
                "order_date": "2023-10-13T11:00:08.638Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            },
            {
                "item_id": "item_01HCMAZS8CWPVBG8X6WFV7SYY9",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMB0JHW84EXTYQ7QW8K9K8M",
                "order_number": "PO-61",
                "status": "placed",
                "order_date": "2023-10-13T10:58:43.901Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            },
            {
                "item_id": "item_01HCMAQ103GWR5TDFFD6XAPVYY",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMASTSXBHT4BJWSMPGHNT7R",
                "order_number": "PO-60",
                "status": "placed",
                "order_date": "2023-10-13T10:55:02.974Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            },
            {
                "item_id": "item_01HCM9DCEX2N30Z6QGYY1CQG8Z",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCM9EZMPNNJ128EFHBPMV742",
                "order_number": "PO-59",
                "status": "placed",
                "order_date": "2023-10-13T10:31:38.903Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            },
            {
                "item_id": "item_01HCMJSQZPXMQMXYMXH14MRAAY",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMJVA12BC27Q1N5PC3QF601",
                "order_number": "PO-74",
                "status": "placed",
                "order_date": "2023-10-13T13:15:39.939Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "rohit"
            },
            {
                "item_id": "item_01HCMGF4G2N6MKSGA807YGK098",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMGH0C8MMJ7F0W6VGKMQA0A",
                "order_number": "PO-73",
                "status": "placed",
                "order_date": "2023-10-13T12:35:05.226Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "rohit"
            },
            {
                "item_id": "item_01HCMPC75X5P9WTTBC1WMMKCA8",
                "product": "coffee",
                "unit_price": 30,
                "quantity": 3,
                "delivered_quantity": null,
                "order_id": "ord_01HCMPCRCVYYWYVHY6EDXWB330",
                "order_number": "PO-78",
                "status": "canceled",
                "order_date": "2023-10-13T14:17:37.436Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "karan store"
            }
        ],
        "count": 21,
        "sub_total": "1848"
    }
}