grubhub · JSON Structure

Grubhub Batchjobstatus Structure

Status of a batch operation with per-merchant progress.

Type: object Properties: 3

BatchJobStatus is a JSON Structure definition published by grubhub, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

batch_id status 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-batchjobstatus-structure.json",
  "name": "BatchJobStatus",
  "description": "Status of a batch operation with per-merchant progress.",
  "type": "object",
  "properties": {
    "batch_id": {
      "type": "string",
      "description": "The unique identifier for the batch operation."
    },
    "status": {
      "type": "string",
      "description": "The overall status of the batch.",
      "enum": [
        "PENDING",
        "PROCESSING",
        "COMPLETED",
        "FAILED"
      ]
    },
    "merchants": {
      "type": "array",
      "description": "Progress for each individual merchant in the batch.",
      "items": {
        "type": "object",
        "properties": {
          "merchant_id": {
            "type": "string",
            "description": "The merchant identifier."
          },
          "status": {
            "type": "string",
            "description": "The status for this merchant's update.",
            "enum": [
              "PENDING",
              "SUCCESS",
              "FAILED"
            ]
          },
          "error": {
            "type": "string",
            "description": "Error message if the update failed for this merchant."
          }
        }
      }
    }
  }
}