---
title: "Update custom payment gateway"
method: PATCH
path: "/api/sites/multiscreen/{site_name}/ecommerce/payment-gateways/{id}"
tags: ["Payment Gateways"]
---

# Update custom payment gateway

`PATCH /api/sites/multiscreen/{site_name}/ecommerce/payment-gateways/{id}`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/sites/multiscreen/{site_name}/ecommerce/payment-gateways/{id}`
- Auth: HTTP basic

Updates the custom payment gateway with the given id. Accepts changes to its live and test payment methods endpoints, display name, description, image, icons, and management URL.

## Path parameters

- `site_name` string, required
- `id` string, required

## Request body

- UpdateCustomPaymentGatewayInputDto
  - `live_payment_methods_url` string, nullable
  - `test_payment_methods_url` string, nullable
  - `name` string, nullable
  - `description` string, nullable
  - `image` string, nullable
  - `icons` string[], nullable
  - `management_url` string, nullable

## Response `200`

OK

- CustomPaymentGatewayOutputDto
  - `id` string: System identifier of the custom payment gateway
  - `live_payment_methods_url` string, uri: The payment methods API endpoint that will be called to retrieve the available payment methods for the cart in LIVE mode
  - `test_payment_methods_url` string, uri: The payment methods API endpoint that will be called to retrieve the available payment methods for the cart in TEST mode. This URL can be the same as live_payment_methods_url
  - `name` string, nullable: Display name visible to merchants in the dashboard of the payment gateway
  - `description` string, nullable: Description visible to merchants in the dashboard of the payment gateway
  - `image` string, nullable: Image URL representing the payment gateway visible in the merchant dashboard
  - `icons` string[], nullable: List of icons URLs representing the available payment methods for the payment gateway
  - `management_url` string, nullable: URL defined by the payment gateway to redirect merchants on their platform

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Content
- `429`: Too many requests. The rate limit was exceeded.

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
