Session API
This is a Server-to-Server API which accepts order parameters as an input to create order in the Juspay system, and returns payment links.
The parameters you need to pass might vary depending on the lender requirements. Therefore, it is always recommended to consult the Juspay team for the required parameters before generating a session.
‘Metadata’ is used to send custom params to the payment aggregators, irrespective of default parameters.
Basic Authorization should be sued for the API testing.
Once you have completed JusPay onboarding, JusPay will provide you with your Merchant ID.
Example:- application/json
A unique Order ID generated by merchant.
This Order ID will have transactions mapped to it.
This is the order amount for which the purchase is being made.
A short text explaining the purpose or details of the transaction.
The currency in which the transaction is made (e.g., INR, USD).
Unique identifier of the customer in merchant’s system.
E-mail id of the customer.
Phone number of the customer.
Customer’s date of birth in the dd-mm-yyyy format.
Customer’s first name.
Customer’s middle name.
Customer’s last name.
Following values are accepted: Male | Female | Others
Customer’s marital status: Following values are accepted: Single | Married
Customer’s Highest Educational Qualification. Following Values are accepted:
Undergraduate | Professional Degree | Graduate | Post Graduate | Ph.D | Others
Address of the customer
Address of teh customer
State of Residenec of the customer
Customer’s Pincdoe
Customer’s City
Anual Income oof the Customer
Customer’s employment type. Following values are accepted:
SALARIED | SELF_EMPLOYED
Product Name of the Merchant. Should be passed by Merchant
Tenure of the loan that is being requested
Channel Source (Example : Online)
Client ID which controls the UI Parameters of the payment page.
This is generated by Juspay
Payment Page
Example:- paymentPage
This URL specifies where the control should redirect after the completion of the payment process.
Example:- juspay.in
Policy Reference Number of the customer. This policy reference number will be passed to lenders, and same will be used for saving loan application at Juspay’s end.
This indicates whether the policy is new or being renewed.
The accepted types are NEW or RENEWAL.
Frequency or duration of the policy gets renewed.
Customer’s Policy Reference Number
Details of the insured member. This is an array and details of all insured member shall be provided.
Name of the product/course (MBA).
Tenure of Loan
Student’s full name (John Doe).
Admission type (NEW, could also be RENEWAL/TRANSFER in other cases).
Travel origin location (Bangalore).
Travel destination (Mangalore).
Start date of travel (29-Dec-2024).
End date of travel (31-Dec-2024).
Type of travel (e.g., Visa, could also be One-way, Return, etc. depending on use-case).
Travel agent’s email (xyz@gmail.com).
Travel agent’s phone number (9888888888).
Travel agent/agency name (Juspay B2C).
Associated brand name (Juspay B2C).
User Defined Parameter (UDF)
This field can be used to send any user defined parameters
The UDF parameters for orders can be seen in the JUSPAY dashboard under each order
Example:- user5349
User Defined Parameter (UDF)
This field can be used to send any user defined parameters
The UDF parameters for orders can be seen in the JUSPAY dashboard under each order
Example:- user_5349
Process SDK Call Payload. This is supposed to be passed to your frontend application to open the Hypercheckout screen.
Https link using which user can open the Hypercheckout screen and perform transaction against the order created
Order Id passed during order creation
Status of order
Example:-
NEW
Bad Request
Details of keys missing
Example:-
Mandatory fields are missing
Further Details of keys missing
error
access_denied
error
Internal server Error
error
Internal server Error

