POST
/
{customer_id}
/
payment_methods
/
{payment_method_id}
/
default
curl --request POST \
  --url https://sandbox.hyperswitch.io/{customer_id}/payment_methods/{payment_method_id}/default \
  --header 'api-key: <api-key>'
{
  "default_payment_method_id": "card_rGK4Vi5iSW70MY7J2mIg",
  "customer_id": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
  "payment_method": "card",
  "payment_method_type": "ach"
}

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

customer_id
string
required

The unique identifier for the Customer

payment_method_id
string
required

The unique identifier for the Payment Method

Response

200
application/json

Payment Method has been set as default

The response is of type object.