Skip to main content

Request a payment method

post/merchants/{merchantId}/paymentMethodSettings

Sends a request to add a new payment method to the merchant account 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/v3/merchants/{merchantId}/paymentMethodSettings
Click to copy
merchantIdstringRequired

The unique identifier of the merchant account.

accelobject

Details to provide if type is accel.

affirmobject

Details to provide if type is affirm.

afterpayTouchobject

Details to provide if type is afterpaytouch.

alipayPlusobject

Details to provide if type is alipay_plus.

amexobject

Details to provide if type is amex.

applePayobject

Details to provide if type is applepay.

bcmcobject

Details to provide if type is bcmc (Bancontact).

businessLineIdstring

The unique identifier of the business line. Required if you are a platform model.

cartesBancairesobject

Details to provide if type is cartesbancaire.

clearpayobject

Details to provide if type is clearpay.

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]

The list of custom routing flags to route payment to the intended acquirer.

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.

girocardobject

Details to provide if type is girocard.

givexobject

Details to provide if type is givex.

googlePayobject

Details to provide if type is googlepay.

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.

klarnaobject

Details to provide if type is klarna.

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.

mealVoucher_FRobject

Details to provide if type is mealVoucher_FR.

nyceobject

Details to provide if type is nyce.

paybybank_plaidobject

Details to provide if type is paybybank_plaid.

paymeobject

Details to provide if type is payme.

paypalobject

Details to provide if type is paypal.

paytoobject

Details to provide if type is payto.

pulseobject

Details to provide if type is pulse.

referencestring
Max length: 150

Your reference for the payment method. Supported characters a-z, A-Z, 0-9.

sepadirectdebitobject

Details to provide if type is sepadirectdebit.

shopperInteractionstring

The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account.

Possible values: eCommerce, pos, contAuth, and moto.

sodexoobject

Details to provide if type is sodexo.

sofortobjectDeprecated in version 1

Sofort details.

starobject

Details to provide if type is star.

storeIdsarray[string]

The unique identifier of the store for which to configure the payment method, if any.

svsobject

Details to provide if type is svs.

swishobject

Details to provide if type is swish.

  • This field is required only if you have a contract with Swish. Swish handles settlement directly with you (not through Adyen).
  • If not specified then it's assumed that you are using Adyen's contract with Swish.You don't have a direct relationship with Swish.
ticketobject

Details to provide if type is ticket (Edenred Brazil).

twintobject

Details to provide if type is twint.

typestringRequired

Payment method variant.

valuelinkobject

Details to provide if type is valuelink.

vippsobject

Details to provide if type is vipps.

visaobject

Details to provide if type is visa.

wechatpayobject

Details to provide if type is wechatpay.

wechatpay_posobject

Details to provide if type is wechatpay_pos.

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.