Skip to main content

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:

  1. Persists the bill payment request.
  2. If the isCart field 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.
  3. If isCart is false, the request is saved without involving the cart logic.

Request

Responses

Bill payment request saved successfully.