{
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "value",
        "value": "{{admin_api_key}}",
        "type": "string"
      },
      {
        "key": "key",
        "value": "api-key",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "method": "POST",
  "header": [
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Accept",
      "value": "application/json"
    }
  ],
  "body": {
    "mode": "raw",
    "options": {
      "raw": {
        "language": "json"
      }
    },
    "raw_json_formatted": {
      "merchant_id": "{{merchant_id}}",
      "merchant_name": "NewAge Retailer",
      "locker_id": "m0010",
      "merchant_details": {
        "primary_contact_person": "joseph Test",
        "primary_email": "josephTest@test.com",
        "primary_phone": "veniam aute officia ullamco esse",
        "secondary_contact_person": "joseph Test2",
        "secondary_email": "josephTest2@test.com",
        "secondary_phone": "proident adipisicing officia nulla",
        "website": "www.example.com",
        "about_business": "Online Retail with a wide selection of organic products for North America",
        "address": {
          "line1": "1467",
          "line2": "Harrison Street",
          "line3": "Harrison Street",
          "city": "San Fransico",
          "state": "California",
          "zip": "94122",
          "country": "US"
        }
      },
      "return_url": "https://duck.com",
      "webhook_details": {
        "webhook_version": "1.0.1",
        "webhook_username": "ekart_retail",
        "webhook_password": "password_ekart@123",
        "payment_created_enabled": true,
        "payment_succeeded_enabled": true,
        "payment_failed_enabled": true
      },
      "sub_merchants_enabled": false,
      "parent_merchant_id": "xkkdf909012sdjki2dkh5sdf",
      "metadata": {
        "city": "NY",
        "unit": "245"
      }
    }
  },
  "url": {
    "raw": "{{baseUrl}}/accounts/:id",
    "host": ["{{baseUrl}}"],
    "path": ["accounts", ":id"],
    "variable": [
      {
        "key": "id",
        "value": "{{merchant_id}}",
        "description": "(Required) The unique identifier for the merchant account"
      }
    ]
  },
  "description": "To update an existing merchant account. Helpful in updating merchant details such as email, contact deteails, or other configuration details like webhook, routing algorithm etc"
}
