Create Customer account
This is a Server-to-Server API that takes bank account details/UPI parameters as an input and creates an customer account ID in the Juspay system against the provided customer ID.
Merchants can create multiple customer accounts (both Bank Account and UPI) simultaneously. An array of UPI and bank accounts can be provided as input, and individual customer account IDs will be created for each account details.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
application/x-www-form-urlencoded
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.
This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.
Example:- customer_1122
Customer Id
Example:- cst_wexxxxsfdkl
Juspay bank code ID defining the bank.
Bank account details
Bank account details
IFSC code for a bank branch.
Example:- AABF0008032
Bank account number
Example:- 026291800001191
Name of the customer in a given bank account.
Example:- test
UPI details
Customer VPA details
Example:- 9164326296@upi
Gateway id of the underlying provider to be used for bank account validation.
Reference Id to a specific gateway which is used for validation
Example:- customer_account
ID created at Juspay’s end for the Customer’s bank account details
Example:- banh_kGvx5TGUmkRVC2dH
Customer ID
Example:- cst_zqqmw0v4exbhvv2l
Creation date of the custmer account ID
Example:- 2023-06-06T13:28:20Z
Account details with which customer account ID created
Bank account number
Example:- 026291800001191
Beneficiary name
Example:- test
IFSC Code
Example:- AABF0008032
Bank code
Example:- 12
Beneficiary account bank name
Example:- SBI
Penny drop amount
Example:- 1
Currency of the Validation amount
Example:- INR
Status of the validation.
Possible values:CREATED - Customer account has been created, validation has not yet been completed
Example:- CREATED
Recent modified date of the customer account ID
Example:- 2023-06-06T13:28:20Z
Status of the get customer api response
Example:- Response: error
error code information
Example:- Sample response: access_denied
Detailed information of the error
User error message
Example:- Response: Unauthorized.
Provides accurate details on the error message
Example:- Sample Response: Invalid API Key. Please pass a valid and active api key.
Denotes the category of the error
Example:- Sample Response: USER_ERROR
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

