curl --request POST \
--url https://api.example.com/payment-methods/confirm-setup-intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_method_id": "<string>",
"setup_intent_id": "<string>"
}
'{
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123
}Updates the customer’s billing details and attaches the new payment method
curl --request POST \
--url https://api.example.com/payment-methods/confirm-setup-intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_method_id": "<string>",
"setup_intent_id": "<string>"
}
'{
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.