API Reference
Complete API documentation
SDKs
Client libraries & tools
Webhooks
Real-time event notifications
Status
System uptime & performance
SDKs & Libraries
Integrate PigaPay with your favorite programming language
Popular API Endpoints
Commonly used endpoints to get you started
POST
Create Payment
/api/v1/payments
Create a new payment transaction
- Amount & currency
- Payment method
- Customer details
GET
Get Payment Status
/api/v1/payments/{id}
Retrieve payment status and details
- Transaction status
- Payment details
- Reconciliation data
POST
Create Payment Link
/api/v1/payment-links
Generate a payment link for customers
- Amount & description
- Expiry date
- Custom redirect URL
GET
List Transactions
/api/v1/transactions
List all transactions with filters
- Date range filtering
- Status filtering
- Pagination
Code Examples
Quick start examples to integrate PigaPay
// Create a new payment with PHP
require_once 'vendor/autoload.php';
$client = new PigaPay\Client('your_api_key');
$payment = $client->payments->create([
'amount' => 10000,
'currency' => 'TZS',
'method' => 'mobile_money',
'customer' => [
'name' => 'John Doe',
'phone' => '+255700000000',
'email' => 'john@example.com'
]
]);
// Check payment status
echo "Payment ID: " . $payment->id;
Ready to Build?
Get started with PigaPay's APIs and start building today.
View Full Documentation