{
  "$id": "https://schema.nfh.global/FulfillmentStageEndpoint/v2.0",
  "x-iri": "https://schema.nfh.global/FulfillmentStageEndpoint/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A stage boundary endpoint (entry or exit) within a fulfillment, such as pickup, handover, warehouse in/out, border crossing, gate entry/exit, security check, etc. May require one or more proofs/permits/tokens/documents. ",
  "title": "FulfillmentStageEndpoint",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "location": {
      "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
    },
    "time": {
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "authorization": {
      "type": "array",
      "description": "One or more credentials required and/or issued at this endpoint. Includes machine-readable tokens (QR/URL/OTP) and manual documents (IDs, permits). ",
      "items": {
        "$ref": "https://schema.nfh.global/FulfillmentStageAuthorization/v2.0/schema.json"
      }
    }
  },
  "x-tags": [
    "common"
  ]
}
