{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-posorder-status-update-request-structure.json",
  "name": "POSOrderStatusUpdateRequest",
  "description": "The request to change an order status.",
  "type": "object",
  "properties": {
    "orderStatus": {
      "type": "string",
      "description": "The requested status to transition the order to.",
      "enum": [
        "CONFIRMED",
        "CANCELED"
      ],
      "example": "CONFIRMED"
    },
    "orderExternalIdentifiers": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-order-identifier-schema.json"
    }
  },
  "required": [
    "orderExternalIdentifiers",
    "orderStatus"
  ]
}