You can obtain API keys by logging into the Pegke Loyalty Dashboard and navigating to api-settings page. You will be provided with Consumer Code
and Consumer Secret
. With these details you can format by combining Consumer Code
and Consumer Secret
with a dot.
We will be using CONSUMERCODE
for Consumer Code
and CONSUMERSECRET
for Consumer Secret
throughout this document and APIBASE
for API Base URL
Format your Authorization
header
Authorization: Bearer CONSUMERCODE.CONSUMERSECRET
All the API calls should me made to https://dashboard.pegke.com/apiv1/
and the end actual end point to get the request.
URL: give_points
METHOD: POST
Description: Give points to the customer by the vendor if mobile number exists.
Parameters | Type | Description |
---|---|---|
phone | string | This is the mobile number of the existing customer |
points | number | Points to the customer by the vendor |
Description: Returns the points of a customer with a specific vendor
URL: check_points
METHOD: GET
Parameters | Type | Description |
---|---|---|
phone | number | This is the mobile number of the existing customer |
Description: : Tracks points history and returns along with the basic details of the customer
URL: check_history
METHOD: POST
Parameters | Type | Description |
---|---|---|
phone | number | This is the mobile number of the existing customer |
page | number | Pagination variable |
Description: Get offers and redeemable items of a particular vendor.
URL: my_offers
METHOD: GET