cURL
curl --request POST \ --url https://sandbox.hyperswitch.io/v2/tokenize \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "customer_id": "12345_cus_0196d94b9c207333a297cbcf31f2e8c8", "token_request": { "payment_method_data": { "card": { "card_holder_name": "test name" } } } }'
{ "id": "12345_tok_01926c58bc6e77c09e809964e72af8c8", "created_at": "2024-02-24T11:04:09.922Z", "flag": "enabled" }
Create a token with customer_id
Ephemeral keys provide temporary access to singular data, such as access to a single customer object for a short period of time.
Token created successfully
The response is of type object.
object
Was this page helpful?