Skip to main content
PATCH
/
merchant
/
edit
{
  "success": false,
  "error": {
    "status": 404,
    "code": "MERCHANT_NOT_FOUND",
    "message": "Merchant not found"
  },
  "data": null
}
Edit merchant information and settings.
merchantId
string
required
Merchant UUID to edit
name
string
Updated merchant name
description
string
Updated merchant description
webhookUrl
string
Updated webhook URL
success
boolean
Indicates if the request was successful
data
object
Updated merchant data

Example Request

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

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

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "MERCHANT_NOT_FOUND",
    "message": "Merchant not found"
  },
  "data": null
}