{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-process-status-schema.json",
  "title": "ProcessStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-orders-api-openapi.yml#/components/schemas/ProcessStatus",
  "required": [
    "createTimestamp",
    "description",
    "eventType",
    "links",
    "status"
  ],
  "type": "object",
  "properties": {
    "processStatusId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The process status id."
    },
    "entityId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The id of the object being processed. For example, in case of a shipment process id, you will receive the id of the order item being processed."
    },
    "eventType": {
      "type": "string",
      "description": "Name of the requested action that is being processed."
    },
    "description": {
      "type": "string",
      "description": "Describes the action that is being processed."
    },
    "status": {
      "type": "string",
      "description": "Status of the action being processed.",
      "enum": [
        "PENDING",
        "SUCCESS",
        "FAILURE",
        "TIMEOUT"
      ]
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Shows error message if applicable."
    },
    "createTimestamp": {
      "type": "string",
      "description": "Time of creation of the response.",
      "format": "date-time"
    },
    "links": {
      "type": "array",
      "description": "Lists available actions applicable to this endpoint.",
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "hreflang": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "deprecation": {
          "type": "string"
        },
        "profile": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "templated": {
          "type": "boolean"
        }
      }
    }
  }
}