Update Card
Update nickname and name_on_card for the stored card
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
Card token obtained from /card/list API
Customer ID against which the card is stored. This is same as the object_reference_id using which was customer was created
Pass a new value, if name on card needs to be updated, alphabet and spaces allowed with length limit of 64 chars.
Pass a new value, if nickname needs to be updated, alphabet and spaces allowed with length limit of 64 chars.
c75a9fca-1121-418e-973c-47d5c4971456
Card details updated
SUCCESS
true
BAD_REQUEST
Invalid customer id
true
BAD_REQUEST
Nothing to update
true
BAD_REQUEST
Invalid card token
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

