Online Payments Made Easy
Signup on our demo site: https://demo.campay.net
Login and register an application
Error codes reference
Error code | Description |
---|
ER101 | Invalid phone number. Ensure the number starts with the country code. e.g 237xxxxxxxxx
|
ER102 | Unsupported Carrier phone number. Currently, only MTN and Orange phone numbers are accepted for mobile money
|
ER201 | Invalid amount. Decimal numbers are NOT allowed. The Amount can be sent as integer or string
|
ER301 | Insufficient balance. Trying to withdraw an amount which is above your current balance for the specific carrier
|
Authentication
There are two methods of authenticating requests.
- Using a permanent access token that does not expire.
- Using a temporary access token that expires and you can renew it.
Method 1
Permanent access token:
You can find your permanent access token under the APP KEYS section of your app.
Copy it and use it in the Authorisation header of your request. e.g
{
Authorization: Token 69e2df238ea8d66f24018574c5de51e2b77d9abb,
Content-Type: application/json
}
Method 2
Temporary access token: