Deactivate a payment method

POST {{baseUrl}}/payment_methods/:paymentMethodId/deactivate

Deactivate a specific payment method.

📘 Info
You can only deactivate a payment method when the status is in the active state and there are no pending payment requests (paymentRequest.status = processing)

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: Created

{"id":"3118128a-6792-4b06-bd61-4acf6f6ad6b5","createdDate":"2022-02-09T08:45:50.406032Z","lastUpdatedDate":"2022-02-09T08:45:50.406032Z","status":"inactive","type":"bank_account","customer":{"id":"3118128a-6792-4b06-bd61-4acf6f6ad6b5","firstname":"Carlos","lastname":"Vives","email":"carlos-vives@musica.mx","phone":"+523001234567"},"details":{"accountNumber":"445566790","accountType":"savings","bank":"mx_citi_banamex"}}