---
title: "Update a merchant"
method: PUT
path: "/merchants/{merchantId}"
---

# Update a merchant

`PUT /merchants/{merchantId}`

## Request

- Base URL: `https://api.open-finance.ai/v2`
- URL: `https://api.open-finance.ai/v2/merchants/{merchantId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `update:merchants`

## Path parameters

- `merchantId` string, required

## Request body

- object
  - `name` string: The merchant name
  - `displayName` string: The merchant display name
  - `logo` object: A logo of the merchant
    - `file` string: The file in base64
    - `fileName` string: The file name
    - `fileType` string: The file type
  - `bban` string: The merchant bank account bban
  - `iban` string: The merchant bank account iban
  - `psuId` string: The merchant national id
  - `psuCorporateId` string: The merchant business id
  - `phoneNumber` string: The merchant phone number

## Response `200`

Response

- Merchant
  - `name` string: The merchant name
  - `bban` string: The merchant bank account bban
  - `iban` string: The merchant bank account iban
  - `id` string: The merchant unique identifier
  - `psuId` string: National id of the merchant
  - `psuCorporateId` string: Business id of the merchant
  - `phoneNumber` string: Phone number of the merchant
  - `displayName` string: The merchant display name
  - `logoUrl` string: The url of the logo file
  - `createdAt` string: The timestamp in UTC when the marchant was created
  - `isDeleted` boolean: Indicates if the merchant is deleted

## Other responses

- `400`: Invalid request format or parameters
- `401`: Unauthorized access - Invalid access token
- `403`: Forbidden - Access token missing the required permissions to preform this action
- `404`: Missing ordId or userId in token
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/data.md) - [All operations](https://skmtc.dev/open-finance/apis/data/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/data/revisions/c18eafb2a770?raw)
