Init
Init
Postman Collection
URL
POST : /v1/service/pan/initHeaders
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)
psaId (String) Required
Merchant psaId (Max Length: 20)
Merchant psaId (Max Length: 20)
redirectUrl (String) Required
Client's callback redirectUrl (Max Length: 100)
Client's callback redirectUrl (Max Length: 100)
Request
Example Request
curl --location '/v1/service/pan/init' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"mobile" : "639XXXX38",
"psaId" : "PS00XXX",
"redirectUrl" : "https://business.ipayments.org.in/api/callbacks/pan/paysprint"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Encdata Successfully Generated",
"status": "SUCCESS",
"data": {
"psaId": "PSA_639XXXX38",
"encdata": "9boguC7vAwsuPLbu4IGNro9cwgVVWT/JaKoP7B+R2JTE3ABO4f0zJD9k72MmCfy7ehUq95JtrBtNrBcLHqw0WhD0+JeAns/ozIPtedian5fadn40GmeBzG0JZlnB8V97",
"url": "https://paysprint.in/service-api/pan-redirect"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "3: Pan service is disabled."
}
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 |