{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/asendia/main/json-schema/asendia-delete-parcel-request-schema.json",
  "title": "deleteParcelRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asendia-a1-parcel-openapi.yml#/components/schemas/deleteParcelRequest",
  "required": [
    "accountNumber"
  ],
  "type": "object",
  "properties": {
    "accountNumber": {
      "maxLength": 12,
      "type": "string"
    },
    "subAccountNumber": {
      "maxLength": 12,
      "type": [
        "string",
        "null"
      ]
    },
    "parcel": {
      "allOf": [
        {
          "$ref": "#/$defs/parcel"
        }
      ],
      "nullable": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "parcel": {
      "type": "object",
      "properties": {
        "orderNumber": {
          "maxLength": 35,
          "type": [
            "string",
            "null"
          ]
        },
        "parcelID": {
          "maxLength": 35,
          "minLength": 4,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}