The DELETE /payment_methods/{id} call allows your platform to delete a single payment method. Payment methods represent payment data like credit cards and bank accounts, and allow your platform to charge and accept money from a payer.
INVALID_PARAMS, PAYMENT_METHOD_CANNOT_BE_DELETED
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "create_time": 1512429148,
- "credit_card": {
- "auto_update": false,
- "backing_display_name": null,
- "bin": "549619",
- "card_brand": "mastercard",
- "card_entry_type": "card_keyed",
- "card_holder": {
- "address": {
- "city": "",
- "country": "US",
- "line1": "",
- "line2": "",
- "postal_code": "94025",
- "region": ""
}, - "email": "example@wepay.com",
- "holder_name": "John Snow",
- "phone": {
- "country_code": null,
- "phone_number": null,
- "type": null
}
}, - "display_name": "MasterCard xxxxxx4769",
- "expiration_month": 4,
- "expiration_year": 2020,
- "last_four": "4769",
- "virtual_terminal_mode": null,
- "card_on_file": false,
- "recurring": false,
- "cvv_provided": true
}, - "custom_data": null,
- "id": "00000000-6363-0000-0000-0000cd225fe1",
- "owner": {
- "id": "171845",
- "path": null,
- "resource": "applications"
}, - "path": "/payment_methods/00000000-6363-0000-0000-0000cd225fe1",
- "resource": "payment_methods",
- "status": "deleted",
- "type": "credit_card",
- "api_version": "3.0"
}