Create Session

Create Session API creates a Face Liveness session and returns a unique SessionId and accessToken.

Header Parameters

NameTypeDescriptionMandatory (M) , Optional (O)Provided by INSTANTPAY (Y/N)
X-Ipay-Auth-CodeStringAuth Code -1 (Fixed)MY
X-Ipay-Client-IdStringUnique Client IDMY
X-Ipay-Client-SecretStringUnique secret keyMY
X-Ipay-Endpoint-IpStringEnd Customer IP AddressMN

Request Parameters

NameTypeMandatory (M) , Optional (O)Description
latitudeStringMCurrent location Latitude
longitudeStringMCurrent location Longitude
externalRefStringMYour Unique Transaction Id

Sample Request

curl --location 'https://api.instantpay.in/identity/faceLiveness/createSession' \
--header 'X-Ipay-Auth-Code: 1' \
--header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=' \
--header 'X-Ipay-Client-Secret: 82e4755d7c1cf636816addfe1460936d7b64612208df87f3000aa5b56fc926d1' \
--header 'X-Ipay-Endpoint-Ip: 49.111.0.1' \
--header 'Content-Type: application/json' \
--data '{
    "latitude": "-33.2442",
    "longitude": "-106.3922",
    "externalRef": "1720521988"
}'
POST /identity/faceLiveness/createSession HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: 1
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=
X-Ipay-Client-Secret: 82e4755d7c1cf636816addfe1460936d7b64612208df87f3000aa5b56fc926d1
X-Ipay-Endpoint-Ip: 49.111.0.1
Content-Type: application/json
Content-Length: 93

{
    "latitude": "-33.2442",
    "longitude": "-106.3922",
    "externalRef": "1720521988"
}

Response Parameters

NameTypeDescription
statuscodeStringInstantPay Status Code
actcodeStringAction Code
statusStringStatus message
dataArrayResponse Data (If Present)
timestampStringCurrent time (YYYY-MM-DD HH:II:SS)
ipay_uuidStringRequest reference number
orderidStringTransaction Id ( If transaction otherwise it is null )
environmentStringLive/Sandbox

📘

Note :

1- externalRef must be unique and in alpha numeric characters.

Sample Response

{
    "statuscode":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ic0s4TDJvMzYveGJMMDJTaXYzSTV5SlNJST0jI1BodTVJT3FBNlErSlgraGVnZkIvVjg3cUJ0QUxtTG5RMXpGYm1TUDEjIzVLNkhMTEFHVE9WU09KTVpBSVNB",
        "poolReferenceId": "1240709150158FAKAV",
        "pool": {
            "openingBal": "13.97",
            "mode": "DR",
            "amount": "0.00",
            "closingBal": "13.97"
        }
    },
    "timestamp": "2024-07-09 15:01:58",
    "ipay_uuid": "h0009c7aeb8d-3b0f-4c91-af8f-b59b2b9c8f58-xdPdjB2KKBtl",
    "orderid": "1240709150158FAKAV",
    "environment": "LIVE"
}
Language
Click Try It! to start a request and see the response here!