Authentication

PelPay integrations has been simplified and made seamless. It is as simple as copying our sample codes and changing the required parameters to suit your needs.

The first step is to initiate a login with the Login endpoint. A token will be generated at a successful response.

LOGIN

POST https://api.pelpay.ng/api/Account/login

The token generated will be used to make any other request to the gateway.

Bearer {Token}

Request Body

Name
Type
Description

clientId*

String

Required client Id

clientSecret*

String

Required client secret key

200: OK Token GeneratedCopy

Response:  
{
   "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Request Body:

{
    "clientId": "Nai0000319",
    "clientSecret": "c33c1b0c-6160-4b18-a856-0c359006a75f"
}

Response Body:

Response:  
{
    "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

For every request to Pelpay, the token is passed on the header as bearer , eg

var config = { headers: { Authorization: Bearer{access_token} } }

Last updated