> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeactivatePaymentMethodCommandResponse

> Takes a payment method out of use for new documents. Documents, payments and customers that carry it keep it, so there is no delete. Look with 'allowed-actions' first. Errors: errorCode is PAYMENT_METHOD_NOT_FOUND (no payment method with this ID); errorCode is PAYMENT_METHOD_ALREADY_INACTIVE (the payment method is already inactive); errorCode is PAYMENT_METHOD_IS_DEFAULT (the default payment method cannot be deactivated); errorCode is PAYMENT_METHOD_IS_VOUCHER_PAYMENT_METHOD (the payment method of the vouchers account cannot be deactivated). The error lists all blockers. - Response



**Kind**: `object`

## Fields

**`affectedPaymentMethodId`**: `ID!`

The ID of the deactivated payment method.

