Developer Resources
Integrate LindaPay's powerful escrow and payment services into your applications.
Getting Started with LindaPay API
Learn how to integrate LindaPay into your applications
- Sign up for a LindaPay developer account
- Obtain your API keys from the developer dashboard
- Explore our API documentation and SDKs
- Test your integration in our sandbox environment
- Go live with your integration
Code Samples
Python Example
Creating a transaction using the LindaPay API
import requests
api_key = "your_api_key_here"
base_url = "https://api.lindapay.co.ke/v1"
def create_transaction(amount, currency, buyer_id, seller_id):
endpoint = f"{base_url}/transactions"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
payload = {
"amount": amount,
"currency": currency,
"buyer_id": buyer_id,
"seller_id": seller_id
}
response = requests.post(endpoint, json=payload, headers=headers)
return response.json()
# Example usage
transaction = create_transaction(1000, "KES", "buyer123", "seller456")
print(transaction)
API Playground
Submit Test Request
Simulate a request and view sample response
{
"transaction_id": "txn_123456",
"status": "pending",
"amount": 1000,
"currency": "KES",
"buyer_id": "buyer123",
"seller_id": "seller456"
}
Ready to start integrating?