Skip to main content

Update a payment method

patch/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}

Updates payment method details for the merchant account and the payment method identified in the path. Depending the payment method type, you may need to send an additional object required for the payment method.

To make this request, your API credential must have the following role:

  • Management API—Payment methods read and write
Endpoint destination URL
https://management-test.adyen.com/v1/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}
Click to copy
paymentMethodIdstringRequired

The unique identifier of the payment method.

merchantIdstringRequired

The unique identifier of the merchant account.

accelobject

Details to provide if type is accel.

bcmcobject

Details to provide if type is bcmc (Bancontact).

cartesBancairesobject

Details to provide if type is cartesbancaire.

countriesarray[string]

The list of countries where a payment method is available. By default, all countries supported by the payment method.

cupobject

Details to provide if type is cup (China Union Pay).

currenciesarray[string]

The list of currencies that a payment method supports. By default, all currencies supported by the payment method.

customRoutingFlagsarray[string]

Custom routing flags for acquirer routing.

dinersobject

Details to provide if type is diners. For merchants operating in Japan, Diners payments are processed through the JCB network. This means that you must include JCB-specific fields in this object.

discoverobject

Details to provide if type is discover. For merchants operating in Japan, request Diners payment method instead. Discover is automatically requested, together with Diners.

eft_directdebit_CAobject

Details to provide if type is eft_directdebit_CA (EFT PAD).

eftpos_australiaobject

Details to provide if type is eftpos_australia.

enabledboolean

Indicates whether the payment method is enabled (true) or disabled (false).

girocardobject

Details to provide if type is girocard.

idealobject

Details to provide if type is ideal.

interac_cardobject

Details to provide if type is interac_card.

jcbobject

Details to provide if type is jcb. For merchants operating in Japan, midNumber, reuseMidNumber, and serviceLevel fields are required. For merchants operating outside of Japan, these fields are not required.

maestroobject

Details to provide if type is maestro. In the US, maestro is not supported; use maestro_usa instead.

maestro_usaobject

Details to provide if type is maestro_usa. Only for Maestro USA, otherwise use maestro.

mcobject

Details to provide if type is mc.

nyceobject

Details to provide if type is nyce.

paybybank_plaidobject

Details to provide if type is paybybank_plaid.

pulseobject

Details to provide if type is pulse.

sepadirectdebitobject

Details to provide if type is sepadirectdebit.

starobject

Details to provide if type is star.

storeIdsarray[string]

The list of stores for this payment method

visaobject

Details to provide if type is visa.

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 200 - OK

    The request has succeeded.

  • 204 - No Content

    The request has been successfully processed, but there is no additional content.

  • 400 - Bad Request

    A problem reading or understanding the request.

  • 401 - Unauthorized

    Authentication required.

  • 403 - Forbidden

    Insufficient permissions to process the request.

  • 422 - Unprocessable Entity

    A request validation error.

  • 429

  • 500 - Internal Server Error

    The server could not process the request.