Get Orders by Cart#
This endpoint retrieves orders based on the cart with the specified parameters.Request#
Endpoint#
GET
api/orders/orderbycart/#
Query Parameters#
societyid
(integer) - The ID of the society.
bizid
(integer) - The ID of the business.
limit
(integer) - The maximum number of orders to retrieve.
offset
(integer) - The number of orders to skip before starting to return results.
order
(string) - The order in which the results should be returned (e.g., "asc" or "desc").
Response#
Status#
Content-Type: application/json
Body#
{
"status": true,
"message": "",
"total": 0,
"data": {
"order": [
{
"id": "",
"orderid": "",
"item_name": "",
"item_id": "",
"societyid": "",
"cityname": "",
"statename": "",
"useraddress": null,
"userphone": null,
"username": null,
"useremail": null,
"societyaddress": "",
"ordertime": "",
"status": ""
}
]
}
}
The response contains a boolean status
, an optional message
, the total
number of orders, and an array of order
objects with their respective details.Request
Example:X-Token: ********************
order (desc or asc) (optional)
Body Params application/json
Request samples
curl --location --request GET '/api/orders/orderbycart/?societyid=6&bizid=1&limit=&offset=&order=desc' \
--header 'marchant-id: BIZ12354124' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Responses
application/json Modified at 2024-10-17 16:02:45