https://api.tagpay.ng/v1
Register a merchant account
Send a Response
POST request to /merchant with your business and personal details. The API creates your merchant account and sends a verification code to your email and phone number.businessType must be one of FINANCIAL-SERVICES or INFORMATION-TECHNOLOGY. Set sendEmail: true to receive the verification code by email; set it to false and the code is returned directly in the response body (useful for testing).Verify your account
Check your email or SMS for the 6-digit verification code. Send it to Response
PUT /merchant/verify to activate your account. This also provisions your sandbox wallet and generates your API keys.Log in to get an access token
Call Response headersResponse bodySave the
POST /auth/login with your Base64-encoded email and password. The API returns your user and merchant data in the response body. Your access token is returned in the X-Access-Token response header, and your refresh token is in X-Refresh-Token.The login endpoint requires email and password to be Base64-encoded before sending. In Node.js:
Buffer.from("[email protected]").toString("base64"). In bash: echo -n "[email protected]" | base64.X-Access-Token value. You will include it as Authorization: Bearer <token> on every subsequent request.Create a customer wallet
Call Response
POST /wallet to provision a wallet for one of your customers. The API verifies the customer’s identity using BVN or NIN before creating the wallet.You must provide either
bvn or nin (or both). The wallet’s status and tier are set automatically based on the verification result. A wallet with a verified BVN or NIN is created as ACTIVE; otherwise it is FROZEN until verified.Check the merchant wallet balance
Call ResponseIn sandbox mode, fund your merchant wallet using
GET /merchant/wallet to retrieve your merchant wallet balance. This is the wallet that holds your operating funds and is charged when you create customer wallets.POST /merchant/fund-wallet with { "amount": 50000 } to simulate receiving funds without a real bank transfer.What’s next
Now that you have created a wallet, explore what else you can do:Authentication
Understand token expiry, refresh flow, and access keys
Wallet management
Credit, debit, transfer, and close customer wallets
Webhooks
Receive real-time events for every transaction
API reference
Browse the full endpoint reference
