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

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

Request

Example Request
    curl --location --request POST '/v1/service/pan/agent' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"firstName" : "Amit",
"middleName" : "Kumar",
"lastName" : "Gupta",
"mobile" : "9876543210",
"pinCode" : "123456",
"gender" : "M",
"email" : "example@gmail.com",
"address" : "Mumbai",
"stateId" : "34",
"dob" : "1991-01-01",
"districtId" : "657",
"pan" : "ABCDE1144Z",
"aadhaar" : "222211114444"
}'

Response Samples

{
"code": "0x0200",
"message": "000: Record fetched successfully.",
"status": "SUCCESS",
"data": {
"psaId": "XTTL012345",
"email": "example@gmail.in",
"mobile": "9876543210"
}
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x02082FATWO FACTOR AUNTHENTICATION