staging
and production
are as follows:
Environment | Base Url |
---|---|
Staging | https://api.staging.pipevest.com/v1 |
Production | https://api.pipevest.com/v1 |
Only the authentication endpoints
leverage these urls directly. The rest of the endpoints require the USSD base
url.
USSD Base Url
After authenticating and receiving an access token, requests to the USSD api can be made at the given urls:Environment | Base Url |
---|---|
Staging | https://api.staging.pipevest.com/v1/ussd |
Production | https://api.pipevest.com/v1/ussd |
Using Authenticated Endpoints
All API endpoints are authenticated using OAuth 2.0 standards. AclientId
and clientSecret
must be exchanged for a shortlived access token. This access token is then used to authenticate further requests.
1
Access Token Request
2
Authenticate Requests with Token
The access token is passed into the authorization header as a bearer token