Monedero de agente · Bangladés
bKash Agent API
Monedero de agente/comercio bKash (Bangladés) — login con OTP, saldo, transacciones recientes, búsqueda, historial paginado, extractos en PDF y transferencia Cash-In de agente a cliente.
Sandbox · Solicitud
curl -X POST 'https://www.openbankinggateway.com/api/sandbox/bkash-agent/login/request-otp' \
-H 'Content-Type: application/json' \
--data '{
"account": "01700000001",
"phoneOperator": "Grameenphone"
}'Ejemplo ilustrativo del sandbox. No se contacta al proveedor, se envían SMS, se mueven fondos ni se cobran créditos.
Referencia de la API
Conoce cada endpoint.
Los métodos, rutas y reglas provienen del mismo catálogo que usa la consola. Abre un endpoint para ver sus campos.
Autenticación del monedero
POST/login/request-otpSend the login OTP by SMS
Acceso real disponible
/login/request-otpSend the login OTP by SMS
/api/sandbox/bkash-agent/login/request-otp
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Cuerpo JSON Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
phoneOperatorObligatorio | string | Cuerpo JSON Mobile operator of the agent SIM.
|
POST/login/verify-otpVerify the OTP and issue a session token
Acceso real disponible
/login/verify-otpVerify the OTP and issue a session token
/api/sandbox/bkash-agent/login/verify-otp
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Cuerpo JSON Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
pinObligatorio | string | Cuerpo JSON Wallet PIN. Sensible · nunca en URLs
|
otpObligatorio | string | Cuerpo JSON Digits of the SMS OTP. Sensible · nunca en URLs
|
otpHashObligatorio | string | Cuerpo JSON The trailing hash string of the OTP SMS. Sensible · nunca en URLs
|
Cuenta y actividad
GET/balanceWallet balance, or a peek at a destination wallet
Acceso real disponible
/balanceWallet balance, or a peek at a destination wallet
/api/sandbox/bkash-agent/balance
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
msisdnOpcional | string | Parámetro de consulta Wallet to peek at (with serviceName=CASH_IN).
|
serviceNameOpcional | string | Parámetro de consulta TAP_FOR_BALANCE (own wallet) or CASH_IN (destination peek).
|
GET/recent-transactionsMost recent transactions with full details
Acceso real disponible
/recent-transactionsMost recent transactions with full details
/api/sandbox/bkash-agent/recent-transactions
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
pageSizeOpcional | integer | Parámetro de consulta
|
GET/transaction-searchSearch transactions by id, amount or counterparty
Acceso real disponible
/transaction-searchSearch transactions by id, amount or counterparty
/api/sandbox/bkash-agent/transaction-search
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
searchKeyObligatorio | string | Parámetro de consulta Transaction id, amount or counterparty number.
|
GET/notification-historyPaged transaction feed (pageToken cursor)
Acceso real disponible
/notification-historyPaged transaction feed (pageToken cursor)
/api/sandbox/bkash-agent/notification-history
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
pageSizeOpcional | integer | Parámetro de consulta
|
pageTokenOpcional | string | Parámetro de consulta Cursor from the previous page (omit for the first page).
|
GET/summary/dailyDaily transaction summary by type
Acceso real disponible
/summary/dailyDaily transaction summary by type
/api/sandbox/bkash-agent/summary/daily
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
GET/summary/monthlyMonthly transaction summary
Acceso real disponible
/summary/monthlyMonthly transaction summary
/api/sandbox/bkash-agent/summary/monthly
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
Extractos
GET/statement/metadataStatement types and selectable date ranges
Acceso real disponible
/statement/metadataStatement types and selectable date ranges
/api/sandbox/bkash-agent/statement/metadata
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
GET/statement/historyStatement requests and remaining quota
Acceso real disponible
/statement/historyStatement requests and remaining quota
/api/sandbox/bkash-agent/statement/history
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
pageSizeOpcional | integer | Parámetro de consulta
|
pageTokenOpcional | string | Parámetro de consulta Cursor from the previous page (omit for the first page).
|
POST/statement/downloadQueue a PDF statement (emailed to the agent)
Acceso real disponible
/statement/downloadQueue a PDF statement (emailed to the agent)
/api/sandbox/bkash-agent/statement/download
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Cuerpo JSON Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
fromDateObligatorio | date | Cuerpo JSON
|
toDateObligatorio | date | Cuerpo JSON
|
typeOpcional | string | Cuerpo JSON
|
fromDate ≤ toDate
Transferencias
GET/business-walletBusiness wallet bound to the agent (B2B target)
Acceso real disponible
/business-walletBusiness wallet bound to the agent (B2B target)
/api/sandbox/bkash-agent/business-wallet
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Parámetro de consulta Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
POST/cash-inCash-In from the agent wallet to a customer wallet
Acceso real disponible
/cash-inCash-In from the agent wallet to a customer wallet
/api/sandbox/bkash-agent/cash-in
Mueve fondos reales solo en una integración real compatible. Confirma el destino y el importe; envía una Idempotency-Key única.
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Cuerpo JSON Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
customerWalletObligatorio | string | Cuerpo JSON Customer wallet to credit.
|
amountObligatorio | decimal | Cuerpo JSON
|
pinObligatorio | string | Cuerpo JSON Wallet PIN. Sensible · nunca en URLs
|
cashInTypeOpcional | string | Cuerpo JSON
|
POST/b2b-transferB2B transfer to the bound business wallet
Acceso real disponible
/b2b-transferB2B transfer to the bound business wallet
/api/sandbox/bkash-agent/b2b-transfer
Mueve fondos reales solo en una integración real compatible. Confirma el destino y el importe; envía una Idempotency-Key única.
| Parámetro | Tipo | Reglas y envío |
|---|---|---|
accountObligatorio | string | Cuerpo JSON Agent wallet number (11 digits). Usa un monedero autorizado. En modo real, su identidad debe vincularse a tu cuenta del sitio mediante el acceso al monedero.
|
tokenObligatorio | string | Enviar en X-OBG-Token Session token from the login step. Prefer the X-OBG-Token header so it stays out of URLs. Sensible · nunca en URLs
|
amountObligatorio | decimal | Cuerpo JSON
|
pinObligatorio | string | Cuerpo JSON Wallet PIN. Sensible · nunca en URLs
|
businessWalletOpcional | string | Cuerpo JSON Target business wallet. Omit it to use the wallet bound to the agent.
|
Los identificadores y las descripciones específicas del proveedor se mantienen en inglés para coincidir con el contrato.
Probar en sandbox
Una solicitud que puedes examinar.
La consola empieza en sandbox. Usa solo los datos de prueba. Cambiar a Real modifica el destino y puede usar cuentas y fondos reales.
Sandbox
Separa las pruebas, el acceso a cuentas y la facturación.
De la primera solicitud a la conexión real.
Explora sin iniciar sesión
Elige una API y usa sus datos de prueba. Las respuestas simuladas no mueven dinero ni contactan con un banco.
Crea tu cuenta de la plataforma
Accede con Google, recibe 1.000 créditos y crea una clave API. Esto inicia sesión en el sitio, no en un monedero.
Conecta cuando estés listo
En las APIs con acceso real, completa el acceso al monedero por separado. Cada solicitud real exitosa cuesta un crédito; los fallos, ninguno.
Empieza poco. Coste claro.
10 USD compran 10.000 créditos. Una solicitud real exitosa usa uno; los fallos y el sandbox no consumen créditos. Comprar créditos no habilita integraciones solo sandbox.
Guía de integración
Llévalo a tu código.
Los ejemplos de sandbox usan datos públicos. Los ejemplos reales usan marcadores: guarda las credenciales en tu servidor, nunca en el repositorio.
Sandbox
curl -X POST 'https://www.openbankinggateway.com/api/sandbox/bkash-agent/login/request-otp' \
-H 'Content-Type: application/json' \
--data '{
"account": "01700000001",
"phoneOperator": "Grameenphone"
}'Acceso real disponible
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"Las sesiones reales de bKash se vinculan a tu cuenta del sitio tras acceder al monedero. Otro usuario no puede apropiarse de ese vínculo. Guarda el token de forma segura y vuelve a autenticarte al caducar.
Límites claros antes de la primera solicitud.
Lo que conviene saber.
¿El sandbox usa cuentas reales?
No. Usa respuestas simuladas y credenciales públicas de prueba. No contacta proveedores financieros, envía códigos OTP ni mueve fondos.
¿Todas las APIs permiten solicitudes reales?
No. Solo las integraciones marcadas con acceso real tienen un proveedor conectado. Las demás son solo sandbox y devuelven LIVE_ACCESS_NOT_ENABLED en modo real. Contáctanos para consultar el acceso.
¿Cuándo se cobra un crédito?
Se cobra un crédito por llamada real exitosa. Los fallos y el sandbox son gratuitos. Consulta X-Credits-Charged, no solo el estado HTTP. Si aparece X-OBG-Settlement: unknown, el cobro no está resuelto: X-Credits-Charged: 0 no demuestra que no se haya descontado un crédito. Consulta el historial de uso y concilia antes de reintentar.
¿Acceder con Google conecta mi monedero?
No. Google gestiona tu cuenta del sitio, créditos y claves API. El acceso al monedero es un flujo separado para una integración compatible y una cuenta que tengas autorización para usar.
Sigue explorando.
- Solo sandbox
Nagad Uddokta
BangladésMonedero de agente
Monedero de agente/distribuidor Nagad Uddokta (Bangladés) — login con PIN + OTP por SMS con un paso opcional de cambio de dispositivo *167#, saldo, historial y detalle de transacciones, consultas de cuenta/comisión, Cash-In de agente y transferencias B2B hacia arriba y abajo del árbol de distribución.
12 endpoints · Sandbox gratuito
Explorar API - Solo sandbox
EasyPaisa (Phoenix)
PakistánMonedero móvil
Telenor EasyPaisa Pakistán — login con OTP, perfil, saldo, transacciones y transferencias.
6 endpoints · Sandbox gratuito
Explorar API - Solo sandbox
ACB ONE
VietnamBanca minorista
Asia Commercial Bank (Vietnam) — login con usuario/contraseña, perfil, saldo y transacciones.
5 endpoints · Sandbox gratuito
Explorar API