DELETE
/
v2
/
payment-method-session
/
{id}
Payment Method Session - Delete a saved payment method
curl --request DELETE \
  --url https://sandbox.hyperswitch.io/v2/payment-method-session/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "payment_method_id": "12345_pm_0194b1ecabc172e28aeb71f70a4daba3"
}'
{
  "id": "12345_pm_01926c58bc6e77c09e809964e72af8c8"
}

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

Response

200
application/json

The payment method has been updated successfully

The response is of type object.