> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transaction.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Merchant

> Edit merchant details

Edit merchant information and settings.

<ParamField path="merchantId" type="string" required>
  Merchant UUID to edit
</ParamField>

<ParamField path="name" type="string">
  Updated merchant name
</ParamField>

<ParamField path="description" type="string">
  Updated merchant description
</ParamField>

<ParamField path="webhookUrl" type="string">
  Updated webhook URL
</ParamField>

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  Updated merchant data
</ResponseField>

## Example Request

```bash theme={null}
curl -X PATCH https://api.transaction.gg/merchant/edit \
  -H "Authorization: Bearer jwt_token" \
  -H "Content-Type: application/json" \
  -d '{
    "merchantId": "merchant_uuid",
    "name": "Updated Store Name",
    "description": "Updated description",
    "webhookUrl": "https://mystore.com/webhook"
  }'
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": {
    "merchant": {
      "id": "merchant_uuid",
      "name": "Updated Store Name",
      "description": "Updated description",
      "webhookUrl": "https://mystore.com/webhook"
    }
  }
}
```

## Error Responses

<ResponseExample name="Merchant Not Found">
  ```json theme={null}
  {
    "success": false,
    "error": {
      "status": 404,
      "code": "MERCHANT_NOT_FOUND",
      "message": "Merchant not found"
    },
    "data": null
  }
  ```
</ResponseExample>
