grubhub · JSON Structure

Grubhub Merchantpropertiesupdaterequest Structure

Request to update properties for a batch of merchants.

Type: object Properties: 1 Required: 1

MerchantPropertiesUpdateRequest is a JSON Structure definition published by grubhub, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

merchants

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/refs/heads/main/json-structure/grubhub-merchantpropertiesupdaterequest-structure.json",
  "name": "MerchantPropertiesUpdateRequest",
  "description": "Request to update properties for a batch of merchants.",
  "type": "object",
  "properties": {
    "merchants": {
      "type": "array",
      "description": "List of merchants with properties to update.",
      "items": {
        "type": "object",
        "required": [
          "merchant_id"
        ],
        "properties": {
          "merchant_id": {
            "type": "string",
            "description": "The Grubhub merchant identifier."
          },
          "tax_rate": {
            "type": "double",
            "description": "Updated tax rate for the merchant."
          },
          "fulfillment_settings": {
            "type": "object",
            "description": "Updated fulfillment settings.",
            "properties": {
              "delivery_enabled": {
                "type": "boolean",
                "description": "Whether delivery should be enabled."
              },
              "pickup_enabled": {
                "type": "boolean",
                "description": "Whether pickup should be enabled."
              },
              "estimated_prep_time_minutes": {
                "type": "int32",
                "description": "Updated estimated preparation time."
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "merchants"
  ]
}