GCA Pay API Documentation
Simple and secure mobile money payments in Tanzania
Get up and running with GCA Pay's payment APIs in minutes. Accept customer payments and send money instantly via Airtel Money.
🚀 Quick Start​
Core APIs​
💰 Collections API​
Accept payments from customers via mobile money
curl -X POST https://gcapay.site/api/v1/payment-service/airtel/c2b \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"phone_number": "+255683542710", "amount": "1000"}'
💸 Disbursements API​
Send money to recipients instantly
curl -X POST https://gcapay.site/api/v1/payment-service/airtel/b2c \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"phone_number": "+255683542710", "amount": "1000"}'
🔔 Webhooks​
Real-time transaction status updates
app.post('/webhooks/gcapay', (req, res) => {
const { event_type, transaction } = req.body;
if (event_type === 'collection.status_updated') {
// Handle payment status change
console.log(`Payment ${transaction.id}: ${transaction.status}`);
}
res.status(200).send('OK');
});
Currently Supporting​
🇹🇿 Tanzania - Airtel Money (TZS)
More networks and countries coming soon
Integration Steps​
- Complete Registration → - Business verification
- Get API Keys → - Sandbox & production tokens
- Start Coding → - Your first API call
Need help? Email us at [email protected]
Real-time Updates​
Receive instant notifications via webhooks when transactions complete.
Ready to Start?​
Get started with our Quick Start Guide →
Generate a new Docusaurus site using the classic template.
The classic template will automatically be added to your project after you run the command:
npm init docusaurus@latest my-website classic
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
The command also installs all necessary dependencies you need to run Docusaurus.
Start your site​
Run the development server:
cd my-website
npm run start
The cd
command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
The npm run start
command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
Open docs/intro.md
(this page) and edit some lines: the site reloads automatically and displays your changes.