Bakong API

APi ដ៏ល្អបំផុតសម្រាប់ Website របស់លោកអ្នក
Base URL: api.bakong.qzz.io Protocol: HTTPS only Status: Public

Authentication

This API uses bakongid allow-list. Only registered bakongid can access the endpoints.

Allowed → request works Not allowed → blocked

Blocked response (403)

{
  "status": "blocked",
  "error": "bakong_id_blocked"
}

Generate KHQR

GET /khqr/create

ParameterTypeRequiredDescription
amountstringYesAmount (example: 5.00)
bakongidstringYesBakong ID
merchantnamestringYesMerchant name

Example request

curl "https://api.bakong.qzz.io/khqr/create?amount=5.00&bakongid=yourbakong@id&merchantname=bakongapi"

Response

{
  "qr": "https://api.bakong.qzz.io/qr/ABC123",
  "md5": "e6c857f9bcf1d8e4158fe50c68099f3e"
}

Check MD5

GET /check_md5

ParameterTypeRequiredDescription
md5stringYesMD5 from KHQR
bakongidstringYesBakong ID

Responses

{ "status": "success", "error": null }
{ "status": "pending", "error": null }
{ "status": "failed", "error": null }
{ "status": "not_found", "error": "md5_not_found" }

Admin (internal)

Header required:

x-admin-key: YOUR_ADMIN_KEY

Endpoints

GET  /admin/bakong_ids
POST /admin/bakong_ids/add
POST /admin/bakong_ids/remove