- Explore Our Product Suite
- Payment Gateway
- Payouts
- Prepaid Cards
- About Prepaid Card
- Key Capabilities
- Getting Started
- APIs
- API Access & Authorization
- Encryption & Decryption Guide
- Auth Token
- Create Card Account
- Create Gift Card
- Create Prepaid Card
- Set Card PIN
- Load Card Balance
- Get Card Account Details
- Generate Card OTP
- View Card Details
- Card Usage Controls
- Get Card Usage Limits
- Request Card Replacement
- Block Card
- Order Physical Card
- Get Card Details
- Get Transaction Details
- Get All Transaction details
- Bharat Connect (BBPS)
- About Bharat Connect
- Invoice Payments
- Invoice
- Payment
- Financing
- Onboarding
- cdNote
- Purchase Order
- webhook-invoice
- webhook-payments
- webhook-business-onboarding
- webhook-financing
- webhook-cdNote
- Webhook Purchase Order
- Webhook Send Purchase Order Request
- Webhook Send Purchase Order Response
- Webhook Confirm Purchase Order Request
- Webhook Confirm Purchase Order Response
- Webhook Edit Purchase Order Request
- Webhook Edit Purchase Order Response
- Webhook Status Change Purchase Order Request
- Webhook Status Change Purchase Order Response
- Bill Payments
- Accounts Payable
- Account Receivable
- Expense Management
- Rewards & Incentives
- About Rewards
- Getting Started
- Encryption & Decryption Guide
- Reward Allocation
- Incentive Allocation
- APIs
- Token APIs
- Reward Allocation
- Incentive Allocation
- Redemption
- Point Management
- Verification Suite
Bulk Create And Allocate Rewards
Developing
POST
/api/v0/partner/enKashCard/bulk-create-allocate-points-json
"Company Id is required if it is an Enkash User"
"Primary Enkash card is not present. So bulk upload cannot be done"
"KYC is not uploaded or under review for the primary card. So bulk upload cannot be done"
"Bin Type is not mapped on PlanMaster"
"Card Account does not exist for this partner"
"Card account not found for companyId: [companyId] and cardAccountId: [cardAccountId]"
Request
Query Params
companyId
string
required
Example:
CEKBVCGMR1
cardAccountId
string
required
Example:
CA1ZS96
isPointsAllocation
boolean
required
If the flag is false only new users will be created and points will be allocated to new users , no points will be allocated to the existing users.
Example:
true
Header Params
partnerId
string
required
Example:
CRMTTTMUF
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
{token}
Body Params application/json
array of:
title
string
optional
name
string
required
email
string
optional
mobile
string
required
loadAmount
integer
required
remarks
string
optional
uniqueReferenceNumber
string
required
Example
[
{
"title": "Mr" ,
"name": "John hrllo",
"email": "ojas.bisariya@kratikal.com",
"mobile": "6836111111",
"loadAmount": 100,
"remarks" : "good",
"uniqueReferenceNumber" :"test123457"
}
]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/api/v0/partner/enKashCard/bulk-create-allocate-points-json?companyId=CEKBVCGMR1&cardAccountId=CA1ZS96&isPointsAllocation=true' \
--header 'partnerId: CRMTTTMUF' \
--header 'Authorization: {token}' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"title": "Mr" ,
"name": "John hrllo",
"email": "ojas.bisariya@kratikal.com",
"mobile": "6836111111",
"loadAmount": 100,
"remarks" : "good",
"uniqueReferenceNumber" :"test123457"
}
]'
Responses
🟢200Success
application/json
Body
email
string
required
name
string
required
mobile
string
required
title
string
required
loadAmount
number
required
companyId
string
required
cardAccountId
string
required
enkashCardId
string
required
userId
string
required
accountBalance
number
required
enkashCardTxnId
string
required
otbBalance
number
required
successCount
number
required
failureCount
number
required
totalCount
number
required
Example
{
"code": 0,
"message": "Success",
"payload": {
"successBulkEnKashCardCreateDTOs": [
{
"email": "johndee@email.com",
"name": "John Dee",
"mobile": "6776543210",
"title": "Mr",
"loadAmount": 10,
"companyId": "CEKCDVT1UV",
"cardAccountId": "CAF0RX8N3",
"enkashCardId": "EKCBO72AEY",
"userId": "EKHVPYVS",
"accountBalance": 48681,
"enkashCardTxnId": "ECTA72T56O2SP",
"otbBalance": 10000
}
],
"failureBulkEnKashCardCreateDTOs": [
{
"email": "taylor@email.com",
"name": "test1 testlast",
"mobile": "6876543324",
"title": "Mr",
"loadAmount": 10,
"companyId": "CEKCDVT1UV",
"cardAccountId": "CAF0RX8N3"
},
{
"email": "johndee@email.com",
"name": "John Dee",
"mobile": "6776543210",
"title": "Mr",
"loadAmount": 10,
"companyId": "CEKCDVT1UV",
"cardAccountId": "CAF0RX8N3",
"uniqueReferenceNumber": "123443101",
"failureReason": "The transaction associated with the given Unique reference Number already exists"
}
],
"successCount": 1,
"failureCount": 2,
"totalCount": 3
}
}