Quickstart Guide
Accept your first payment in 5 minutes
Follow this 3-step integration flow to initiate a collection and verify its authoritative status.
1
Authenticate with API Keys
Send your secret key in the Authorization: Bearer akp_test_... header. Never expose secret keys in client-side code.
2
Always Include an Idempotency-Key
Pass a unique string in the Idempotency-Key header for every payment mutation to prevent duplicate charges during network retries.
3
Verify Authoritative Status
Before fulfilling orders or value, either listen for the payment.succeeded webhook or make an explicit verification call to /v1/payments/:id/verify.
Double-entry ledger reconciliation guaranteed on all succeeded payments.
Sample Request
Create Payment (cURL)
bash
curl -X POST https://pay-api.akilidex.com/v1/payments \
-H "Authorization: Bearer akp_test_04a8b9f12d..." \
-H "Idempotency-Key: ik_checkout_982310" \
-H "Content-Type: application/json" \
-d '{
"amountMinor": 5000,
"currency": "GHS",
"paymentMethod": "mobile_money",
"merchantReference": "ORDER-98214",
"description": "Premium Subscription"
}'Charges GH₵ 50.00 via MTN MoMo in the sandbox environment.
Continue learning