Make your first API call in minutes.
This guide takes you from sandbox keys to a completed test payment link and a webhook event.
Early access. Uses sandbox keys and simulated money only.
What you'll need
You'll need a KOPO sandbox account, your sandbox secret key from the dashboard and a way to make HTTP requests, such as curl or one of our SDKs. Never use live keys while you're testing.
Steps
Find your keys
In the dashboard, go to Developers > API keys and copy your sandbox secret key. Keep it on your server and never put it in a mobile app or browser code.
Make an authenticated request
You should see your sandbox balance in the response.
Create a payment link
POST to the payment links endpoint with an amount in kobo, a currency of NGN and your own reference. The response includes a URL you can open.
Pay the link in the sandbox
Open the URL and choose a simulated success. The link's status changes to paid.
Receive a webhook
Add a webhook URL in the dashboard. When the test payment completes, we send a payment.succeeded event to your endpoint.
Verify the signature
Check the signature header against your webhook secret before trusting the event.
Where to go from here
Now that you've completed a test payment, explore payouts and account name lookup in the API reference, set up idempotency keys for every POST request, and review our error codes so your app handles every outcome gracefully. When you're ready, request a go-live review from the dashboard.