Skip to main content
GET
/
v1
/
payment-methods
/
token
/
{payment_method_temporary_token}
/
details
Payment Method - Get Payment Method Token Data
curl --request GET \
  --url https://sandbox.hyperswitch.io/v1/payment-methods/token/{payment_method_temporary_token}/details \
  --header 'Authorization: <api-key>' \
  --header 'X-Profile-Id: <x-profile-id>'
{
  "id": "12345_pm_019959146f92737389eb6927ce1eb7dc",
  "payment_method_token": "token_CSum555d9YxDOpGwYq6q"
}

Authorizations

Authorization
string
header
required

Format: api-key=<api_key>

Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Headers

X-Profile-Id
string
required

Profile ID associated to the payment method

Path Parameters

payment_method_temporary_token
string
required

The unique identifier for the Payment Method Token

Response

Payment Method Token Data Retrieved

id
string
required

The payment method ID associated with the token

Example:

"12345_pm_019959146f92737389eb6927ce1eb7dc"

payment_method_token
string
required

The token associated with the payment method

Example:

"token_CSum555d9YxDOpGwYq6q"