Set default payment method
1 min
POST
https://app.amberflo.io/customer-portal/payment-method
sessionTokenstring<p>A required session token used to authenticate API calls made on behalf of a customer. This token is obtained from the <code>Create a session</code> endpoint and must be included with every request to authorize access.</p>
bodyobject
200Successful response
curl --request POST \
--url 'https://app.amberflo.io/customer-portal/payment-method?sessionToken=string' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"provider": "stripe",
"paymentMethodId": ""
}'Use this endpoint to set the default payment method of the customer, when registering the customer's payment credentials for future payments.