Add Agent
Add Agent
Postman Collection
URL
POST : /v1/service/pan/agentHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
mobile (String) Required
Merchant Mobile Number (Max Length: 10)
Merchant Mobile Number (Max Length: 10)
firstName (String) Required
Merchant First Name (Max Length: 20)
Merchant First Name (Max Length: 20)
middleName (String) Required
Merchant Middle Name (Max Length: 20)
Merchant Middle Name (Max Length: 20)
lastName (String) Required
Merchant Last Name (Max Length: 20)
Merchant Last Name (Max Length: 20)
dob (String) Required
Merchant Date of Birth (Max Length: 10)
Merchant Date of Birth (Max Length: 10)
address (String) Required
Merchant Address (Max Length: 40)
Merchant Address (Max Length: 40)
email (String) Required
Merchant Email Id (Max Length: 40)
Merchant Email Id (Max Length: 40)
pinCode (String) Required
Merchant Pin Code (Max Length: 6)
Merchant Pin Code (Max Length: 6)
gender (String) Required
Merchant Gneder (Max Length: 12)
Merchant Gneder (Max Length: 12)
stateId (String) Required
Merchant State Id (Max Length: 40)
Merchant State Id (Max Length: 40)
districtId (String) Required
Merchant District Id (Max Length: 40)
Merchant District Id (Max Length: 40)
pan (String) Required
Merchant Pan Card Number (Max Length: 10)
Merchant Pan Card Number (Max Length: 10)
aadhaar (String) Required
Merchant Aaadhaar Number (Max Length: 12)
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
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Agent onboarded successfully.",
"status": "SUCCESS",
"data": {
"psaId": "PSA_987XXXX221",
"email": "anXX@example.com",
"mobile": "987XXXX221"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "The Agent already registered with UTI. Your psaId: XTTL012345"
}
Response Code
Status Code | Status | Message |
---|---|---|
0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
0x0202 | FAILURE | FAILURE USER |
0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
0x0206 | PENDING | TRANSACTION PENDING |
0x0207 | REVERSED | TRANSACTION REVERSED |
0x0209 | REDIRECT | REDIRECT URL |