Skip to content
NEWCollect for MSMEs: UPI Autopay, eNACH & remindersExplore app ↗

Get Access Token

Generate a short-lived access token for a registered user so your application can redirect them into Jodo-hosted flows.

GET /api/v1/integrations/erp/users/:registration_id/access_token
Terminal window
curl -X GET 'https://[base_url]/api/v1/integrations/erp/users/:registration_id/access_token' \
--header 'Authorization: Basic <token>' \
--header 'Content-Type: application/json'
{
"status": "success",
"data": {
"access_token": "SGFwcGkgY29kaW5nISBeX14=",
"expires_at": "2022-02-29T10:05:45Z"
}
}
FieldTypeDescription
data.access_tokenstringAccess token used for Jodo redirect.
data.expires_atdatetimeExpiry time for the token.

Use the access token in the Jodo login redirect URL:

https://[base_url]/consumer/login-redirect?access_token=<access_token>

Optional query parameters:

Query ParameterDescription
access_tokenRequired access token.
jodo_student_idJodo student ID to open a student-specific flow.
product_typeProduct to open. Possible values: flex, pay, cred. Requires jodo_student_id.
callback_urlURL where the user should return after checkout.
create_applicationSet to true to create a new loan application when applicable.
  • User not found.