Post Payment

post
/api/transactions/payment/process

Processes a payment for a specific sale using the provided payment details.
This endpoint is typically called after a sale has been created and an outstanding balance exists.

Request

                                                                                                           

Field Description
sale_id [integer] Unique identifier of the sale to which the payment will be applied.
payment_amount [string] Amount to be paid for the sale.
payment_method [string] Payment method used (e.g., Stripe, Bank Transfer, Cash, Cheque, etc).

payment_description

(Optional)

[string] Additional description or note about the payment.

 

 


{
   "sale_id": 1313,
   "payment_amount": 200,
   "payment_method": "Stripe",
   "payment_description": ""
}

Response

A successful request returns HTTP 200 and confirms that the payment was received.


{
   "status": 200,
   "response": true,
   "data": {
       "msg": "Payment received!"
   },
   "msg": "Request Successful"
}