GET Sales Payments by Sale ID
Developing
GET
{{url}}api/v1/admin/sales/payment/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/admin/sales/payment/5' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT'
Response Response Example
{
"status": "success",
"message": "Payments retrieved successfully",
"data": {
"id": 5,
"reference_no": "INV-00003",
"grand_total": "2,715.81",
"paid": "2,300.00",
"balance": "415.81",
"paid_status": {
"value": 0,
"text": "Partial"
},
"warehouse": {
"id": 1,
"name": "Warehouse 1"
},
"customer": {
"id": 3,
"name": "Tom"
},
"biller": {
"id": 2,
"name": "William"
},
"status": {
"value": 1,
"text": "Completed"
},
"payments": [
{
"id": 5,
"paid_date": "2024-05-13 23:00:00",
"amount": "1,800.00",
"note": "Initial ayment",
"paying_by": {
"value": 0,
"text": "Cash"
}
},
{
"id": 6,
"paid_date": "2024-05-16 23:00:00",
"amount": "300.00",
"note": "balance installent",
"paying_by": {
"value": 0,
"text": "Cash"
}
},
{
"id": 7,
"paid_date": "2024-05-19 23:00:00",
"amount": "200.00",
"note": "installment",
"paying_by": {
"value": 1,
"text": "Card"
}
},
...
...
...
]
}
}
Request
Path Params
id
integerÂ
required
Example:
5
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Responses
Modified at 2024-05-27 01:14:49