Get Customer API
This is a Server-to-Server API which returns the customer object for the given identifier. It will give all customer related information associated with the customerId which is passed in the request at Juspay’s end.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:-
Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Merchant ID provided by Juspay
Example:-
merchant-id
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
This is same as id which you got in the create customer API response.
Example:- cst_om2l6ctlptxwxuzj
false : if doing Express Checkout API Integration
true : if doing Express Checkout SDK Integration
It is used to get the client auth token which is required for authentication during Express Checkout SDK integration.
Token expiry time is 15 minutes.
It is the unique identifier of the customer object in Juspay system. It is the ID with which merchant refers to a customer object.
This is same as the object_reference_id using which was used while creating a customer in Juspay System.
Value: customer
The customer’s mobile number
Example:- 9988998899
The customer's mobile country code
Example:- 91
The customer's last name
The customer's first name
The customer's e-mail address
Example:- customer@gmail.com
UTC timestamp when the customer object was created in Juspay system
Example:- 2020-03-17T14:29:17Z
UTC timestamp when the customer object was last updated at
Example:- 2020-03-17T14:29:17Z
This object will be returned only if options.get_client_auth_token was true in the request
The Client Auth Token is used to authenticate requests in Express Checkout SDK Integration
Example:- tkn_8649cd66d30c47728b8dd2fb6279a4cc
UTC timestamp when the client auth token will expire at. The default expiry is 15 minutes
Example:- 2020-03-17T14:45:26Z
Gives the status of the API call.
Example:-
Bad Request
Details of keys missing
Further Details of keys missing
Gives the status of the API call.
Example:-
invalid_request_error
Details of keys missing
Example:-
object_not_found
Further Details of keys missing
Example:-
Cannot find what you are looking for

