Generate Url (PPI)
Generate Url (PPI).
Agent Onboarding APIs
Generate Url
API | Description |
---|---|
Generate Url | Use this API to Generate Url |
then auto submit in form
Generate Url (PPI)
Postman Collection
URL
POST : /v1/service/dmt/generate/urlHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
outletId (String) Required
outlet id unique Code(You will get outletId from agent onboarding API) (Max Length: 20)
outlet id unique Code(You will get outletId from agent onboarding API) (Max Length: 20)
mobile (String) Required
Agent mobile (Max Length: 10)
Agent mobile (Max Length: 10)
clientRefId (String) Required
Merchant Unique Reference Number (Max Length: 30)
Merchant Unique Reference Number (Max Length: 30)
redirectUrl (String) Required
redirect url (Max Length: 200)
redirect url (Max Length: 200)
Request
Example Request
curl --location '/v1/service/dmt/generate/url' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"outletId": "OAGNXXXXXX",
"mobile": "6393XXXXXX",
"clientRefId": "REF639XXXXXXXXX",
"redirectUrl" : "https://xxxxxx.in/con/dmt/callback"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Url Generate Successfully.",
"status": "SUCCESS",
"data": {
"url": "https://uat.xxxxx.in/xxxxxx/",
"encdata": "xxxxxxxhG8flgViU62mlArWUW1MmmBWUiZg2sdlk6CCkBkegIcQCP9ah7RV/MFNXD395qPpWVh9UWKym0Hun0lysgdEwt0dsEjPnWnPT27RHFhcDXEhRFd9bMOCubwbMDqnN0DMouykFAH+GYnLf2ze4jiqoJYQy8VU6ggaRlEdJ1Fs+2OvhenF4W2NyDVean7RkVjO8U8GyjefPjNjFH1C9lZGJK/Nj1NLRP0uRVWwArTi20KYxbNoAIMXVLatRbklQwYIRXOLaPZOBj87DliFCBnZSWfpBLtoMoC1rZHjmUu9xnD/w=="
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "The Reference Number field is required.\n"
}
HTML
Example HTML
<form id="retForm" action="{{url}}" method="POST">
<input type="hidden" name="encdata" value="{{encdata}}">
<button type="submit">Submit</button>
</form>
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 |