Save a bill payment request. If the field isCart is set to true, it handles the creation of a new cart or adds the bill payment request to an existing cart retrieved by its ID.
POST/api/v1/bill-payment-requests
This endpoint performs the following actions:
- Persists the bill payment request.
- If the
isCartfield is set to true:- Checks if a cart exists for the current user.
- If no cart exists, creates a new one.
- If a cart already exists with the status (PENDING), adds the bill payment request to it.
- If
isCartis false, the request is saved without involving the cart logic.
Request
Responses
- 200
- 400
Bill payment request saved successfully.
Invalid request.