Skip to main content

Add Agent

Add Agent

Postman Collection

URL

POST : /v1/service/pan/agent

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

mobile  (String)   Required
Merchant Mobile Number (Max Length: 10)
firstName  (String)   Required
Merchant First Name (Max Length: 20)
middleName  (String)   Required
Merchant Middle Name (Max Length: 20)
lastName  (String)   Required
Merchant Last Name (Max Length: 20)
dob  (String)   Required
Merchant Date of Birth (Max Length: 10)
address  (String)   Required
Merchant Address (Max Length: 40)
email  (String)   Required
Merchant Email Id (Max Length: 40)
pinCode  (String)   Required
Merchant Pin Code (Max Length: 6)
gender  (String)   Required
Merchant Gneder (Max Length: 12)
stateId  (String)   Required
Merchant State Id (Max Length: 40)
districtId  (String)   Required
Merchant District Id (Max Length: 40)
pan  (String)   Required
Merchant Pan Card Number (Max Length: 10)
aadhaar  (String)   Required
Merchant Aaadhaar Number (Max Length: 12)

Request

Example Request
    curl --location '/v1/service/pan/agent' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"mobile" : "987XXXX221",
"firstName" : "Anil",
"middleName" : "",
"lastName" : "Kumar",
"dob" : "1985-12-02",
"address" : "address",
"email" : "anil@example.com",
"pinCode" : "222XXX",
"gender" :"Male",
"stateId" : "14",
"districtId" : "123",
"pan" : "ASDXXXX1A",
"aadhaar" : "3333XXXX1111"
}'

Response Samples

    {
"code": "0x0200",
"message": "Agent onboarded successfully.",
"status": "SUCCESS",
"data": {
"psaId": "PSA_987XXXX221",
"email": "anXX@example.com",
"mobile": "987XXXX221"
}
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x0207REVERSEDTRANSACTION REVERSED
0x0209REDIRECTREDIRECT URL