{
 "type": "object",
 "properties": {
  "accountNumber": {
   "type": "object",
   "properties": {
    "value": {
     "type": "string"
    }
   },
   "required": [
    "value"
   ]
  },
  "freightRequestedShipment": {
   "type": "object",
   "properties": {
    "customsClearanceDetail": {
     "type": "object",
     "properties": {
      "brokers": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "broker": {
          "type": "object",
          "properties": {
           "accountNumber": {
            "type": "object",
            "properties": {
             "value": {
              "type": "string"
             }
            },
            "required": [
             "value"
            ]
           },
           "address": {
            "type": "object",
            "properties": {
             "city": {
              "type": "string"
             },
             "countryCode": {
              "type": "string"
             },
             "postalCode": {
              "type": [
               "string",
               "integer"
              ],
              "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
             },
             "residential": {
              "type": "boolean"
             },
             "stateOrProvinceCode": {
              "type": "string"
             },
             "streetLines": {
              "type": "array",
              "items": {
               "type": "string"
              }
             }
            },
            "required": [
             "city",
             "countryCode",
             "stateOrProvinceCode",
             "streetLines"
            ]
           },
           "contact": {
            "type": "object",
            "properties": {
             "companyName": {
              "type": "string"
             },
             "emailAddress": {
              "type": "string"
             },
             "personName": {
              "type": "string"
             },
             "phoneExtension": {
              "type": [
               "integer",
               "string"
              ]
             },
             "phoneNumber": {
              "type": [
               "integer",
               "string"
              ]
             }
            },
            "required": [
             "phoneNumber"
            ]
           },
           "tins": {
            "type": "array",
            "items": {
             "type": "object",
             "properties": {
              "effectiveDate": {
               "type": "string",
               "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
              },
              "expirationDate": {
               "type": "string",
               "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
              },
              "number": {
               "type": "string"
              },
              "tinType": {
               "enum": [
                "PERSONAL_NATIONAL",
                "PERSONAL_STATE",
                "FEDERAL",
                "BUSINESS_NATIONAL",
                "BUSINESS_STATE",
                "BUSINESS_UNION"
               ]
              },
              "usage": {
               "type": "string"
              }
             }
            }
           }
          },
          "required": [
           "accountNumber"
          ]
         },
         "type": {
          "type": "string"
         }
        },
        "required": [
         "broker",
         "type"
        ]
       }
      },
      "commercialInvoice": {
       "type": "object",
       "properties": {
        "comments": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "customerReferences": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "customerReferenceType": {
            "enum": [
             "CUSTOMER_REFERENCE",
             "DEPARTMNET_NUMBER",
             "INVOICE_NUMBER",
             "P_O_NUMBER",
             "INTRACOUNTRY_REGULATORY_REFERENCE",
             "RMA_ASSOCIATION",
             "SHIPMENT_INTEGRITY"
            ]
           },
           "value": {
            "type": "string"
           }
          },
          "required": [
           "customerReferenceType",
           "value"
          ]
         }
        },
        "declarationStatement": {
         "type": "string"
        },
        "emailNotificationDetail": {
         "type": "object",
         "properties": {
          "emailAddress": {
           "type": "string"
          },
          "recipientType": {
           "type": "string"
          },
          "type": {
           "type": "string"
          }
         },
         "required": [
          "emailAddress",
          "recipientType",
          "type"
         ]
        },
        "freightCharge": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         },
         "required": [
          "amount",
          "currency"
         ]
        },
        "handlingCosts": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         },
         "required": [
          "amount",
          "currency"
         ]
        },
        "originatorName": {
         "type": "string"
        },
        "packingCosts": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         },
         "required": [
          "amount",
          "currency"
         ]
        },
        "shipmentPurpose": {
         "type": "string"
        },
        "specialInstructions": {
         "type": "string"
        },
        "taxesOrMiscellaneousCharge": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         },
         "required": [
          "amount",
          "currency"
         ]
        },
        "taxesOrMiscellaneousChargeType": {
         "type": "string"
        },
        "termsOfSale": {
         "type": "string"
        }
       }
      },
      "commodities": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "additionalMeasures": {
          "type": "array",
          "items": {
           "type": "object",
           "properties": {
            "quantity": {
             "type": "number"
            },
            "units": {
             "type": "string"
            }
           },
           "required": [
            "quantity",
            "units"
           ]
          }
         },
         "cIMarksAndNumbers": {
          "type": "string"
         },
         "countryOfManufacture": {
          "type": "string"
         },
         "customsValue": {
          "type": "object",
          "properties": {
           "amount": {
            "type": "number"
           },
           "currency": {
            "type": "string"
           }
          },
          "required": [
           "amount",
           "currency"
          ]
         },
         "description": {
          "type": "string"
         },
         "exportLicenseExpirationDate": {
          "type": "string"
         },
         "exportLicenseNumber": {
          "type": "string"
         },
         "harmonizedCode": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "numberOfPieces": {
          "type": "integer"
         },
         "partNumber": {
          "type": "string"
         },
         "purpose": {
          "type": "string"
         },
         "quantity": {
          "type": "integer"
         },
         "quantityUnits": {
          "type": "string"
         },
         "unitPrice": {
          "type": "object",
          "properties": {
           "amount": {
            "type": "number"
           },
           "currency": {
            "type": "string"
           }
          },
          "required": [
           "amount",
           "currency"
          ]
         },
         "usmcaDetail": {
          "type": "object",
          "properties": {
           "originCriterion": {
            "type": "string"
           }
          },
          "required": [
           "originCriterion"
          ]
         },
         "weight": {
          "type": "object",
          "properties": {
           "units": {
            "type": "string"
           },
           "value": {
            "type": "number"
           }
          },
          "required": [
           "units",
           "value"
          ]
         }
        },
        "required": [
         "countryOfManufacture",
         "customsValue",
         "description",
         "numberOfPieces",
         "quantity",
         "quantityUnits",
         "unitPrice",
         "weight"
        ]
       }
      },
      "customsOption": {
       "type": "object",
       "properties": {
        "description": {
         "type": "string"
        },
        "type": {
         "type": "string"
        }
       }
      },
      "declarationStatementDetail": {
       "type": "object",
       "properties": {
        "usmcaLowValueStatementDetail": {
         "type": "object",
         "properties": {
          "countryOfOriginLowValueDocumentRequested": {
           "type": "boolean"
          },
          "customsRole": {
           "type": "string"
          }
         },
         "required": [
          "countryOfOriginLowValueDocumentRequested",
          "customsRole"
         ]
        }
       },
       "required": [
        "usmcaLowValueStatementDetail"
       ]
      },
      "dutiesPayment": {
       "type": "object",
       "properties": {
        "billingDetails": {
         "type": "object",
         "properties": {
          "accountNickname": {
           "type": "string"
          },
          "accountNumber": {
           "type": "string"
          },
          "accountNumberCountryCode": {
           "type": "string"
          },
          "aliasId": {
           "type": "string"
          },
          "billingCode": {
           "type": "string"
          },
          "billingType": {
           "type": "string"
          }
         }
        },
        "paymentType": {
         "type": "string"
        },
        "payor": {
         "type": "object",
         "properties": {
          "responsibleParty": {
           "type": "object",
           "properties": {
            "accountNumber": {
             "type": "object",
             "properties": {
              "value": {
               "type": "string"
              }
             },
             "required": [
              "value"
             ]
            },
            "address": {
             "type": "object",
             "properties": {
              "city": {
               "type": "string"
              },
              "countryCode": {
               "type": "string"
              },
              "postalCode": {
               "type": [
                "string",
                "integer"
               ],
               "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
              },
              "residential": {
               "type": "boolean"
              },
              "stateOrProvinceCode": {
               "type": "string"
              },
              "streetLines": {
               "type": "array",
               "items": {
                "type": "string"
               }
              }
             },
             "required": [
              "city",
              "countryCode",
              "stateOrProvinceCode",
              "streetLines"
             ]
            },
            "contact": {
             "type": "object",
             "properties": {
              "companyName": {
               "type": "string"
              },
              "emailAddress": {
               "type": "string"
              },
              "personName": {
               "type": "string"
              },
              "phoneExtension": {
               "type": [
                "integer",
                "string"
               ]
              },
              "phoneNumber": {
               "type": [
                "integer",
                "string"
               ]
              }
             },
             "required": [
              "phoneNumber"
             ]
            },
            "tins": {
             "type": "array",
             "items": {
              "type": "object",
              "properties": {
               "effectiveDate": {
                "type": "string",
                "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
               },
               "expirationDate": {
                "type": "string",
                "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
               },
               "number": {
                "type": "string"
               },
               "tinType": {
                "enum": [
                 "PERSONAL_NATIONAL",
                 "PERSONAL_STATE",
                 "FEDERAL",
                 "BUSINESS_NATIONAL",
                 "BUSINESS_STATE",
                 "BUSINESS_UNION"
                ]
               },
               "usage": {
                "type": "string"
               }
              }
             }
            }
           },
           "required": [
            "accountNumber"
           ]
          }
         }
        }
       }
      },
      "exportDetail": {
       "type": "object",
       "properties": {
        "b13AFilingOption": {
         "type": "string"
        },
        "destinationControlDetail": {
         "type": "object",
         "properties": {
          "destinationCountries": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "endUser": {
           "type": "string"
          },
          "statementTypes": {
           "type": "string"
          }
         }
        },
        "exportComplianceStatement": {
         "type": "string"
        },
        "permitNumber": {
         "type": "string"
        }
       }
      },
      "freightOnValue": {
       "type": "string"
      },
      "generatedDocumentLocale": {
       "type": "string"
      },
      "importerOfRecord": {
       "type": "object",
       "properties": {
        "accountNumber": {
         "type": "object",
         "properties": {
          "value": {
           "type": "string"
          }
         },
         "required": [
          "value"
         ]
        },
        "address": {
         "type": "object",
         "properties": {
          "city": {
           "type": "string"
          },
          "countryCode": {
           "type": "string"
          },
          "postalCode": {
           "type": [
            "string",
            "integer"
           ],
           "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
          },
          "residential": {
           "type": "boolean"
          },
          "stateOrProvinceCode": {
           "type": "string"
          },
          "streetLines": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         },
         "required": [
          "city",
          "countryCode",
          "stateOrProvinceCode",
          "streetLines"
         ]
        },
        "contact": {
         "type": "object",
         "properties": {
          "companyName": {
           "type": "string"
          },
          "emailAddress": {
           "type": "string"
          },
          "personName": {
           "type": "string"
          },
          "phoneExtension": {
           "type": [
            "integer",
            "string"
           ]
          },
          "phoneNumber": {
           "type": [
            "integer",
            "string"
           ]
          }
         },
         "required": [
          "phoneNumber"
         ]
        },
        "tins": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "effectiveDate": {
            "type": "string",
            "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
           },
           "expirationDate": {
            "type": "string",
            "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
           },
           "number": {
            "type": "string"
           },
           "tinType": {
            "enum": [
             "PERSONAL_NATIONAL",
             "PERSONAL_STATE",
             "FEDERAL",
             "BUSINESS_NATIONAL",
             "BUSINESS_STATE",
             "BUSINESS_UNION"
            ]
           },
           "usage": {
            "type": "string"
           }
          }
         }
        }
       },
       "required": [
        "accountNumber"
       ]
      },
      "insuranceCharge": {
       "type": "object",
       "properties": {
        "amount": {
         "type": "number"
        },
        "currency": {
         "type": "string"
        }
       }
      },
      "isDocumentOnly": {
       "type": "boolean"
      },
      "partiesToTransactionAreRelated": {
       "type": "boolean"
      },
      "recipientCustomsId": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string"
        },
        "value": {
         "type": "string"
        }
       },
       "required": [
        "type",
        "value"
       ]
      },
      "regulatoryControls": {
       "type": "array",
       "items": {
        "enum": [
         "FOOD_OR_PERISHABLE",
         "USMCA",
         "NOT_APPLICABLE_FOR_LOW_VALUE_CUSTOMS_EXCEPTIONS",
         "NOT_IN_FREE_CIRCULATION"
        ]
       }
      },
      "totalCustomsValue": {
       "type": "object",
       "properties": {
        "amount": {
         "type": "number"
        },
        "currency": {
         "type": "string"
        }
       },
       "required": [
        "amount",
        "currency"
       ]
      }
     },
     "required": [
      "commodities",
      "totalCustomsValue"
     ]
    },
    "emailNotificationDetail": {
     "type": "object",
     "properties": {
      "aggregationType": {
       "type": "string"
      },
      "emailNotificationRecipients": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "emailAddress": {
          "type": "string"
         },
         "emailNotificationRecipientType": {
          "type": "string"
         },
         "locale": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "notificationEventType": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "notificationFormatType": {
          "type": "string"
         },
         "notificationType": {
          "type": "string"
         }
        }
       }
      },
      "personalMessage": {
       "type": "string"
      }
     }
    },
    "freightShipmentDetail": {
     "type": "object",
     "properties": {
      "aliasID": {
       "type": "string"
      },
      "alternateBillingParty": {
       "type": "object",
       "properties": {
        "accountNumber": {
         "type": "object",
         "properties": {
          "value": {
           "type": "string"
          }
         },
         "required": [
          "value"
         ]
        },
        "address": {
         "type": "object",
         "properties": {
          "city": {
           "type": "string"
          },
          "countryCode": {
           "type": "string"
          },
          "postalCode": {
           "type": [
            "string",
            "integer"
           ],
           "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
          },
          "residential": {
           "type": "boolean"
          },
          "stateOrProvinceCode": {
           "type": "string"
          },
          "streetLines": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         },
         "required": [
          "city",
          "countryCode",
          "stateOrProvinceCode",
          "streetLines"
         ]
        },
        "contact": {
         "type": "object",
         "properties": {
          "companyName": {
           "type": "string"
          },
          "emailAddress": {
           "type": "string"
          },
          "personName": {
           "type": "string"
          },
          "phoneExtension": {
           "type": [
            "integer",
            "string"
           ]
          },
          "phoneNumber": {
           "type": [
            "integer",
            "string"
           ]
          }
         },
         "required": [
          "phoneNumber"
         ]
        },
        "tins": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "effectiveDate": {
            "type": "string",
            "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
           },
           "expirationDate": {
            "type": "string",
            "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
           },
           "number": {
            "type": "string"
           },
           "tinType": {
            "enum": [
             "PERSONAL_NATIONAL",
             "PERSONAL_STATE",
             "FEDERAL",
             "BUSINESS_NATIONAL",
             "BUSINESS_STATE",
             "BUSINESS_UNION"
            ]
           },
           "usage": {
            "type": "string"
           }
          }
         }
        }
       },
       "required": [
        "accountNumber"
       ]
      },
      "clientDiscountPercent": {
       "type": "number"
      },
      "collectTermsType": {
       "type": "string"
      },
      "coupons": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "declaredValuePerUnit": {
       "type": "object",
       "properties": {
        "amount": {
         "type": "number"
        },
        "currency": {
         "type": "string"
        }
       },
       "required": [
        "amount",
        "currency"
       ]
      },
      "declaredValueUnits": {
       "type": "string"
      },
      "fedExFreightAccountNumber": {
       "type": "object",
       "properties": {
        "value": {
         "type": "string"
        }
       },
       "required": [
        "value"
       ]
      },
      "fedExFreightBillingContactAndAddress": {
       "type": "object",
       "properties": {
        "address": {
         "type": "object",
         "properties": {
          "city": {
           "type": "string"
          },
          "countryCode": {
           "type": "string"
          },
          "postalCode": {
           "type": [
            "string",
            "integer"
           ],
           "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
          },
          "residential": {
           "type": "boolean"
          },
          "stateOrProvinceCode": {
           "type": "string"
          },
          "streetLines": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         },
         "required": [
          "city",
          "countryCode",
          "stateOrProvinceCode",
          "streetLines"
         ]
        },
        "contact": {
         "type": "object",
         "properties": {
          "companyName": {
           "type": "string"
          },
          "emailAddress": {
           "type": "string"
          },
          "personName": {
           "type": "string"
          },
          "phoneExtension": {
           "type": [
            "integer",
            "string"
           ]
          },
          "phoneNumber": {
           "type": [
            "integer",
            "string"
           ]
          }
         },
         "required": [
          "phoneNumber"
         ]
        }
       }
      },
      "hazardousMaterialsEmergencyContactNumber": {
       "type": "object",
       "properties": {
        "areaCode": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "extension": {
         "type": "string"
        },
        "localNumber": {
         "type": "string"
        },
        "personalIdentificationNumber": {
         "type": "string"
        }
       },
       "required": [
        "areaCode",
        "countryCode",
        "extension",
        "localNumber",
        "personalIdentificationNumber"
       ]
      },
      "hazardousMaterialsOfferor": {
       "type": "string"
      },
      "liabilityCoverageDetail": {
       "type": "object",
       "properties": {
        "coverageAmount": {
         "type": "object",
         "properties": {
          "amount": {
           "type": "number"
          },
          "currency": {
           "type": "string"
          }
         },
         "required": [
          "amount",
          "currency"
         ]
        },
        "coverageType": {
         "type": "string"
        }
       },
       "required": [
        "coverageAmount",
        "coverageType"
       ]
      },
      "lineItem": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "classProvidedByCustomer": {
          "type": "boolean"
         },
         "description": {
          "type": "string"
         },
         "dimensions": {
          "type": "object",
          "properties": {
           "height": {
            "type": "integer"
           },
           "length": {
            "type": "integer"
           },
           "units": {
            "type": "string"
           },
           "width": {
            "type": "integer"
           }
          },
          "required": [
           "height",
           "length",
           "units",
           "width"
          ]
         },
         "freightClass": {
          "type": "string"
         },
         "handlingUnits": {
          "type": "integer"
         },
         "hazardousMaterials": {
          "type": "string"
         },
         "id": {
          "type": "string"
         },
         "nmfcCode": {
          "type": "string"
         },
         "pieces": {
          "type": "integer"
         },
         "purchaseOrderNumber": {
          "type": "string"
         },
         "subPackagingType": {
          "type": "string"
         },
         "volume": {
          "type": "object",
          "properties": {
           "units": {
            "type": "string"
           },
           "value": {
            "type": "number"
           }
          },
          "required": [
           "units",
           "value"
          ]
         },
         "weight": {
          "type": "object",
          "properties": {
           "units": {
            "type": "string"
           },
           "value": {
            "type": "number"
           }
          },
          "required": [
           "units",
           "value"
          ]
         }
        },
        "required": [
         "description",
         "dimensions",
         "freightClass",
         "handlingUnits",
         "id",
         "pieces",
         "subPackagingType",
         "weight"
        ]
       }
      },
      "printedReferences": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "printedReferenceType": {
          "type": "string"
         },
         "value": {
          "type": "string"
         }
        },
        "required": [
         "printedReferenceType",
         "value"
        ]
       }
      },
      "role": {
       "type": "string"
      },
      "specialServicePayments": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "paymentType": {
          "type": "string"
         },
         "specialService": {
          "type": "string"
         }
        }
       }
      },
      "totalHandlingUnits": {
       "type": "integer"
      }
     },
     "required": [
      "fedExFreightAccountNumber",
      "fedExFreightBillingContactAndAddress",
      "lineItem",
      "printedReferences"
     ]
    },
    "freightShipmentSpecialServices": {
     "type": "object",
     "properties": {
      "customDeliveryWindowDetail": {
       "type": "object",
       "properties": {
        "requestDate": {
         "type": "string"
        },
        "requestRange": {
         "type": "object",
         "properties": {
          "begins": {
           "type": "string"
          },
          "ends": {
           "type": "string"
          }
         },
         "required": [
          "begins",
          "ends"
         ]
        },
        "requestTime": {
         "type": "string"
        },
        "type": {
         "type": "string"
        }
       }
      },
      "freightDirectDetail": {
       "type": "object",
       "properties": {
        "freightDirectDataDetails": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "emailAddress": {
            "type": "string"
           },
           "phoneNumberDetails": {
            "type": "array",
            "items": {
             "type": "object",
             "properties": {
              "phoneNumber": {
               "type": [
                "integer",
                "string"
               ]
              },
              "phoneNumberType": {
               "type": "string"
              }
             }
            }
           },
           "transportationType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          }
         }
        }
       }
      },
      "freightGuaranteeDetail": {
       "type": "object",
       "properties": {
        "freightGuaranteeType": {
         "type": "string"
        },
        "guaranteeTimestamp": {
         "type": "string"
        }
       },
       "required": [
        "freightGuaranteeType",
        "guaranteeTimestamp"
       ]
      },
      "specialServiceTypes": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    },
    "labelSpecification": {
     "type": "object",
     "properties": {
      "customerSpecifiedDetail": {
       "type": "object",
       "properties": {
        "additionalLabels": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "count": {
            "type": "integer"
           },
           "type": {
            "enum": [
             "BROKER",
             "CONSIGNEE",
             "CUSTOMS",
             "DESTINATION",
             "DESTINATION_CONTROL_STATEMENT",
             "FREIGHT_REFERENCE",
             "MANIFEST",
             "ORIGIN",
             "RECIPIENT",
             "SECOND_ADDRESS",
             "SHIPPER"
            ]
           }
          }
         }
        },
        "docTabContent": {
         "type": "object",
         "properties": {
          "barcoded": {
           "type": "object",
           "properties": {
            "specification": {
             "type": "array",
             "items": {
              "type": "object",
              "properties": {
               "dataField": {
                "type": "string"
               },
               "header": {
                "type": "string"
               },
               "justification": {
                "enum": [
                 "LEFT",
                 "RIGHT"
                ]
               },
               "literalValue": {
                "type": "string"
               },
               "zoneNumber": {
                "type": "integer"
               }
              },
              "required": [
               "justification"
              ]
             }
            },
            "symbology": {
             "enum": [
              "CODABAR",
              "CODE128",
              "CODE128_WIDEBAR",
              "CODE128B",
              "CODE128C",
              "CODE39",
              "CODE93",
              "I2OF5",
              "MANUAL",
              "PDF417",
              "POSTNET",
              "QR_CODE",
              "UCC128"
             ]
            }
           }
          },
          "docTabContentType": {
           "enum": [
            "BARCODED",
            "CUSTOM",
            "MINIMUM",
            "STANDARD",
            "ZONE001"
           ]
          },
          "zone001": {
           "type": "object",
           "properties": {
            "docTabZoneSpecifications": {
             "type": "array",
             "items": {
              "type": "object",
              "properties": {
               "dataField": {
                "type": "string"
               },
               "header": {
                "type": "string"
               },
               "justification": {
                "enum": [
                 "LEFT",
                 "RIGHT"
                ]
               },
               "literalValue": {
                "type": "string"
               },
               "zoneNumber": {
                "type": "integer"
               }
              },
              "required": [
               "justification"
              ]
             }
            }
           }
          }
         }
        },
        "maskedData": {
         "type": "array",
         "items": {
          "enum": [
           "CUSTOMS_VALUE",
           "DIMENSIONS",
           "DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER",
           "INSURED_VALUE",
           "SECONDARY_BARCODE",
           "SHIPPER_INFORMATION",
           "TERMS_AND_CONDITIONS",
           "TOTAL_WEIGHT",
           "TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER"
          ]
         }
        },
        "regulatoryLabels": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "generationOptions": {
            "enum": [
             "CONTENT_ON_SHIPPING_LABEL_PREFERRED",
             "CONTENT_ON_SUPPLEMENTAL_LABEL_ONLY",
             "CONTENT_ON_SHIPPING_LABEL_ONLY"
            ]
           },
           "type": {
            "type": "string",
            "description": "Specify the type of regulatory content to be added on the label. e.g. ALCOHOL_SHIPMENT_LABEL"
           }
          }
         }
        }
       }
      },
      "imageType": {
       "enum": [
        "ZPLII",
        "EPL2",
        "PDF",
        "PNG"
       ]
      },
      "labelFormatType": {
       "type": "string"
      },
      "labelOrder": {
       "type": "string"
      },
      "labelPrintingOrientation": {
       "enum": [
        "BOTTOM_EDGE_OF_TEXT_FIRST",
        "TOP_EDGE_OF_TEXT_FIRST"
       ]
      },
      "labelRotation": {
       "enum": [
        "LEFT",
        "RIGHT",
        "UPSIDE_DOWN",
        "NONE"
       ]
      },
      "labelStockType": {
       "enum": [
        "PAPER_4X6",
        "PAPER_4X675",
        "PAPER_4X8",
        "PAPER_4X9",
        "PAPER_7X475",
        "PAPER_85X11_BOTTOM_HALF_LABEL",
        "PAPER_85X11_TOP_HALF_LABEL",
        "PAPER_LETTER",
        "STOCK_4X675_LEADING_DOC_TAB",
        "STOCK_4X8",
        "STOCK_4X9_LEADING_DOC_TAB",
        "STOCK_4X6",
        "STOCK_4X675_TRAILING_DOC_TAB",
        "STOCK_4X9_TRAILING_DOC_TAB",
        "STOCK_4X675",
        "STOCK_4X9",
        "PAPER_LETTER"
       ]
      },
      "printedLabelOrigin": {
       "type": "object",
       "properties": {
        "address": {
         "type": "object",
         "properties": {
          "city": {
           "type": "string"
          },
          "countryCode": {
           "type": "string"
          },
          "postalCode": {
           "type": [
            "string",
            "integer"
           ],
           "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
          },
          "residential": {
           "type": "boolean"
          },
          "stateOrProvinceCode": {
           "type": "string"
          },
          "streetLines": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        },
        "contact": {
         "type": "object",
         "properties": {
          "companyName": {
           "type": "string"
          },
          "emailAddress": {
           "type": "string"
          },
          "faxNumber": {
           "type": "string"
          },
          "personName": {
           "type": "string"
          },
          "phoneExtension": {
           "type": [
            "integer",
            "string"
           ]
          },
          "phoneNumber": {
           "type": [
            "integer",
            "string"
           ]
          }
         }
        }
       }
      },
      "resolution": {
       "type": "integer"
      },
      "returnedDispositionDetail": {
       "type": "boolean"
      }
     },
     "required": [
      "imageType",
      "labelFormatType",
      "labelStockType"
     ]
    },
    "masterTrackingId": {
     "type": "object",
     "properties": {
      "formId": {
       "type": "string"
      },
      "trackingIdType": {
       "type": "string"
      },
      "trackingNumber": {
       "type": "string"
      },
      "uspsApplicationId": {
       "type": "string"
      }
     }
    },
    "origin": {
     "type": "object",
     "properties": {
      "address": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "postalCode": {
         "type": [
          "string",
          "integer"
         ],
         "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
        },
        "residential": {
         "type": "boolean"
        },
        "stateOrProvinceCode": {
         "type": "string"
        },
        "streetLines": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       },
       "required": [
        "city",
        "countryCode",
        "stateOrProvinceCode",
        "streetLines"
       ]
      },
      "contact": {
       "type": "object",
       "properties": {
        "companyName": {
         "type": "string"
        },
        "emailAddress": {
         "type": "string"
        },
        "personName": {
         "type": "string"
        },
        "phoneExtension": {
         "type": [
          "integer",
          "string"
         ]
        },
        "phoneNumber": {
         "type": [
          "integer",
          "string"
         ]
        }
       },
       "required": [
        "phoneNumber"
       ]
      }
     }
    },
    "packagingType": {
     "type": "string"
    },
    "pickupType": {
     "type": "string"
    },
    "preferredCurrency": {
     "type": "string"
    },
    "rateRequestType": {
     "type": "array",
     "items": {
      "enum": [
       "LIST",
       "NONE",
       "PREFERRED",
       "ACCOUNT",
       "INCENTIVE",
       "RETAIL"
      ]
     }
    },
    "recipient": {
     "type": "object",
     "properties": {
      "address": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "postalCode": {
         "type": [
          "string",
          "integer"
         ],
         "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
        },
        "residential": {
         "type": "boolean"
        },
        "stateOrProvinceCode": {
         "type": "string"
        },
        "streetLines": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       },
       "required": [
        "city",
        "countryCode",
        "stateOrProvinceCode",
        "streetLines"
       ]
      },
      "contact": {
       "type": "object",
       "properties": {
        "companyName": {
         "type": "string"
        },
        "emailAddress": {
         "type": "string"
        },
        "personName": {
         "type": "string"
        },
        "phoneExtension": {
         "type": [
          "integer",
          "string"
         ]
        },
        "phoneNumber": {
         "type": [
          "integer",
          "string"
         ]
        }
       },
       "required": [
        "phoneNumber"
       ]
      },
      "deliveryInstructions": {
       "type": "string"
      },
      "tins": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "effectiveDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "expirationDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "number": {
          "type": "string"
         },
         "tinType": {
          "enum": [
           "PERSONAL_NATIONAL",
           "PERSONAL_STATE",
           "FEDERAL",
           "BUSINESS_NATIONAL",
           "BUSINESS_STATE",
           "BUSINESS_UNION"
          ]
         },
         "usage": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "requestedPackageLineItems": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "associatedFreightLineItems": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "id": {
           "type": "string"
          }
         },
         "required": [
          "id"
         ]
        }
       },
       "contentRecord": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "description": {
           "type": "string"
          },
          "itemNumber": {
           "type": "string"
          },
          "partNumber": {
           "type": "string"
          },
          "receivedQuantity": {
           "type": "integer"
          }
         },
         "required": []
        }
       },
       "customerReferences": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "customerReferenceType": {
           "enum": [
            "CUSTOMER_REFERENCE",
            "DEPARTMNET_NUMBER",
            "INVOICE_NUMBER",
            "P_O_NUMBER",
            "INTRACOUNTRY_REGULATORY_REFERENCE",
            "RMA_ASSOCIATION",
            "SHIPMENT_INTEGRITY"
           ]
          },
          "value": {
           "type": "string"
          }
         },
         "required": [
          "customerReferenceType",
          "value"
         ]
        }
       },
       "declaredValue": {
        "type": "object",
        "properties": {
         "amount": {
          "type": "number"
         },
         "currency": {
          "type": "string"
         }
        },
        "required": [
         "amount",
         "currency"
        ]
       },
       "dimensions": {
        "type": "object",
        "properties": {
         "height": {
          "type": "integer"
         },
         "length": {
          "type": "integer"
         },
         "units": {
          "type": "string"
         },
         "width": {
          "type": "integer"
         }
        },
        "required": [
         "height",
         "length",
         "units",
         "width"
        ]
       },
       "groupPackageCount": {
        "type": "integer"
       },
       "itemDescription": {
        "type": "string"
       },
       "itemDescriptionForClearance": {
        "type": "string"
       },
       "physicalPackaging": {
        "type": "string"
       },
       "sequenceNumber": {
        "type": "string"
       },
       "subPackagingType": {
        "enum": [
         "BAG",
         "BARREL",
         "BASKET",
         "BOX",
         "BUCKET",
         "BUNDLE",
         "CAGE",
         "CARTON",
         "CASE",
         "CHEST",
         "CONTAINER",
         "CRATE",
         "CYLINDER",
         "DRUM",
         "ENVELOPE",
         "HAMPER",
         "OTHER",
         "PACKAGE",
         "PAIL",
         "PALLET",
         "PARCEL",
         "PIECE",
         "REEL",
         "ROLL",
         "SACK",
         "SHRINK_WRAPPED",
         "SKID",
         "TANK",
         "TOTE_BIN",
         "TUBE",
         "UNIT"
        ]
       },
       "variableHandlingChargeDetail": {
        "type": "object",
        "properties": {
         "fixedValue": {
          "type": "object",
          "properties": {
           "amount": {
            "type": "number"
           },
           "currency": {
            "type": "string"
           }
          },
          "required": [
           "amount",
           "currency"
          ]
         },
         "percentValue": {
          "type": "number"
         },
         "rateElementBasis": {
          "type": "string"
         },
         "rateLevelType": {
          "type": "string"
         },
         "rateType": {
          "type": "string"
         }
        }
       },
       "weight": {
        "type": "object",
        "properties": {
         "units": {
          "type": "string"
         },
         "value": {
          "type": "number"
         }
        },
        "required": [
         "units",
         "value"
        ]
       }
      },
      "required": [
       "associatedFreightLineItems",
       "subPackagingType",
       "weight"
      ]
     }
    },
    "serviceType": {
     "type": "string"
    },
    "shipDatestamp": {
     "type": "string"
    },
    "shipper": {
     "type": "object",
     "properties": {
      "address": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "postalCode": {
         "type": [
          "string",
          "integer"
         ],
         "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
        },
        "residential": {
         "type": "boolean"
        },
        "stateOrProvinceCode": {
         "type": "string"
        },
        "streetLines": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       },
       "required": [
        "city",
        "countryCode",
        "stateOrProvinceCode",
        "streetLines"
       ]
      },
      "contact": {
       "type": "object",
       "properties": {
        "companyName": {
         "type": "string"
        },
        "emailAddress": {
         "type": "string"
        },
        "personName": {
         "type": "string"
        },
        "phoneExtension": {
         "type": [
          "integer",
          "string"
         ]
        },
        "phoneNumber": {
         "type": [
          "integer",
          "string"
         ]
        }
       },
       "required": [
        "phoneNumber"
       ]
      },
      "deliveryInstructions": {
       "type": "string"
      },
      "tins": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "effectiveDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "expirationDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "number": {
          "type": "string"
         },
         "tinType": {
          "enum": [
           "PERSONAL_NATIONAL",
           "PERSONAL_STATE",
           "FEDERAL",
           "BUSINESS_NATIONAL",
           "BUSINESS_STATE",
           "BUSINESS_UNION"
          ]
         },
         "usage": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "shippingChargesPayment": {
     "type": "object",
     "properties": {
      "billingDetails": {
       "type": "object",
       "properties": {
        "accountNickname": {
         "type": "string"
        },
        "accountNumber": {
         "type": "string"
        },
        "accountNumberCountryCode": {
         "type": "string"
        },
        "aliasId": {
         "type": "string"
        },
        "billingCode": {
         "type": "string"
        },
        "billingType": {
         "type": "string"
        }
       }
      },
      "paymentType": {
       "type": "string"
      },
      "payor": {
       "type": "object",
       "properties": {
        "responsibleParty": {
         "type": "object",
         "properties": {
          "accountNumber": {
           "type": "object",
           "properties": {
            "value": {
             "type": "string"
            }
           },
           "required": [
            "value"
           ]
          },
          "address": {
           "type": "object",
           "properties": {
            "city": {
             "type": "string"
            },
            "countryCode": {
             "type": "string"
            },
            "postalCode": {
             "type": [
              "string",
              "integer"
             ],
             "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
            },
            "residential": {
             "type": "boolean"
            },
            "stateOrProvinceCode": {
             "type": "string"
            },
            "streetLines": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "city",
            "countryCode",
            "stateOrProvinceCode",
            "streetLines"
           ]
          },
          "contact": {
           "type": "object",
           "properties": {
            "companyName": {
             "type": "string"
            },
            "emailAddress": {
             "type": "string"
            },
            "personName": {
             "type": "string"
            },
            "phoneExtension": {
             "type": [
              "integer",
              "string"
             ]
            },
            "phoneNumber": {
             "type": [
              "integer",
              "string"
             ]
            }
           },
           "required": [
            "phoneNumber"
           ]
          }
         },
         "required": [
          "accountNumber"
         ]
        }
       },
       "required": [
        "responsibleParty"
       ]
      }
     },
     "required": [
      "payor"
     ]
    },
    "shippingDocumentSpecification": {
     "type": "object",
     "properties": {
      "certificateOfOrigin": {
       "type": "object",
       "properties": {
        "customerImageUsages": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "providedImageType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          },
          "required": [
           "id",
           "providedImageType",
           "type"
          ]
         }
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            }
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        }
       }
      },
      "commercialInvoiceDetail": {
       "type": "object",
       "properties": {
        "customerImageUsages": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "providedImageType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          },
          "required": [
           "id",
           "providedImageType",
           "type"
          ]
         }
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        }
       }
      },
      "freightAddressLabelDetail": {
       "type": "object",
       "properties": {
        "copies": {
         "type": "integer"
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        },
        "startingPosition": {
         "type": "string"
        }
       },
       "required": [
        "documentFormat"
       ]
      },
      "freightBillOfLadingDetail": {
       "type": "object",
       "properties": {
        "format": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        }
       },
       "required": [
        "format"
       ]
      },
      "generalAgencyAgreementDetail": {
       "type": "object",
       "properties": {
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        }
       },
       "required": [
        "documentFormat"
       ]
      },
      "op900Detail": {
       "type": "object",
       "properties": {
        "customerImageUsages": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "providedImageType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          },
          "required": [
           "id",
           "providedImageType",
           "type"
          ]
         }
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        },
        "signatureName": {
         "type": "string"
        }
       },
       "required": [
        "customerImageUsages",
        "documentFormat",
        "signatureName"
       ]
      },
      "shippingDocumentTypes": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "usmcaCertificationOfOriginDetail": {
       "type": "object",
       "properties": {
        "blanketPeriod": {
         "type": "object",
         "properties": {
          "begins": {
           "type": "string"
          },
          "ends": {
           "type": "string"
          }
         },
         "required": [
          "begins",
          "ends"
         ]
        },
        "certifierJobTitle": {
         "type": "string"
        },
        "certifierSpecification": {
         "type": "string"
        },
        "customerImageUsages": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "providedImageType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          },
          "required": [
           "id",
           "providedImageType",
           "type"
          ]
         }
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        },
        "importerSpecification": {
         "type": "string"
        },
        "producer": {
         "type": "object",
         "properties": {
          "accountNumber": {
           "type": "object",
           "properties": {
            "value": {
             "type": "string"
            }
           },
           "required": [
            "value"
           ]
          },
          "address": {
           "type": "object",
           "properties": {
            "city": {
             "type": "string"
            },
            "countryCode": {
             "type": "string"
            },
            "postalCode": {
             "type": [
              "string",
              "integer"
             ],
             "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
            },
            "residential": {
             "type": "boolean"
            },
            "stateOrProvinceCode": {
             "type": "string"
            },
            "streetLines": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "city",
            "countryCode",
            "stateOrProvinceCode",
            "streetLines"
           ]
          },
          "contact": {
           "type": "object",
           "properties": {
            "companyName": {
             "type": "string"
            },
            "emailAddress": {
             "type": "string"
            },
            "personName": {
             "type": "string"
            },
            "phoneExtension": {
             "type": [
              "integer",
              "string"
             ]
            },
            "phoneNumber": {
             "type": [
              "integer",
              "string"
             ]
            }
           },
           "required": [
            "phoneNumber"
           ]
          },
          "tins": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "effectiveDate": {
              "type": "string",
              "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
             },
             "expirationDate": {
              "type": "string",
              "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
             },
             "number": {
              "type": "string"
             },
             "tinType": {
              "enum": [
               "PERSONAL_NATIONAL",
               "PERSONAL_STATE",
               "FEDERAL",
               "BUSINESS_NATIONAL",
               "BUSINESS_STATE",
               "BUSINESS_UNION"
              ]
             },
             "usage": {
              "type": "string"
             }
            }
           }
          }
         },
         "required": [
          "accountNumber"
         ]
        },
        "producerSpecification": {
         "type": "string"
        }
       },
       "required": [
        "documentFormat"
       ]
      },
      "usmcaCommercialInvoiceCertificationOfOriginDetail": {
       "type": "object",
       "properties": {
        "certifierJobTitle": {
         "type": "string"
        },
        "certifierSpecification": {
         "type": "string"
        },
        "customerImageUsages": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "providedImageType": {
            "type": "string"
           },
           "type": {
            "type": "string"
           }
          },
          "required": [
           "id",
           "providedImageType",
           "type"
          ]
         }
        },
        "documentFormat": {
         "type": "object",
         "properties": {
          "dispositions": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "dispositionType": {
              "type": "string"
             },
             "eMailDetail": {
              "type": "object",
              "properties": {
               "eMailRecipients": {
                "type": "array",
                "items": {
                 "type": "object",
                 "properties": {
                  "emailAddress": {
                   "type": "string"
                  },
                  "recipientType": {
                   "type": "string"
                  }
                 },
                 "required": [
                  "emailAddress",
                  "recipientType"
                 ]
                }
               },
               "grouping": {
                "type": "string"
               },
               "locale": {
                "type": "string"
               }
              },
              "required": [
               "eMailRecipients",
               "grouping",
               "locale"
              ]
             }
            },
            "required": [
             "dispositionType",
             "eMailDetail"
            ]
           }
          },
          "docType": {
           "type": "string"
          },
          "locale": {
           "type": "string"
          },
          "optionsRequested": {
           "type": "object",
           "properties": {
            "options": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "options"
           ]
          },
          "provideInstructions": {
           "type": "boolean"
          },
          "stockType": {
           "type": "string"
          }
         },
         "required": [
          "docType",
          "stockType"
         ]
        },
        "importerSpecification": {
         "type": "string"
        },
        "producer": {
         "type": "object",
         "properties": {
          "accountNumber": {
           "type": "object",
           "properties": {
            "value": {
             "type": "string"
            }
           },
           "required": [
            "value"
           ]
          },
          "address": {
           "type": "object",
           "properties": {
            "city": {
             "type": "string"
            },
            "countryCode": {
             "type": "string"
            },
            "postalCode": {
             "type": [
              "string",
              "integer"
             ],
             "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
            },
            "residential": {
             "type": "boolean"
            },
            "stateOrProvinceCode": {
             "type": "string"
            },
            "streetLines": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           },
           "required": [
            "city",
            "countryCode",
            "stateOrProvinceCode",
            "streetLines"
           ]
          },
          "contact": {
           "type": "object",
           "properties": {
            "companyName": {
             "type": "string"
            },
            "emailAddress": {
             "type": "string"
            },
            "personName": {
             "type": "string"
            },
            "phoneExtension": {
             "type": [
              "integer",
              "string"
             ]
            },
            "phoneNumber": {
             "type": [
              "integer",
              "string"
             ]
            }
           },
           "required": [
            "phoneNumber"
           ]
          },
          "tins": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "effectiveDate": {
              "type": "string",
              "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
             },
             "expirationDate": {
              "type": "string",
              "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
             },
             "number": {
              "type": "string"
             },
             "tinType": {
              "enum": [
               "PERSONAL_NATIONAL",
               "PERSONAL_STATE",
               "FEDERAL",
               "BUSINESS_NATIONAL",
               "BUSINESS_STATE",
               "BUSINESS_UNION"
              ]
             },
             "usage": {
              "type": "string"
             }
            }
           }
          }
         },
         "required": [
          "accountNumber"
         ]
        },
        "producerSpecification": {
         "type": "string"
        }
       },
       "required": [
        "documentFormat"
       ]
      }
     },
     "required": [
      "freightBillOfLadingDetail",
      "shippingDocumentTypes"
     ]
    },
    "soldTo": {
     "type": "object",
     "properties": {
      "accountNumber": {
       "type": "object",
       "properties": {
        "value": {
         "type": "string"
        }
       },
       "required": [
        "value"
       ]
      },
      "address": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "countryCode": {
         "type": "string"
        },
        "postalCode": {
         "type": [
          "string",
          "integer"
         ],
         "pattern": "(?:\\d{5}(?:[-]?\\d{4})?)|(?:(?:[A-Za-z][0-9][A-Za-z][0-9][A-Za-z])[0-9]?)"
        },
        "residential": {
         "type": "boolean"
        },
        "stateOrProvinceCode": {
         "type": "string"
        },
        "streetLines": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       },
       "required": [
        "city",
        "countryCode",
        "stateOrProvinceCode",
        "streetLines"
       ]
      },
      "contact": {
       "type": "object",
       "properties": {
        "companyName": {
         "type": "string"
        },
        "emailAddress": {
         "type": "string"
        },
        "personName": {
         "type": "string"
        },
        "phoneExtension": {
         "type": [
          "integer",
          "string"
         ]
        },
        "phoneNumber": {
         "type": [
          "integer",
          "string"
         ]
        }
       },
       "required": [
        "phoneNumber"
       ]
      },
      "tins": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "effectiveDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "expirationDate": {
          "type": "string",
          "pattern": "\\d{4}-\\d{2}-\\d{2}:T\\d{2}:\\d{2}:\\d{2}[.]\\d{3}[+-]\\d{2}:\\d{2}"
         },
         "number": {
          "type": "string"
         },
         "tinType": {
          "enum": [
           "PERSONAL_NATIONAL",
           "PERSONAL_STATE",
           "FEDERAL",
           "BUSINESS_NATIONAL",
           "BUSINESS_STATE",
           "BUSINESS_UNION"
          ]
         },
         "usage": {
          "type": "string"
         }
        }
       }
      }
     },
     "required": [
      "accountNumber"
     ]
    },
    "totalPackageCount": {
     "type": "integer"
    },
    "totalWeight": {
     "type": [
      "number",
      "string"
     ]
    },
    "variableHandlingChargeDetail": {
     "type": "object",
     "properties": {
      "fixedValue": {
       "type": "object",
       "properties": {
        "amount": {
         "type": "number"
        },
        "currency": {
         "type": "string"
        }
       },
       "required": [
        "amount",
        "currency"
       ]
      },
      "percentValue": {
       "type": "number"
      },
      "rateElementBasis": {
       "type": "string"
      },
      "rateLevelType": {
       "type": "string"
      },
      "rateType": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "freightShipmentDetail",
    "labelSpecification",
    "packagingType",
    "pickupType",
    "recipient",
    "requestedPackageLineItems",
    "serviceType",
    "shipper"
   ]
  },
  "labelResponseOptions": {
   "enum": [
    "URL_ONLY",
    "LABEL"
   ]
  },
  "oneLabelAtATime": {
   "type": "boolean"
  },
  "version": {
   "type": "object",
   "properties": {
    "major": {
     "type": "integer"
    },
    "minor": {
     "type": "integer"
    },
    "patch": {
     "type": "integer"
    }
   }
  }
 },
 "required": [
  "accountNumber",
  "freightRequestedShipment",
  "labelResponseOptions"
 ]
}