Skip to main content

Generate Url (PPI)

Generate Url (PPI).

Agent Onboarding APIs

Generate Url
APIDescription
Generate UrlUse this API to Generate Url

then auto submit in form

Generate Url (PPI)

Postman Collection

URL

POST : /v1/service/dmt/generate/url

Headers

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

Body Params

outletId  (String)   Required
outlet id unique Code(You will get outletId from agent onboarding API) (Max Length: 20)
mobile  (String)   Required
Agent mobile (Max Length: 10)
clientRefId  (String)   Required
Merchant Unique Reference Number (Max Length: 30)
redirectUrl  (String)   Required
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

       {
"code": "0x0200",
"message": "Url Generate Successfully.",
"status": "SUCCESS",
"data": {
"url": "https://uat.xxxxx.in/xxxxxx/",
"encdata": "xxxxxxxhG8flgViU62mlArWUW1MmmBWUiZg2sdlk6CCkBkegIcQCP9ah7RV/MFNXD395qPpWVh9UWKym0Hun0lysgdEwt0dsEjPnWnPT27RHFhcDXEhRFd9bMOCubwbMDqnN0DMouykFAH+GYnLf2ze4jiqoJYQy8VU6ggaRlEdJ1Fs+2OvhenF4W2NyDVean7RkVjO8U8GyjefPjNjFH1C9lZGJK/Nj1NLRP0uRVWwArTi20KYxbNoAIMXVLatRbklQwYIRXOLaPZOBj87DliFCBnZSWfpBLtoMoC1rZHjmUu9xnD/w=="
}
}

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 CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x0207REVERSEDTRANSACTION REVERSED
0x0209REDIRECTREDIRECT URL