Delete a payment method
Changed onRemove an obsolete or invalid payment method from a customer. Removing a payment method will also delete the payment method token from the Ezypay Vault if no other customers are linked to that token. However, a payment method with an active subscription or is the customer’s only (i.e. primary) payment method cannot be removed.
delete/billing/customers/{customerId}/paymentmethods/{paymentMethodToken}
Request
- Base URLhttps://api-sandbox.ezypay.com/v2
- URLhttps://api-sandbox.ezypay.com/v2/billing/customers/{customerId}/paymentmethods/{paymentMethodToken}
- AuthOAuth 2Client credentialsToken URL: https://identity-sandbox.ezypay.com/token
Path parameters
paymentMethodTokenstring required
Auto-generated unique identifier of the payment method token generated by vault.
customerIdstring required
Auto-generated unique identifier of the customer.
Headers
merchantstring required
Merchant ID
Response
200
Changes
- info
endpoint added
- info