Skip to main content
The Moflay API gives you direct access to payment, customer, and transaction workflows over HTTPS.

Base URL

https://api.moflay.com/v1

Authentication

Send your API key in the Authorization header:
Authorization: Bearer mof_test_your_api_key
Use a sandbox key for sandbox data and a production key for live data.

Core API areas

  • Express payments: Create M-Pesa payment requests
  • Customers: Create, update, list, and delete customers
  • Transactions: List transactions and fetch individual records
  • Webhooks: Subscribe to payment and customer events from the dashboard

Supporting behavior

  • Cursor-based pagination for list endpoints
  • Environment-specific API keys
  • Permission-based access control
  • Standardized JSON error responses