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' \
  --data '
{
  "payment_method_token": "token_9wcXDRVkfEtLEsSnYKgQ"
}
'
{
  "payment_method_token": "token_9wcXDRVkfEtLEsSnYKgQ"
}

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"