---
title: "Service:UpdatePaymentMethod"
method: PATCH
path: "/v2/services/{serviceId}/paymentmethods/{paymentMethodId}"
tags: ["Services"]
---

# Service:UpdatePaymentMethod

`PATCH /v2/services/{serviceId}/paymentmethods/{paymentMethodId}`

Update the settings of a payment method on a specific service. The payment method needs to be enabled and you need to have access to that service.

## Path parameters

- `serviceId` string, required
- `paymentMethodId` string, required

## Request body

- union
  - ServiceInputPaymentMethodIdealPaymentMethod — Input for configuring the iDEAL payment method on a service.
    - `idealFailoverType` 0 | 1 | 2 | 3, nullable — The ideal fail over type to use when the ideal payment method is not available. This setting determines how the payment should be handled when the ideal payment method is not available.
    - `idealWeroRSMEnabled` integer, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodPayByBankPaymentMethod — Input for configuring the Pay By Bank payment method on a service.
    - `creditor` boolean, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodSofortPaymentMethod — Input for configuring the Sofort payment method on a service.
    - `payoutConfirmation` 0 | 1, nullable — When you would like to receive the payment confirmation for the Sofort payment method. 0 = Confirmed with Sofort, 1 = Amount received by Pay. Sofort is not a guaranteed payment method, so the payment can still be canceled after the confirmation.
    - `maxPayoutAmount` integer, nullable — The maximum amount that can be paid out using the Sofort payment method.
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodIn3PaymentMethod — Input for configuring the in3 payment method on a service.
    - `in3Premium` boolean, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodPayPalPaymentMethod — Input for configuring the PayPal payment method on a service.
    - `merchantId` string, nullable
    - `shippingRequired` boolean, nullable
    - `protectionEligibility` boolean, nullable
    - `showOrderLines` boolean, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodDirectDebitPaymentMethod — Input for configuring the Direct Debit payment method on a service.
    - `webUrl` string, uri, nullable
    - `description` string, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodPayByPhonePaymentMethod — Input for configuring the Pay By Phone payment method on a service.
    - `limit1d` integer, nullable
    - `limit1w` integer, nullable
    - `limit1m` integer, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodGivaCardPaymentMethod — Input for configuring the GivaCard payment method on a service.
    - `username` string, nullable
    - `cardName` string, nullable
    - `brandName` string, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodBillinkPaymentMethod — Input for configuring the Billink payment method on a service.
    - `capture` -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90, nullable
    - `trustScoreType` integer, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodKlarnaPaymentMethod — Input for configuring the Klarna payment method on a service.
    - `capture` -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13, nullable — The capture setting for the Klarna payment method. This setting determines when the payment is captured where -1 means manual captures only, 0 means direct capture, and the other values indicate after how many days the payment should be captured.
    - `dataLevel` 0 | 1 | 2 | 3, nullable — Send data to klarna about historic payments in the EMD attachment. This is used to determine the risk of the transaction. The higher the value, the more data is sent.
    - `voidPending` boolean, nullable — Klarna may check orders manually. This process slows the transaction workflow by at least 4 hours. Set this setting to true to automatically cancel these transactions. The customer is then sent back to the checkout to select another payment method.
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodAmazonPayPaymentMethod — Input for configuring the Amazon Pay payment method on a service.
    - `capture` -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13, nullable — The capture setting for the Amazon Pay payment method. This setting determines when the payment is captured where -1 means manual captures only, 0 means direct capture, and the other values indicate after how many days the payment should be captured.
    - `sandbox` boolean, nullable — Whether the Amazon Pay payment method should be used in sandbox mode.
    - `merchantId` string, nullable
    - `clientId` string, nullable
    - `clientSecret` string, nullable
    - `accessKeyId` string, nullable
    - `secretAccessKey` string, nullable
    - `paymentProfileId` unknown
  - ServiceInputPaymentMethodWeroPaymentMethod — Input for configuring the wero payment method on a service.
    - `weroTransactionFlow` 'DIRECT' | 'AUTHORISATION' | 'null', nullable
    - `weroAutoCapture` integer, nullable
    - `paymentProfileId` unknown

## Response `200`

OK

- ServiceOutputPaymentMethodSettings — Settings for a payment method within a service. Used as the response for the service payment method settings endpoint.
  - `settings` object, nullable

## Other responses

- `400` — Bad request, see response body for more information
- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `404` — Resource not found
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `410` — Indicates that this resource is no longer available for use
- `415` — Unsupported media. The supplied content type in the content-type parameter in the header is not supported
- `422` — Unprocessable entity
- `429` — Rate limit reached.
- `500` — An internal error occurred.
- `503` — The server is currently unable to handle your request

---

[API](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/versions/2bc260c7bdfc/schema)
