POST Order Payment
Developing
POST
{{url}}api/v1/admin/orders/payment
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ecompulse.test/api/v1/admin/orders/payment' \
--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": 50.00,
"note": "payment",
"paying_by": 1
}'
Response Response Example
{
"status": "success",
"message": "Payment created successfully",
"data": {
"id": 3,
"reference_no": "PORES-00003",
"grand_total": "307.19",
"paid": "50.00",
"balance": "257.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": "50.00",
"note": "payment",
"paying_by": {
"value": 1,
"text": "Card"
}
},
...
...
...
]
}
}
Request
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:14:01