API Reference
Complete Notch Pay API Documentation This reference provides detailed information about all endpoints, request parameters, and response formats for the Notch Pay API.
Overview
Features
Getting Started
The Notch Pay API is organized around REST principles. It uses standard HTTP verbs, returns JSON-encoded responses, and uses standard HTTP response codes to indicate API errors.
Our API is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which can be understood by off-the-shelf HTTP clients.
RESTful Design
Predictable resource-oriented URLs
JSON Responses
All responses are in JSON format
Comprehensive Error Handling
Detailed error messages and codes
Webhooks Support
Real-time event notifications
Get Your API Keys
Find your API keys in your dashboard under Settings > API Keys
Getting Started
Base URL All API requests should be made to:
API Environments
Test Environment
Live Environment
Development & Testing Use test API keys that start with test_
Test transactions don’t affect real money and are only visible in test mode.
Production Use live API keys that start with live_
Live transactions involve real money and appear in your Notch Pay dashboard.
Only use live keys when your integration is thoroughly tested and ready for production.
Success Response
Error Response
{
"code" : 200 ,
"status" : "OK" ,
"message" : "Descriptive message" ,
"data" : {
"id" : "pay_123456789" ,
"amount" : 5000 ,
"currency" : "XAF" ,
"status" : "complete"
}
}
HTTP Status Codes
The request was completed
A new resource was created
The request has been accepted for processing
The request was invalid or cannot be served
Authentication credentials are missing or invalid
The authenticated user doesn’t have permission
The requested resource doesn’t exist
The request was well-formed but contains semantic errors
An error occurred on the server
The server is temporarily unavailable
Rate Limiting
The Notch Pay API implements rate limiting to protect against abuse. If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.
Rate Limit Headers
Each response includes headers that provide information about your current rate limit status: X-RateLimit-Limit: 100
X-RateLimit-Remaining: 98
X-RateLimit-Reset: 1620000000
Handling Rate Limits
When you receive a 429 response, the Retry-After header indicates how many seconds to wait before making another request. Implement exponential backoff in your code to handle rate limiting gracefully.
API Resources
Payments Create, retrieve, and manage payments
Transfers Send money to beneficiaries
Customers Create and manage customer information
Beneficiaries Manage recipients for money transfers
Webhooks Configure and manage webhook endpoints
Balance Check your account balance
Resources Get information about payment channels, countries, and currencies
Authentication Learn about authentication methods and security
API Versioning
The current version of the API does not require a version specifier in the URL. Future versions may be accessed by including a version number in the URL or headers.
SDKs and Libraries
JavaScript Node.js and browser SDK
PHP PHP SDK for server-side integration
Python Python SDK for server-side integration
Mobile iOS and Android SDKs
Need Help?
API Errors Troubleshoot common API errors
Support Team Contact our technical support team
Developer Community Connect with other developers