Endpoints for Education, ISP and Insurance bill query and payment confirmation — JSON over HTTPS.
| Header Key | Value / Notes |
|---|---|
| API-KEY | Will be generated by the API provider and configured at SSLCOMMERZ end(required) |
| Authorization | Bearer <token> (optional if API-KEY used) |
| Content-Type | application/json |
POST /api/v1/bill/query
| Field | Type | Required | Description |
|---|---|---|---|
| service_type | string | optional | One of education, isp, insurance |
| amount | number | optional | If known. Query allowed without it. |
| reference_id | string | Yes | This information will be used to identify the payee and the outstanding bill on your end. |
| mobile_no | string | required for education & isp | MSISDN (e.g. 01XXXXXXXXX) |
| dob | string (YYYY-MM-DD) | optional | if applicable at your end |
| bill_month | string (YYYY-MM) | optional | Billing month if applicable. |
reference_id could be student_id (string)reference_id could be the customer_no (string)reference_id could be the proposal_number (string){
"service_type": "education",
"reference_id": "STU123456",
"bill_month": "2025-09",
"mobile_no": "01712345678",
"dob": "2008-10-02"
}
{
"status": "success",
"message": "Bill Found",
"data": {
"name": "Rahim Uddin",
"reference_id": "STU123456",
"bill_month": "2025-09",
"amount_due": 5000,
"due_date": "2025-10-15",
"transaction_id": "TXN548257"
}
}
{
"service_type": "isp",
"reference_id": "CUST89011",
"mobile_no": "01898765432"
}
{
"status": "success",
"message": "Bill Found",
"data": {
"name": "XYZ Internet Client",
"reference_id": "ISP123456",
"package": "50 Mbps",
"amount_due": 1500,
"billing_cycle": "2025-10",
"transaction_id": "TXN548257"
}
}
{
"service_type": "insurance",
"reference_id": "PROP112233",
"amount": 7000
}
{
"status": "success",
"message": "Premium Due",
"data": {
"name": "Abdul Karim",
"reference_id": "INS123456",
"amount_due": 7000,
"due_date": "2025-11-30",
"transaction_id": "TXN548257"
}
}
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | optional | The customer name could be a student, an ISP user, or a policyholder based on your service. |
| amount_due | number | Yes | The amount will be collected through the payment gateway. |
| reference_id | string | Yes | This information will be used to identify the payee and the outstanding bill on your end. Your system must have the capability to process the due bill based on this parameter. |
| transaction_id | string | Yes | It will be the unique ID that will be used by the payment gateway at the time of payment. |
POST /api/v1/bill/payment/confirm
{
"transaction_id": "TXN548257",
"payment_approval_id": "APP548257",
"reference_id": "STU123456",
"amount": 5000
}
{
"status": "success",
"message": "Payment Confirmed",
"confirmation_id": "CONF987654321",
"transaction_id": "TXN548257",
"payment_approval_id": "APP548257",
"data": {
"service_type": "education",
"amount": 5000
}
}
POST /api/v1/bill/payment/status
{
"transaction_id": "TXN548257",
"reference_id": "STU123456",
"amount": 5000,
"mobile_no": "01712345678"
}
{
"status": "success",
"message": "Payment Success",
"confirmation_id": "CONF987654321",
"transaction_id": "TXN548257",
"payment_approval_id": "APP548257",
"details": {
"service_type": "education",
"amount": 5000
}
}
{
"status": "failed",
"error_code": "BILL_NOT_FOUND",
"message": "No bill available for provided information"
}
Status Codes:
200 - Success
400 - Invalid Request
404 - Bill Not Found
500 - Internal Server Error
service_type.