Replace a payment method

Replace a payment method with another payment method while keeping all existing customer, subscription and invoice links. This is useful when replacing invalid payment methods to existing customers without needing to additionally update their subscription and invoice details.

Path Params
string
required

Auto-generated unique identifier of the payment method token generated by vault.

string
required

Auto-generated unique identifier of the customer.

Body Params
string
required

Auto-generated unique identifier of the payment method token generated by vault.

string

Indicator to set this payment method as Customer's preferred Payment Method. PromptPay payment method token cannot be set as the primary payment method.

Headers
string
required

Merchant ID

Responses

Language
Response
Choose an example:
application/json