Endpoints for Education, ISP and Insurance bill query and payment confirmation — JSON over HTTPS.
| Header Key | Value / Notes |
|---|---|
| API-KEY | Provided by SSLCOMMERZ (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 | yes | One of education, isp, insurance |
| amount | number | optional | If known. Query allowed without it. |
| mobile_no | string | required for education & isp | MSISDN (e.g. 017XXXXXXXX) |
| dob | string (YYYY-MM-DD) | optional | Student date of birth (education only) |
| bill_month | string (YYYY-MM) | optional | Billing month if applicable |
reference_id or student_id (string)customer_no (string)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": {
"student_name": "Rahim Uddin",
"reference_id": "STU123456",
"bill_month": "2025-09",
"amount_due": 5000,
"due_date": "2025-10-15"
}
}
{
"service_type": "isp",
"customer_no": "CUST89011",
"mobile_no": "01898765432"
}
{
"status": "success",
"message": "Bill Found",
"data": {
"customer_name": "XYZ Internet Client",
"package": "50 Mbps",
"amount_due": 1500,
"billing_cycle": "2025-10"
}
}
{
"service_type": "insurance",
"proposal_number": "PROP112233",
"amount": 7000
}
{
"status": "success",
"message": "Premium Due",
"data": {
"policy_holder": "Abdul Karim",
"amount_due": 7000,
"due_date": "2025-11-30"
}
}
POST /api/v1/bill/payment/confirm
{
"transaction_id": "TXN548257",
"service_type": "education",
"reference_id": "STU123456",
"amount": 5000,
"mobile_no": "01712345678"
}
{
"status": "success",
"message": "Payment Confirmed",
"confirmation_id": "CONF987654321",
"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.