Enkash Developer Portal
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
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

Set Card PIN

POST
/api/v0/partner/enKashCard/setPin
📌
This API allows users to securely set or update the PIN for their card. It ensures proper authentication and authorization before allowing PIN changes, enhancing card security and user control

Request

Header Params
authorization
string 
required
Provide your bearer token in the Authorization header when making requests to protected resources.
Example:
Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
partnerId
string 
required
PartnerID shared during sign-up
Example:
CRXXXXXXX
Body Params application/json
companyId
string 
required
Unique Enkash Company Id
cardAccountId
string 
required
Unique Card Account ID
enKashCardId
string 
required
Unique Enkash Card ID
pinBlock
string 
required
Pin to be set
otpRequired
boolean 
required
to be passed as false if OTP is not required
Example
{
  "companyId": "CEKEP5GSGP",
  "cardAccountId": "CAA8W45",
  "enKashCardId": "EKC94AEX89",
  "pinBlock": 9078
}

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/setPin' \
--header 'authorization: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379' \
--header 'partnerId:  CRXXXXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
  "companyId": "CEKEP5GSGP",
  "cardAccountId": "CAA8W45",
  "enKashCardId": "EKC94AEX89",
  "pinBlock": 9078
}'

Responses

🟢200OK
application/json
Body
code
integer 
required
message
string 
required
payload
string 
required
Example
{
  "code": 0,
  "message": "Success",
  "payload": "Success"
}
Modified at 2025-05-26 17:22:34
Previous
Create Prepaid Card
Next
Load Card Balance
Built with