Skip to main content
DELETE
/
v2
/
payment-method-sessions
/
{id}
Payment Method Session - Delete a saved payment method
curl --request DELETE \
  --url https://sandbox.hyperswitch.io/v2/payment-method-sessions/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "payment_method_token": "token_9wcXDRVkfEtLEsSnYKgQ"
}
'
{
  "payment_method_token": "token_9wcXDRVkfEtLEsSnYKgQ"
}

Authorizations

api-key
string
header
required

Ephemeral keys provide temporary access to singular data, such as access to a single customer object for a short period of time.

Path Parameters

id
string
required

The unique identifier for the Payment Method Session

Body

application/json
payment_method_token
string
required

The payment method token associated with the payment method to be deleted

Example:

"token_9wcXDRVkfEtLEsSnYKgQ"

Response

The payment method has been deleted successfully

payment_method_token
string
required

The unique identifier of the Payment method

Example:

"token_9wcXDRVkfEtLEsSnYKgQ"