Save card details securely for future transactions. The card information is tokenized and stored securely.
card_token that can be used for future payments without requiring the customer to re-enter their card details.
| Parameter | Type | Description |
|---|---|---|
identifier | string | Unique identifier for the card owner (customer ID, user ID, etc.) |
card_number | string | Full card number (will be tokenized immediately) |
cardholder_name | string | Name as it appears on the card |
expiry_month | integer | Card expiry month (1-12) |
expiry_year | integer | Card expiry year (YYYY format) |
network | string | Card network (visa, mastercard, amex, discover, rupay) |
card_type | string | Type of card (credit_card, debit_card) |
nickname | string | Custom name for easy card identification |
| Parameter | Type | Description |
|---|---|---|
authorization_reference_number | string | Required for Rupay and AMEX cards only - See details below |
authorization_reference_number parameter is mandatory for specific card networks:
card_label: Display-friendly card labelcard_token: Unique token for future transactions| Status Code | Error Type | Description |
|---|---|---|
400 | Validation Error | Missing or invalid request parameters |
401 | Authentication Error | Invalid or missing credentials |
403 | Authorization Error | Insufficient permissions |
409 | Conflict Error | Card already exists or duplicate identifier |
500 | Server Error | Internal system error |
card_token securelyClient Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.
Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.
Merchant Identifier - The unique ID for the merchant account. This is required for PSP (Payment Service Provider) merchants who manage multiple merchant accounts. You can find merchant IDs in the Merchant Management section of the dashboard.
API Version - Specifies which version of the API to use (e.g., '1.X.X' or '2.X.X'). This header allows you to control which API version your integration uses. Default version information is available in the Developer Settings.
Card details to save
Unique identifier for the card owner
Card number (will be tokenized and securely stored)
Name on the card
Card expiry month (1-12)
1 <= x <= 12Card expiry year (YYYY format)
x >= 2024Card network
visa, mastercard, amex, discover, rupay Type of card
credit_card, debit_card Card nickname for easy identification
Conditional parameter required for specific card networks: For Rupay cards - the authorization reference number received during authorization call. For AMEX cards - the AEVV (American Express Verification Value) received during authorization call. This parameter is mandatory for Rupay and AMEX cards only.