Enkash Developer Portal
Home
Home
Login
  1. APIs
  • Back to home
  • Bill Payment
  • APIs
    • Generate Authentication Token
      POST
    • Fetch Current Bill
      POST
    • Fetch Biller List
      GET
    • Fetch Biller Categories
      GET
    • Fetch Bulk Bill Details
      POST
    • Get Utility Bill By Reference ID
      GET
    • Get Utility Bill Status
      GET
    • Confirm Debit for Bill Payment
      PUT
    • Initiate Bill Payment via EnKash PG
      POST
    • Create Bill Without Bill Fetch
      POST
    • Create Bill After Successful Bill Fetch
      POST
  • Webhook
    • Setup Webhook Endpoint
  1. APIs

Initiate Bill Payment via EnKash PG

POST
/api/v0/payment
📌
Use this API to initiate a payment gateway
This allows you to generate a payment request and direct your customer to a secure EnKash checkout interface to complete the transaction, offering flexibility and an additional layer of payment option.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
paymentIds
array[string]
required
list of utility bill's ids
paymentType
enum<string> 
required
Fix value: UTILITY
Allowed value:
UTILITY
Default:
UTILITY
paymentRemarks
string 
optional
Optional remark
Example
{
    "paymentIds": [
        "string"
    ],
    "paymentType": "UTILITY",
    "paymentRemarks": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/api/v0/payment' \
--header 'Content-Type: application/json' \
--data-raw '{
    "paymentIds": [
        "string"
    ],
    "paymentType": "UTILITY",
    "paymentRemarks": "string"
}'

Responses

🟢200Success
application/json
Body
response_code
integer 
required
response_message
string 
required
payload
string 
optional
It will contain the checkout url for making payment
Example
{
  "response_code": 1,
  "response_message": "Failure",
  "payload": "Url"
}
Modified at 2025-07-08 20:10:37
Previous
Confirm Debit for Bill Payment
Next
Create Bill Without Bill Fetch
Built with