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

# Update merchant by id

`PATCH /merchants/{id}`

## Request

- Base URL: `https://flash-api.quadminds.com/api/v2`
- URL: `https://flash-api.quadminds.com/api/v2/merchants/{id}`
- Auth: API key in header `x-saas-apikey`

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.dev/quadminds/apis/cloudflash-api.md) - [All operations](https://skmtc.dev/quadminds/apis/cloudflash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quadminds/apis/cloudflash-api/revisions/7731f1076b80?raw)
