{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parcelone/json-schema/parcelone-shipment-documents-result-schema.json",
  "title": "ShipmentDocumentsResult",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parcelone-shipping-openapi.json#/components/schemas/ShipmentDocumentsResult",
  "properties": {
    "ShipmentID": {
      "description": "- MaxLen 20",
      "type": "string"
    },
    "PackageID": {
      "description": "- MaxLen 20",
      "type": "string"
    },
    "TrackingID": {
      "description": "- MaxLen 20",
      "type": "string"
    },
    "DocType": {
      "description": "- MaxLen 25",
      "type": "string"
    },
    "Format": {
      "$ref": "#/$defs/Format"
    },
    "Document": {
      "description": "- no Maxlimit",
      "type": "string"
    },
    "Charges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Amount"
      }
    },
    "PackageRef": {
      "description": "- MaxLen 20",
      "type": "string"
    },
    "PackageTrackingID": {
      "description": "- MaxLen 20",
      "type": "string"
    },
    "ActionResult": {
      "$ref": "#/$defs/ShipmentActionResult"
    },
    "DocumentID": {
      "description": "- MaxLen 50",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "Amount": {
      "description": "Amount common format",
      "required": [
        "Currency",
        "Value"
      ],
      "properties": {
        "Currency": {
          "description": "- MaxLen 3 - ISO 4217",
          "type": "string"
        },
        "Value": {
          "description": "- Format 9999999999.99",
          "type": "string"
        },
        "Description": {
          "description": "- no Maxlimit",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Format": {
      "description": "common Format",
      "properties": {
        "Type": {
          "description": "- MaxLen 10 - for printing in most cases: GIF,PDF, ZPL203, ZPL300",
          "type": "string"
        },
        "Size": {
          "description": "- no Maxlimit - for printing of Customs documents: CN22, CN23, in other cases so far no effects on fixed return formats",
          "type": "string"
        },
        "Unit": {
          "description": "- no Maxlimit - for future use",
          "type": "string"
        },
        "Orientation": {
          "description": "- 0=Portrait, 1=Landscape",
          "type": "integer",
          "default": 0,
          "enum": [
            0,
            1
          ]
        },
        "Height": {
          "description": "- Format 9999999999.99 - for future use",
          "type": "string"
        },
        "Width": {
          "description": "- Format 9999999999.99 - for future use",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ShipmentActionResult": {
      "description": "Additional ActionResult for detailed information about shipments or errors",
      "properties": {
        "ShipmentID": {
          "description": "- MaxLen 20",
          "type": "string"
        },
        "ShipmentRef": {
          "description": "- MaxLen 20",
          "type": "string"
        },
        "TrackingID": {
          "description": "- MaxLen 20",
          "type": "string"
        },
        "Success": {
          "description": "- bool",
          "type": "integer"
        },
        "Errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ShipmentError"
          }
        },
        "Warnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ShipmentWarning"
          }
        }
      },
      "type": "object"
    },
    "ShipmentError": {
      "properties": {
        "ErrorNo": {
          "description": "- MaxLen 4",
          "type": "string"
        },
        "Message": {
          "description": "- no Maxlimit",
          "type": "string"
        },
        "StatusCode": {
          "description": "- MaxLen 20",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ShipmentWarning": {
      "properties": {
        "WarningNo": {
          "description": "- MaxLen 4",
          "type": "string"
        },
        "Message": {
          "description": "- no Maxlimit",
          "type": "string"
        },
        "StatusCode": {
          "description": "- MaxLen 20",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}