Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Prepaid Card APIs
  • Encryption & Decryption Guide
  • Auth Token
    POST
  • Create Card Account
    POST
  • Create Gift Card
    POST
  • Create Prepaid Card
    POST
  • Set Card PIN
    POST
  • Load Card Balance
    POST
  • Get Card Account Details
    POST
  • Generate Card OTP
    POST
  • View Card Details
    POST
  • Card Usage Controls
    POST
  • Get Card Usage Limits
    POST
  • Request Card Replacement
    POST
  • Block Card
    POST
  • Order Physical Card
    POST
  • Get Card Details
    POST
  • Get Transaction Details
    POST
  • Get All Transaction details
    POST
  1. Home

Get Card Details

Developing
POST
/api/v0/partner/enKashCard/search
📌
This API retrieves details of all cards or a specific card associated with a given company companyId and card account cardAccountId The enkashCardId parameter is optional and should be provided only if details of a specific card are required
The response includes masked card details to ensure card data security

Request

Header Params
partnerId
string 
required
Example:
CRMXWB3ZM
Authorization
string 
required
Example:
Bearer SuzhOaF6K64ztA4rSmDOgl9yMlI
Content-Type
string 
required
Example:
application/json
Cookie
string 
required
Example:
JSESSIONID=526FAFE391FEC276549D84FEF5FC5BE7; JSESSIONID=B01764303CD3DEFC3C0699B3EF351505
Body Params application/json
cardAccountId
string 
required
Card Account Id
companyId
string 
required
Company Id
enKashCardId
string 
optional
Enkash Card Unique identifier Id
Example
{
    "cardAccountId": "CAQL8YCV3",
    "companyId" : "CEK1PU9AOO",
    "enKashCardId": "EKC9MKS5RM"
}

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 '/api/v0/partner/enKashCard/search' \
--header 'partnerId: CRMXWB3ZM' \
--header 'Authorization: Bearer SuzhOaF6K64ztA4rSmDOgl9yMlI' \
--header 'Cookie: JSESSIONID=526FAFE391FEC276549D84FEF5FC5BE7; JSESSIONID=B01764303CD3DEFC3C0699B3EF351505' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cardAccountId": "CAQL8YCV3",
    "companyId" : "CEK1PU9AOO",
    "enKashCardId": "EKC9MKS5RM"
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
message
string 
required
payload
object 
required
recordsCount
integer 
required
data
array [object {12}] 
required
Example
{
    "code": 0,
    "message": "Success",
    "payload": {
        "recordsCount": 1,
        "data": [
            {
                "enKashCardId": "EKC9MKS5RM",
                "userId": "EKPDC37K",
                "cardAccountId": "CAQL8YCV3",
                "expiryMonth": "",
                "expiryYear": "",
                "email": "test@hrms.com",
                "mobile": "6667778889",
                "title": "Mr",
                "firstName": "Test",
                "lastName": "Company",
                "otbBalance": 321.00,
               
                "companyId": "CEK1PU9AOO"
            }
        ]
    }
}
Modified at 2025-05-26 17:21:18
Previous
Order Physical Card
Next
Get Transaction Details
Built with