NEDApayDevelopersConnect API · v1
Environments

Sandbox

The sandbox is for building and testing against made-up students. No real account is ever read, and no phone or NEDApay app is needed: your own server approves the link, standing in for the user.

Step by step Sandbox · test key

Everything happens between your server and ours. Four calls, all signed with the test key and secret.

Your serverCallAnswerNEDApay Connect
1. Start a linkPOST /link-requestsrequest_id, link_urlCreates a request that waits 10 minutes
2. Approve as a made-up studentPOST /sandbox/approveone-time codeRefused with a live key
3. Swap the codePOST /tokenaccess token + refresh tokenCode works once, for 60 seconds
4. ReadGET /balances, /transactions, /stocks/holdingsthe made-up student's dataAnswers from fixed sample data

Approve a request

Instead of sending a user to link_url, approve the request yourself as a made-up student, then continue from swapping the code.

POST/sandbox/approve
Request
{ "request_id": "...", "student": "amina" }
Answer · 200
{ "code": "...", "state": "...", "redirect_url": "..." }

The three students

Chosen to cover the cases your screens must handle: a busy account, a small one and an empty one.

Aamina
An active account, with a failed payment and a swap
nTZSTZS 184,500
USDC12.40
Transactions6
StocksCRDB 120, NMB 15
Jjuma
A light account
nTZSTZS 9,250
USDC0
Transactions2
Stocksnone
Nneema
Just signed up
nTZSTZS 0
USDC0
Transactionsnone
Stocksnone

The amounts never change. Transaction dates are counted back from the moment of the call, so the data always looks recent.

What is different, and what is the same

SandboxLive
KeyStarts with nc_test_Starts with nc_live_
Whose dataThree made-up studentsReal users who approved the link
Who approvesYour server, with POST /sandbox/approveThe user, inside NEDApay, with fingerprint or face
NEDApay app neededNoYes, or the NEDApay web app
VerificationNot applicableFull identity verification required to link
DataFixed sample valuesCurrent balances and history, read at the moment of the call
Ending a linkYou call DELETE /linkYou, or the user in Settings, under Linked apps
Paused accountsNeverA frozen account answers LINK_PAUSED until it is released
Risk to moneyNoneNone. Connect is read-only in both modes.
Same in bothRequest signing, one-use nonces, PKCE, the 60-second one-time code, 15-minute access tokens, single-use refresh tokens, scopes, response shapes, error codes and rate limits. A test key can never read a live link, and a live key can never use the sandbox.
Moving to live needs no code change beyond using the live key and sending users to link_url in place of calling the sandbox approval. See Going live.