Create customer payment method switch
1 min
POST
https://app.amberflo.io/customers/payment-method/switch
bodyobjectPayment method switch configuration including target provider, timing, and transition details
200Successfully created payment method switch with confirmation details and effective timing
400Invalid switch configuration, unsupported payment provider, or malformed request body
401Authentication required or invalid API key provided
403Insufficient permissions to modify customer payment methods
404Customer not found or target payment provider not configured
409Conflicting payment method switch already in progress for this customer
500Internal server error occurred while creating payment method switch
curl --request POST \
--url https://app.amberflo.io/customers/payment-method/switch \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customerId": "",
"targetPaymentType": "",
"targetPaymentId": "",
"targetCustomerIdentifier": "",
"switchTimeInSeconds": 0
}'