代理钱包 · 孟加拉国
bKash Agent API
bKash 代理/商户钱包(孟加拉国)—— OTP 登录、余额、近期交易、搜索、分页历史、PDF 对账单,以及代理→客户的 Cash-In 转账。
沙箱 · 请求
curl -X POST 'https://www.openbankinggateway.com/api/sandbox/bkash-agent/login/request-otp' \
-H 'Content-Type: application/json' \
--data '{
"account": "01700000001",
"phoneOperator": "Grameenphone"
}'沙箱示例:不联系服务商、不发送短信、不转移资金、不扣除积分。
API 参考文档
清楚了解可调用的接口。
请求方法、路径和参数规则与控制台使用同一份目录。展开端点即可查看请求字段。
钱包认证
POST/login/request-otpSend the login OTP by SMS
支持真实调用
/login/request-otpSend the login OTP by SMS
/api/sandbox/bkash-agent/login/request-otp
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | JSON 请求体 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
phoneOperator必填 | string | JSON 请求体 Mobile operator of the agent SIM.
|
POST/login/verify-otpVerify the OTP and issue a session token
支持真实调用
/login/verify-otpVerify the OTP and issue a session token
/api/sandbox/bkash-agent/login/verify-otp
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | JSON 请求体 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
pin必填 | string | JSON 请求体 Wallet PIN. 敏感字段 · 请勿放入 URL
|
otp必填 | string | JSON 请求体 Digits of the SMS OTP. 敏感字段 · 请勿放入 URL
|
otpHash必填 | string | JSON 请求体 The trailing hash string of the OTP SMS. 敏感字段 · 请勿放入 URL
|
账户与活动
GET/balanceWallet balance, or a peek at a destination wallet
支持真实调用
/balanceWallet balance, or a peek at a destination wallet
/api/sandbox/bkash-agent/balance
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
msisdn可选 | string | 查询参数 Wallet to peek at (with serviceName=CASH_IN).
|
serviceName可选 | string | 查询参数 TAP_FOR_BALANCE (own wallet) or CASH_IN (destination peek).
|
GET/recent-transactionsMost recent transactions with full details
支持真实调用
/recent-transactionsMost recent transactions with full details
/api/sandbox/bkash-agent/recent-transactions
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
pageSize可选 | integer | 查询参数
|
GET/transaction-searchSearch transactions by id, amount or counterparty
支持真实调用
/transaction-searchSearch transactions by id, amount or counterparty
/api/sandbox/bkash-agent/transaction-search
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
searchKey必填 | string | 查询参数 Transaction id, amount or counterparty number.
|
GET/notification-historyPaged transaction feed (pageToken cursor)
支持真实调用
/notification-historyPaged transaction feed (pageToken cursor)
/api/sandbox/bkash-agent/notification-history
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
pageSize可选 | integer | 查询参数
|
pageToken可选 | string | 查询参数 Cursor from the previous page (omit for the first page).
|
GET/summary/dailyDaily transaction summary by type
支持真实调用
/summary/dailyDaily transaction summary by type
/api/sandbox/bkash-agent/summary/daily
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
GET/summary/monthlyMonthly transaction summary
支持真实调用
/summary/monthlyMonthly transaction summary
/api/sandbox/bkash-agent/summary/monthly
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
对账单
GET/statement/metadataStatement types and selectable date ranges
支持真实调用
/statement/metadataStatement types and selectable date ranges
/api/sandbox/bkash-agent/statement/metadata
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
GET/statement/historyStatement requests and remaining quota
支持真实调用
/statement/historyStatement requests and remaining quota
/api/sandbox/bkash-agent/statement/history
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
pageSize可选 | integer | 查询参数
|
pageToken可选 | string | 查询参数 Cursor from the previous page (omit for the first page).
|
POST/statement/downloadQueue a PDF statement (emailed to the agent)
支持真实调用
/statement/downloadQueue a PDF statement (emailed to the agent)
/api/sandbox/bkash-agent/statement/download
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | JSON 请求体 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
fromDate必填 | date | JSON 请求体
|
toDate必填 | date | JSON 请求体
|
type可选 | string | JSON 请求体
|
fromDate ≤ toDate
转账
GET/business-walletBusiness wallet bound to the agent (B2B target)
支持真实调用
/business-walletBusiness wallet bound to the agent (B2B target)
/api/sandbox/bkash-agent/business-wallet
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | 查询参数 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
POST/cash-inCash-In from the agent wallet to a customer wallet
支持真实调用
/cash-inCash-In from the agent wallet to a customer wallet
/api/sandbox/bkash-agent/cash-in
仅在已支持的真实接口中转移真实资金。请确认收款方和金额,并发送唯一的 Idempotency-Key。
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | JSON 请求体 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
customerWallet必填 | string | JSON 请求体 Customer wallet to credit.
|
amount必填 | decimal | JSON 请求体
|
pin必填 | string | JSON 请求体 Wallet PIN. 敏感字段 · 请勿放入 URL
|
cashInType可选 | string | JSON 请求体
|
POST/b2b-transferB2B transfer to the bound business wallet
支持真实调用
/b2b-transferB2B transfer to the bound business wallet
/api/sandbox/bkash-agent/b2b-transfer
仅在已支持的真实接口中转移真实资金。请确认收款方和金额,并发送唯一的 Idempotency-Key。
| 参数 | 类型 | 规则与传递方式 |
|---|---|---|
account必填 | string | JSON 请求体 Agent wallet number (11 digits). 请使用你有权访问的钱包。真实钱包身份须通过钱包登录关联到你的网站账户。
|
token必填 | string | 通过 X-OBG-Token 发送 Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. 敏感字段 · 请勿放入 URL
|
amount必填 | decimal | JSON 请求体
|
pin必填 | string | JSON 请求体 Wallet PIN. 敏感字段 · 请勿放入 URL
|
businessWallet可选 | string | JSON 请求体 Target business wallet. Omit it to use the wallet bound to the agent.
|
端点标识和服务商专用描述保留英文,以对应 API 协议。
在沙箱中试用
发起一个可检查的请求。
控制台默认进入沙箱,请仅使用公开测试值。切换到真实模式会改变请求目标,并可能使用真实账户和资金。
沙箱
将探索测试、账户权限和计费清晰分开。
从第一次请求到真实连接。
无需登录,先行探索
选择 API,使用文档中的测试值调用沙箱。模拟响应不会转移资金,也不会联系银行。
创建网关账户
使用 Google 登录,获得 1,000 欢迎积分并创建 API 密钥。这只登录网站,不会登录钱包。
准备好后再连接
对于已支持的真实 API,请单独完成钱包登录。真实请求成功扣 1 积分,失败不扣费。
轻松起步,费用清晰。
10 美元购买 10,000 积分。真实请求成功扣 1 积分,失败和沙箱调用不扣费。购买积分不会解锁仅沙箱的接口。
集成指南
把接口接入你的代码。
沙箱示例使用公开模拟值。真实调用示例使用占位符:请将凭据保存在服务器端,不要提交到代码仓库。
沙箱
curl -X POST 'https://www.openbankinggateway.com/api/sandbox/bkash-agent/login/request-otp' \
-H 'Content-Type: application/json' \
--data '{
"account": "01700000001",
"phoneOperator": "Grameenphone"
}'支持真实调用
curl 'https://www.openbankinggateway.com/api/v1/bkash-agent/balance?account=<YOUR_WALLET_NUMBER>' \
-H "x-api-key: $OBG_API_KEY" \
-H "X-OBG-Token: $WALLET_TOKEN"真实 bKash 钱包登录后,其会话会关联到你的网站账户。其他网站用户不能接管该钱包关联。请安全保存返回的钱包令牌,并在服务商会话过期后重新认证。
在第一次请求前,明确边界。
开始前,你可能想了解。
沙箱会使用真实账户吗?
不会。沙箱使用固定模拟响应和公开测试凭据,不会联系金融服务商、发送验证码或转移资金。
所有 API 都能真实调用吗?
不能。只有标注支持真实调用的接口具有真实上游。其他接口仅支持沙箱,在真实模式下返回 LIVE_ACCESS_NOT_ENABLED。如需开通,请联系我们。
什么时候会扣除积分?
每次成功的真实调用扣 1 积分,失败调用和沙箱调用免费。请查看 X-Credits-Charged,不要仅凭 HTTP 状态判断扣费。如果出现 X-OBG-Settlement: unknown,表示计费结果尚未确定:X-Credits-Charged: 0 不能证明没有扣款。请先查询用量并核对结果,再考虑重试。
Google 登录会连接我的钱包吗?
不会。Google 登录管理网站账户、积分和 API 密钥。钱包登录是独立且明确的流程,仅可用于已支持的接口和你有权使用的账户。
继续探索。
- 仅沙箱
Nagad Uddokta
孟加拉国代理钱包
Nagad Uddokta 代理/分销商钱包(孟加拉国)—— PIN + 短信 OTP 登录(含可选的 *167# 换设备步骤)、余额、交易历史与详情、账户/手续费查询、代理 Cash-In,以及沿分销树上下的 B2B 转账。
12 个端点 · 免费沙箱
查看 API - 仅沙箱
EasyPaisa (Phoenix)
巴基斯坦手机钱包
Telenor EasyPaisa(巴基斯坦)—— OTP 登录、资料、余额、交易与转账。
6 个端点 · 免费沙箱
查看 API - 仅沙箱
ACB ONE
越南零售银行
亚洲商业银行(越南)—— 用户名/密码登录、资料、余额与交易。
5 个端点 · 免费沙箱
查看 API