---
title: "Update merchant by id"
method: PATCH
path: "/merchants/{id}"
tags: ["Merchants"]
---

# Update merchant by id

`PATCH /merchants/{id}`

Update merchant by id

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — Merchant name
  - `code` string — Merchant code
  - `updatedAt` string, date — Updated at
  - `type` 'internal' | 'external' — Merchant Type
  - `phone` string — Merchant phone
  - `logo` string — Merchant logo
  - `contactEmail` string — Contact email
  - `emails` string[] — Merchant emails

## Response `200`

Update merchant by id

- object
  - `meta` object
    - `numRows` string
    - `affectedRows` string
    - `insertId` string
  - `data` object
    - `_id` integer — Merchant id
    - `name` string — Merchant name
    - `code` string — Merchant code
    - `updatedAt` string, date — Updated at
    - `type` 'internal' | 'external' — Merchant Type
    - `phone` string — Merchant phone
    - `logo` string — Merchant logo
    - `contactEmail` string — Contact email
    - `emails` string[] — Merchant emails

## Other responses

- `403` — Not authorized access

---

[API](https://skmtc.net/quadminds/apis/quadminds-api-v2.md) · [All operations](https://skmtc.net/quadminds/apis/quadminds-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quadminds/quadminds-api-v2/versions/e0ab56dece05/schema)
