Skip to content

Payment Gateways

Base URL: https://your-domain.com

Payment gateway integration endpoints for processing online payments.


Bkash

Bkash payment gateway endpoints. These endpoints are called by the Bkash payment gateway system and do not require standard authentication.


Query Bill

Query subscriber bill information for Bkash payment processing.

PropertyValue
EndpointQuery Bill
MethodPOST
URL/api/queryBill
AuthenticationBkash Gateway Auth

Request Headers:

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes

Request Body:

json
{
    "billerId": "your-biller-id",
    "billNo": "subscriber-username"
}
ParameterTypeRequiredDescription
billerIdstringYesBkash assigned biller ID
billNostringYesSubscriber username or ID

Success Response (200 OK):

json
{
    "billerId": "your-biller-id",
    "billNo": "subscriber001",
    "billAmount": 1000,
    "billDueDate": "2024-01-31",
    "customerName": "John Doe",
    "customerMobile": "01712345678",
    "status": "success"
}

Error Response (Bill Not Found):

json
{
    "status": "error",
    "message": "Bill not found"
}

Pay Bill

Process bill payment from Bkash.

PropertyValue
EndpointPay Bill
MethodPOST
URL/api/payBill
AuthenticationBkash Gateway Auth

Request Headers:

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes

Request Body:

json
{
    "billerId": "your-biller-id",
    "billNo": "subscriber-username",
    "transactionId": "TRX123456789",
    "amount": 1000,
    "payerMobile": "01712345678"
}
ParameterTypeRequiredDescription
billerIdstringYesBkash assigned biller ID
billNostringYesSubscriber username or ID
transactionIdstringYesBkash transaction ID
amountdecimalYesPayment amount
payerMobilestringYesPayer's mobile number

Success Response (200 OK):

json
{
    "status": "success",
    "message": "Payment successful",
    "transactionId": "TRX123456789",
    "billNo": "subscriber001",
    "amount": 1000,
    "paymentDate": "2024-01-15 10:30:00"
}

Error Response (Payment Failed):

json
{
    "status": "error",
    "message": "Payment failed: Invalid amount"
}

Search Transaction

Search for a specific transaction by transaction ID.

PropertyValue
EndpointSearch Transaction
MethodPOST
URL/api/searchTransaction
AuthenticationBkash Gateway Auth

Request Headers:

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes

Request Body:

json
{
    "billerId": "your-biller-id",
    "transactionId": "TRX123456789"
}
ParameterTypeRequiredDescription
billerIdstringYesBkash assigned biller ID
transactionIdstringYesBkash transaction ID

Success Response (200 OK):

json
{
    "status": "success",
    "transactionId": "TRX123456789",
    "billNo": "subscriber001",
    "amount": 1000,
    "payerMobile": "01712345678",
    "paymentDate": "2024-01-15 10:30:00",
    "transactionStatus": "completed"
}

Error Response (Transaction Not Found):

json
{
    "status": "error",
    "message": "Transaction not found"
}

www.onezeroart.com