{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usps/json-schema/usps-tracking-number-partial-success-response-schema.json",
  "title": "TrackingNumberPartialSuccessResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usps-informed-delivery-package-campaigns-openapi.yml#/components/schemas/TrackingNumberPartialSuccessResponse",
  "type": "object",
  "properties": {
    "trackingNumbers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "trackingNumber": {
            "type": "string",
            "description": "The tracking number included in the request."
          },
          "pieceID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique pieceID of the tracking number for the campaign. This pieceID will be unique if a tracking number is added to multiple campaigns. The pieceID will be non-null if the tracking number was successfully added to the package campaign."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "Title of tracking number-level error associated with the request. If there is a tracking number-level error, that tracking number will not be added to the campaign."
                },
                "detail": {
                  "type": "string",
                  "description": "Details on tracking number-level error associated with the request. If there is a tracking number-level error, that tracking number will not be added to the campaign."
                }
              }
            }
          }
        }
      }
    }
  }
}