Bulk Create Card / Allocate Points
DevelopingPOST
/api/v0/partner/enKashCard/bulk-create-allocate-points-jsonError messages client might expect as failure reasons in dto:-
UNPROCESSABLE_ENTITY (422): The request is semantically incorrect.
"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"
NOT_FOUND (404): The requested resource was not found.
"Card account not found for companyId: [companyId] and cardAccountId: [cardAccountId]"
Request
Enkash Company Id
Enkash Card account Id
If the flag is true, the point will be allocated to the existing user as well as the new user.
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.
Mr/Mrs/Ms
Name of the user
Email id of user
Mobile of user
Amount to be allocated to user
(OPTIONAL)
Unique Transaction Reference number of client
[
{
"title": "Mr",
"name": "John hrllo",
"email": "ojas.bisariya@kratikal.com",
"mobile": "6836111111",
"loadAmount": 100,
"remarks": "good",
"uniqueReferenceNumber": "test123457"
}
]
Request samples
Responses
Email of the user to whom points are allocated
name of user
mobile number of user
Mr / Mrs /Ms
How much amount is to be loaded to user card
ENkash Company Id
Enkash Card Account id
Enkash Card Id of the user Card
Enkash User Id
Balance left in account after allocation
Unique Transaction Id of EnKash
User Card Balance after allocation
number of successful allocations
number of failed allocations
total number of allocations
{
"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
}
}