Enkash Developer Portal
Home
Home
Login
  1. Rewards & Incentives
  • Explore Our Product Suite
  • Payment Gateway
    • Set Up Payment Gateway
    • Payment Options
    • Easy API Setup
    • Payment Gateway APIs
  • Payouts
    • Set Up Payouts
    • Payout APIs
  • Prepaid Cards
    • Key Capabilities
    • Set Up Prepaid Cards
    • Prepaid Card APIs
  • Wallet
    • Wallet APIs
  • Bharat Connect (BBPS)
    • Vendor Payment
    • Bill Payment
  • Accounts Payable
    • Accounts Payable APIs
  • Account Receivable
    • Accounts Receivable Overview
    • Account Receivable APIs
  • Expense Management
    • Expense Management Overview
    • About Authorization
    • Expense APIs
  • Rewards & Incentives
    • About Rewards
    • Getting Started
    • Encryption & Decryption Guide
    • Reward Allocation
    • Incentive Allocation
    • Reward APIs
  • Verification Suite
    • Verification Suite Overview
    • Verification Suite APIs
  1. Rewards & Incentives

Integration flow, Core APIs and SSO Setup

Enable seamless reward disbursals using EnKash’s APIs. This page covers the integration flow, core APIs, and SSO setup to help you launch quickly and securely.

Integration Flow#

Rewards Flow

Steps Involved#

1
Obtain Access Token
Authenticate via the Client Authentication API to receive your access_token.
2
Set Headers & Token
For each API request, use the Authorization header with the access token.
3
Get Reward Account Details
Use Get Reward Account Details to fetch balance and account info.
4
Create or Allocate Rewards
Call Create and Allocate Points to fund the user’s reward card.

Security Notes#

Encrypted Requests are mandatory using the AES encryption logic.
Success Indicators
HTTP Statusresponse_codeMeaningAction
200 OK0SuccessProceed with response payload
200 OK1FailureCheck response_message for details
Example
{
  "response_code": 1,
  "response_message": "Insufficient balance in card account",
  "payload": "Insufficient balance in card account"
}
otbBalance field shows the current reward card balance available for redemption.

Core APIs#

APIDescription
Get Card Account DetailsFetch balance and user-specific card account info.
Create & Allocate PointsCreate or reallocate reward cards and assign points.
SSO LoginGenerate one-click login token for reward access.
Get Transaction DetailsView transaction history and status.
Search Enkash CardLook up specific user card details.
Bulk Create & Allocate PointsCreate and fund multiple cards in one go.

SSO Integration#

For Employee
1
Get Access Token Via SSO Login APIs
here
2
Embed this redirect URL on your portal
https://invoice-uat.enkash.in/sso/{access_token}/employee_rewards/{partner}
PlaceholderDescription
{access_token}Token obtained from the SSO API
{partner}Your partner identifier (e.g., hrms)
Example
   `https://invoice-uat.enkash.in/sso/aF5V6hPScEd9mCowJmbZFKk5Xg/employee_rewards/hrms`
For HR Admin
https://invoice-uat.enkash.in/sso/{access_token}/reward_account/{partner}
In production, replace invoice-uat.enkash.in with home.enkash.com

Common Fields Passed#

ParameterDescription
companyIdUnique EnKash Company ID provided to the client after onboarding.
cardAccountIdUnique EnKash Reward Account ID assigned to the client post onboarding.
partnerIdUnique Partner ID issued to the client during the onboarding process.
enkashCardIdSystem-generated unique ID for each EnKash card.
enkashCardTransactionIdUnique ID associated with each transaction made using an EnKash card.

HTTP Response Codes#

CodeMessageDescription
200SuccessAPI executed successfully
400Bad RequestInvalid/missing parameters
422Unprocessable EntityInvalid data or failed validation
404Not FoundEntity not found in the system
500Server ErrorInternal error on EnKash servers
Modified at 2025-05-24 10:13:31
Previous
About Rewards
Next
Encryption & Decryption Guide
Built with