PUT Order Payment
Developing
PUT
{{url}}api/v1/admin/orders/payment/{payment_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://ecompulse.test/api/v1/admin/orders/payment/4' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"purchase_id": 3,
"paid_date": "2024-04-01",
"amount": 150.00,
"note": "payment edit",
"paying_by": 2
}'
Response Response Example
{
"status": "success",
"message": "Payment updated successfully",
"data": {
"id": 3,
"reference_no": "PORES-00003",
"grand_total": "307.19",
"paid": "150.00",
"balance": "157.19",
"status": {
"value": 0,
"text": "Partial"
},
"purchase": {
"id": 3,
"reference_no": "PO-00003",
"warehouse": "Warehouse 1",
"vendor": "Simson Poll"
},
"payments": [
{
"id": 4,
"paid_date": "2024-04-01 00:00:00",
"amount": "150.00",
"note": "payment edit",
"paying_by": {
"value": 2,
"text": "Cheque"
}
},
...
...
...
]
}
}
Request
Path Params
payment_id
integerÂ
required
Example:
4
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-27 03:17:38