Basics
Authentication
The CzettaPay API uses API keys to authenticate requests. You can view and manage your API keys in the Developer Dashboard.
Keep your keys secure
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Base URL
https://api.czettapay.com/v1
Environments
CzettaPay API keys dictact the environment your requests target. There's no separate URL for testing.
Test Mode
Keys starting with sk_test_
Requests are simulated. No real transactions occur and no real money is moved.
Live Mode
Keys starting with sk_live_
Real transactions are processed and your actual wallet balance is charged.
Making Requests
Include your API key in the request header x-api-key:
Authentication Example
curl -X POST https://api.czettapay.com/v1/airtime -H "x-api-key: sk_test_..." -H "Content-Type: application/json" -d '{"phoneNumber": "08012345678"}'