GET POS Sale
Developing
GET
{{url}}api/v1/admin/pos/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/admin/pos/4' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT'
Response Response Example
{
"status": "success",
"message": "POS Sale retrieved successfully",
"data": {
"id": 4,
"reference_no": "POS3664026",
"date": "2024-05-24 14:41:04",
"note": "POS sale",
"order_tax": "214.65",
"order_shipping": "0.00",
"order_discount": "238.50",
"grand_total": "2,361.15",
"paid": "2,361.15",
"balance": "0.00",
"customer_payment": {
"paid": "2,361.15",
"change": "0.00",
"paying_by": "Card"
},
"paid_status": {
"value": 1,
"text": "Paid"
},
"warehouse": {
"id": 1,
"name": "Warehouse 1"
},
"customer": {
"id": 2,
"name": "Default"
},
"biller": {
"id": 3,
"name": "William"
},
"sale_by": "POS",
"status": {
"value": 1,
"text": "Completed"
},
"products": [
{
"id": 9,
"sku": "P9",
"name": "Apple iPhone",
"total_qty": 20,
"qty": 1,
"price": "2,250.00",
"product_net_price": "2,250.00",
"discount": "0.00",
"weight_based_price": "0.00",
"product_price_tax": "135.00",
"subtotal": "2,385.00",
"tax_method_id": 2,
"tax_id": 3,
"option_id": null,
"option_values": null
}
],
"payments": [
{
"id": 4,
"paid_date": "2024-05-24 14:41:04",
"amount": "2,361.15",
"note": "customer pos payment",
"paying_by": {
"value": 1,
"text": "Card"
}
}
]
}
}
Request
Path Params
id
integerÂ
required
Example:
4
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Responses
Modified at 2024-05-27 01:43:23