GET All Sales
Developing
GET
{{url}}api/v1/admin/sales
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/admin/sales' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT'
Response Response Example
{
"status": "success",
"message": "Sales retrieved successfully",
"data": [
{
"id": 6,
"reference_no": "ECOM1033522",
"date": "2024-05-24 15:07:05",
"note": "Ecommerce sale",
"order_tax": "0.00",
"order_shipping": "10.00",
"order_discount": "25.00",
"grand_total": "212.00",
"paid": "212.00",
"balance": "0.00",
"customer_payment": {
"paid": "212.00",
"change": "0.00",
"paying_by": "Cash"
},
"paid_status": {
"value": 1,
"text": "Paid"
},
"warehouse": {
"id": 1,
"name": "Warehouse 1"
},
"customer": {
"id": 5,
"name": "Gore"
},
"biller": {
"id": 2,
"name": "William"
},
"sale_by": "Ecommerce",
"status": {
"value": 1,
"text": "Completed"
},
"products": [
{
"id": 11,
"sku": "P11",
"name": "Freedom Body Corn Dress",
"total_qty": 1,
"qty": 1,
"price": "66.00",
"product_net_price": "66.00",
"discount": "0.00",
"weight_based_price": "0.00",
"product_price_tax": "0.00",
"subtotal": "66.00",
"tax_method_id": null,
"tax_id": null,
"option_id": null,
"option_values": null
},
...
...
...
],
"payments": [
{
"id": 8,
"paid_date": "2024-05-24 15:07:05",
"amount": "212.00",
"note": "customer ecommerce payment",
"paying_by": {
"value": 0,
"text": "Cash"
}
}
]
},
...
...
...
]
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Responses
Modified at 2024-05-27 00:40:10