{
  "openapi": "3.0.4",
  "info": {
    "title": "PreClear.Api",
    "version": "1.0"
  },
  "paths": {
    "/v1/customs/acas/shipment": {
      "post": {
        "tags": [
          "Acas"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/acas/package": {
      "post": {
        "tags": [
          "Acas"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForPackagesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForPackagesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForPackagesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileAcasForPackagesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation": {
      "get": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "pattern": "Succeeded|Failed|Incomplete",
              "type": "string"
            }
          },
          {
            "name": "Pagination.Cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Pagination.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation/{operationId}": {
      "get": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation/{operationId}/status": {
      "get": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation/{operationId}/result": {
      "get": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation/{operationId}/result/content": {
      "get": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/package/screen": {
      "post": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/product/screen": {
      "post": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/shipment/register": {
      "post": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/operation/{operationId}/retry": {
      "post": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/async/test": {
      "post": {
        "tags": [
          "AsyncOperation"
        ],
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/TestAsyncOperationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestAsyncOperationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestAsyncOperationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestAsyncOperationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/document-delivery/deliver": {
      "post": {
        "tags": [
          "DocumentDelivery"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverShipmentDocumentToClientRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverShipmentDocumentToClientRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverShipmentDocumentToClientRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverShipmentDocumentToClientRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeliverShipmentDocumentToClientResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliverShipmentDocumentToClientResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliverShipmentDocumentToClientResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/document-delivery/poll": {
      "post": {
        "tags": [
          "DocumentDelivery"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PollShipmentDocumentDeliveryRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PollShipmentDocumentDeliveryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PollShipmentDocumentDeliveryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PollShipmentDocumentDeliveryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PollShipmentDocumentDeliveryResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PollShipmentDocumentDeliveryResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PollShipmentDocumentDeliveryResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/document-delivery/{provider}/download/{documentId}": {
      "get": {
        "tags": [
          "DocumentDelivery"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/duty/pay": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PayDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PayDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PayDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PayDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/balance": {
      "get": {
        "tags": [
          "DutyCollection"
        ],
        "parameters": [
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CheckLedgerAccountBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckLedgerAccountBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckLedgerAccountBalanceResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/collect": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CollectDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/remit": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemitDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemitDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemitDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/refund": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundAllDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundAllDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundAllDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundAllDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefundAllDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefundAllDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefundAllDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/refund-excess": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefundExcessDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefundExcessDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefundExcessDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/collect-missing": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CollectMissingDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectMissingDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectMissingDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/adjust": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdjustDutyForPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdjustDutyForPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdjustDutyForPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/shipment/{shipmentId}": {
      "get": {
        "tags": [
          "DutyCollection"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForPackagesBreakdownResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForPackagesBreakdownResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForPackagesBreakdownResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/shipments": {
      "get": {
        "tags": [
          "DutyCollection"
        ],
        "parameters": [
          {
            "name": "shipmentIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForShipmentsBreakdownResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForShipmentsBreakdownResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDutyStatusForShipmentsBreakdownResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/duty/shipment/collect": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectDutyForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/duty/shipment/remit": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemitDutyForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/duty/shipment/refund-excess": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefundExcessDutyForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/duty/shipment/collect-missing": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CollectMissingDutyForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/duty/shipment/adjust": {
      "post": {
        "tags": [
          "DutyCollection"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustDutyForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/entry/shipment": {
      "post": {
        "tags": [
          "Entry"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FileEntryForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileEntryForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileEntryForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileEntryForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/groups/generate": {
      "post": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryGroupsForShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/groups": {
      "get": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupsForShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupsForShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupsForShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/groups/{groupId}/packages": {
      "get": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupPackagesForShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupPackagesForShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEntryGroupPackagesForShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/packages/{packageId}/group": {
      "put": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SetPackageEntryGroupRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPackageEntryGroupRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPackageEntryGroupRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetPackageEntryGroupRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/sync": {
      "post": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncShipmentEntryStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncShipmentEntryStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncShipmentEntryStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncShipmentEntryStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/entry-line-numbers/backfill": {
      "post": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillEntryLineNumbersRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillEntryLineNumbersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillEntryLineNumbersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillEntryLineNumbersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillEntryLineNumbersResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillEntryLineNumbersResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillEntryLineNumbersResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/entries/backfill": {
      "post": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillShipmentEntriesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillShipmentEntriesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillShipmentEntriesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillShipmentEntriesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillShipmentEntriesResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillShipmentEntriesResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillShipmentEntriesResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/entry/shipment/{shipmentId}/pga-lines/repair": {
      "post": {
        "tags": [
          "Entry"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RepairPgaLinesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairPgaLinesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairPgaLinesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RepairPgaLinesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RepairPgaLinesResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairPgaLinesResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairPgaLinesResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entry-reference-file-delivery/shipment/generate": {
      "post": {
        "tags": [
          "EntryReferenceFileDelivery"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryReferenceFileRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryReferenceFileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryReferenceFileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryReferenceFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryReferenceFileResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryReferenceFileResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateEntryReferenceFileResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entry-reference-file-delivery/shipment/upload": {
      "post": {
        "tags": [
          "EntryReferenceFileDelivery"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadEntryReferenceFileRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadEntryReferenceFileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadEntryReferenceFileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadEntryReferenceFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UploadEntryReferenceFileResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadEntryReferenceFileResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadEntryReferenceFileResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entry-reference-file-delivery/{provider}/download/{fileName}": {
      "get": {
        "tags": [
          "EntryReferenceFileDelivery"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/failed-requests": {
      "get": {
        "tags": [
          "FailedRequests"
        ],
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Endpoint",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StatusCode",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/failed-requests/{id}": {
      "get": {
        "tags": [
          "FailedRequests"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/failed-requests/{id}/error-payload": {
      "get": {
        "tags": [
          "FailedRequests"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestErrorPayload"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestErrorPayload"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestErrorPayload"
                }
              }
            }
          }
        }
      }
    },
    "/v1/failed-requests/replay": {
      "post": {
        "tags": [
          "FailedRequests"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FailedRequestReplayRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FailedRequestReplayRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FailedRequestReplayRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FailedRequestReplayRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/failed-requests/{id}/replay": {
      "post": {
        "tags": [
          "FailedRequests"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedRequestReplayResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/shipment": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "parameters": [
          {
            "name": "PortOfEntry",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page.Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Page.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipment"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipment"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipment"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/shipment/summary": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "parameters": [
          {
            "name": "PortOfEntry",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "DaysBack",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "DaysAhead",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentSummary"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentSummary"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentSummary"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/shipment/{shipmentId}/bags": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentBag"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentBag"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentBag"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/shipment/{shipmentId}/packages": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ContainerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WithoutBag",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentPackage"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentPackage"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WarehouseShipmentPackage"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/package/unbagged": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnbaggedPackage"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnbaggedPackage"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnbaggedPackage"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/shipment/{shipmentId}": {
      "get": {
        "tags": [
          "Logistics"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseShipment"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseShipment"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseShipment"
                }
              }
            }
          }
        }
      }
    },
    "/v1/logistics/notification/send": {
      "post": {
        "tags": [
          "Logistics"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SendPickupShipmentNotificationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendPickupShipmentNotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendPickupShipmentNotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendPickupShipmentNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/manifest/shipment": {
      "post": {
        "tags": [
          "Manifest"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/manifest/package": {
      "post": {
        "tags": [
          "Manifest"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileManifestForPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Manifest"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelPackageManifestRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelPackageManifestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelPackageManifestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelPackageManifestRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/manifest/statuses/backfill": {
      "post": {
        "tags": [
          "Manifest"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillManifestStatusesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillManifestStatusesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillManifestStatusesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillManifestStatusesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillManifestStatusesResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillManifestStatusesResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillManifestStatusesResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/package": {
      "get": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "SipmentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExternalIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "TrackingNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomsEvent",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page.Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Page.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/package/{packageId}": {
      "get": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Package"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Package"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Package"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/update": {
      "post": {
        "tags": [
          "Package"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/{packageId}/events": {
      "post": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageEventRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageEventRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/events": {
      "post": {
        "tags": [
          "Package"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddPackageEventsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddPackageEventsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddPackageEventsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddPackageEventsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/{packageId}/duty-assessment": {
      "post": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageDutyAssessmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageDutyAssessmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageDutyAssessmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackageDutyAssessmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/{packageId}/link-products": {
      "patch": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkProductReferencesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkProductReferencesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkProductReferencesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkProductReferencesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/submit": {
      "post": {
        "tags": [
          "Package"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/LegacySubmitPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegacySubmitPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LegacySubmitPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LegacySubmitPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/package/document/upload": {
      "post": {
        "tags": [
          "Package"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientPackageDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientPackageDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientPackageDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientPackageDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/package/{packageId}/documents": {
      "get": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentsResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/package/{packageId}/documents/{resourceReference}": {
      "get": {
        "tags": [
          "Package"
        ],
        "parameters": [
          {
            "name": "PackageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ResourceReference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPackageDocumentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/package/screen": {
      "post": {
        "tags": [
          "PackageScreeningFacade"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/platform": {
      "get": {
        "tags": [
          "Platform"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Platform"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Platform"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Platform"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Platform"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlatformRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlatformRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlatformRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlatformRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "PreClear.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/version": {
      "get": {
        "tags": [
          "PreClear.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/product/screen": {
      "post": {
        "tags": [
          "ProductScreening"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScreenProductRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/product/status/{id}": {
      "get": {
        "tags": [
          "ProductStatus"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreenProductResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/reference/{id}": {
      "get": {
        "tags": [
          "ResourceReference"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Reference"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reference"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reference"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customs/s321/shipment": {
      "post": {
        "tags": [
          "S321"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateShipmentS321FilingRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateShipmentS321FilingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateShipmentS321FilingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateShipmentS321FilingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/customs/s321/packages": {
      "post": {
        "tags": [
          "S321"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "MasterBillNumber",
            "in": "query",
            "schema": {
              "pattern": "^[A-Z0-9]{3,4}-[A-Z0-9]{1,11}$",
              "type": "string"
            }
          },
          {
            "name": "PortOfEntry",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page.Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Page.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Shipment"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Shipment"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Shipment"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/summary": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "Page.Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Page.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentSummaryPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentSummaryPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentSummaryPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/latest": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "Page.Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Page.Size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ClientIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Ports",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "ArrivalFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ArrivalTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ProcessTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BrokerageProcess"
              }
            }
          },
          {
            "name": "TotalMin",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "TotalMax",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Phase",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ShipmentPhase"
            }
          },
          {
            "name": "PhaseState",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ShipmentPhaseState"
            }
          },
          {
            "name": "Exceptions",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipmentExceptionFilter"
              }
            }
          },
          {
            "name": "Deadline",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ShipmentDeadlineFilter"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/latest/filter-options": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentFilterOptions"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentFilterOptions"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestShipmentFilterOptions"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/dashboard": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentDashboard"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentDashboard"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentDashboard"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/header": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shipment"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/customs-providers": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentCustomsProvidersResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentCustomsProvidersResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentCustomsProvidersResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/packages": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              },
              "application/x-ndjson": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Package"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/register": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/verify": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/spreadsheet/{exportType}": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "ShipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExportType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/spreadsheet/Sku": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/spreadsheet/SpecialInstructions": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/update": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/packages/add": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPackagesToShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/packages/remove": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemovePackagesFromShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/packages/remove": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveClientPackagesFromShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveClientPackagesFromShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveClientPackagesFromShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveClientPackagesFromShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemovePackagesFromShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemovePackagesFromShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemovePackagesFromShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/events": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetCompleteShipmentEventsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCompleteShipmentEventsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCompleteShipmentEventsResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/events": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventBreakdownRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventBreakdownRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventBreakdownRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetShipmentsEventBreakdownRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentsEventBreakdownResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentsEventBreakdownResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentsEventBreakdownResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/event": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentEventRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentEventRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/events/add": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddShipmentEventsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddShipmentEventsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddShipmentEventsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddShipmentEventsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/document": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddShipmentDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/document/{shipmentId}/{resourceReference}": {
      "delete": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "ShipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ResourceReference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "ShipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ResourceReference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/document/upload": {
      "post": {
        "tags": [
          "Shipment"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientShipmentDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientShipmentDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientShipmentDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddClientShipmentDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/shipment/document/download": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExternalId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ResourceReference",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShipmentDocumentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shipment/{shipmentId}/documents/archive": {
      "get": {
        "tags": [
          "Shipment"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/facade/package/submit": {
      "post": {
        "tags": [
          "TemuFacade"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/TemuSubmitPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemuSubmitPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TemuSubmitPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TemuSubmitPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitPackageWithItemsResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/facade/shipment/register": {
      "post": {
        "tags": [
          "TemuFacade"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterShipmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterShipmentResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/facade/package/tracking": {
      "get": {
        "tags": [
          "TemuFacade"
        ],
        "parameters": [
          {
            "name": "PackageId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExternalId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TemuPackageEventCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemuPackageEventCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemuPackageEventCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/shipment/{shipmentId}": {
      "get": {
        "tags": [
          "Tracking"
        ],
        "parameters": [
          {
            "name": "shipmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/package/{packageId}": {
      "get": {
        "tags": [
          "Tracking"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/shipment": {
      "get": {
        "tags": [
          "Tracking"
        ],
        "parameters": [
          {
            "name": "ShipmentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExternalId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentEventCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking/package": {
      "get": {
        "tags": [
          "Tracking"
        ],
        "parameters": [
          {
            "name": "PackageId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ClientId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ExternalId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PackageEventCollection"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tracking-file-delivery/shipment/generate": {
      "post": {
        "tags": [
          "TrackingFileDelivery"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTrackingFileRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTrackingFileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTrackingFileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTrackingFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateTrackingFileResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateTrackingFileResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateTrackingFileResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/pickup": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/handover": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/stage": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/StagePackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StagePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StagePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StagePackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/receive": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ReceivePackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceivePackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceivePackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReceivePackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/depart": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DepartPackageRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepartPackageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DepartPackageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DepartPackageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/link": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkPackageToContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkPackageToContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkPackageToContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkPackageToContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/package/unlink": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UnlinkPackageFromContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnlinkPackageFromContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UnlinkPackageFromContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UnlinkPackageFromContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPackageResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/container/receive": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiveContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiveContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiveContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiveContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/container/depart": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DepartContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepartContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DepartContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DepartContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/container/pickup": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PickUpContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/container/handover": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HandOverContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/warehouse/container/stage": {
      "post": {
        "tags": [
          "WarehouseScanning"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/StageContainerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StageContainerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StageContainerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StageContainerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanContainerResult"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddClientPackageDocumentRequest": {
        "required": [
          "content",
          "documentType",
          "externalId",
          "mimeType"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "documentType": {
            "minLength": 1,
            "pattern": "PgaDocument|Other",
            "type": "string"
          },
          "content": {
            "type": "string",
            "format": "byte"
          },
          "mimeType": {
            "minLength": 1,
            "type": "string"
          },
          "itemId": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "agency": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddClientShipmentDocumentRequest": {
        "required": [
          "content",
          "documentType",
          "externalId",
          "mimeType"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "documentType": {
            "minLength": 1,
            "pattern": "MasterBill|Invoice|IscPaymentConfirmation|NominationRequest|HouseBill|Manifest|EntrySummary|CargoRelease|Other",
            "type": "string"
          },
          "content": {
            "type": "string",
            "format": "byte"
          },
          "mimeType": {
            "minLength": 1,
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentTag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddPackageDutyAssessmentRequest": {
        "required": [
          "entryDate",
          "entryNumber",
          "otherFees",
          "paymentType",
          "totalDuty"
        ],
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "entryNumber": {
            "minLength": 1,
            "type": "string"
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          },
          "paymentType": {
            "minLength": 1,
            "type": "string"
          },
          "statementNumber": {
            "type": "string",
            "nullable": true
          },
          "statementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalDuty": {
            "$ref": "#/components/schemas/Money"
          },
          "otherFees": {
            "$ref": "#/components/schemas/Money"
          }
        },
        "additionalProperties": false
      },
      "AddPackageEventRequest": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "arguments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddPackagesToShipmentRequest": {
        "required": [
          "packageIds"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "packageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "AddShipmentDocumentRequest": {
        "required": [
          "content",
          "documentType",
          "mimeType",
          "shipmentId"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "documentType": {
            "minLength": 1,
            "pattern": "MasterBill|Invoice|IscPaymentConfirmation|NominationRequest|HouseBill|Manifest|EntrySummary|CargoRelease|Other",
            "type": "string"
          },
          "content": {
            "type": "string",
            "format": "byte"
          },
          "mimeType": {
            "minLength": 1,
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentTag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddShipmentEventRequest": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "arguments": {
            "maxItems": 2,
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Address": {
        "required": [
          "city",
          "country",
          "line1",
          "name",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "line1": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string"
          },
          "line2": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 12,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "minLength": 1,
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyIdentifier"
            },
            "nullable": true
          },
          "computedIdentifier": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdjustDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdjustDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "adjustmentType": {
            "type": "string",
            "nullable": true
          },
          "totalAdjusted": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AdjustDutyForShipmentRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdjustmentStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "AluminumSmeltDetails": {
        "type": "object",
        "properties": {
          "primarySmeltCountry": {
            "type": "string",
            "nullable": true
          },
          "secondarySmeltCountry": {
            "type": "string",
            "nullable": true
          },
          "castCountry": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BackfillEntryLineNumbersRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "apply": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BackfillEntryLineNumbersResult": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "applied": {
            "type": "boolean"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackfillEntryResult"
            },
            "nullable": true
          },
          "skippedPackageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BackfillEntryResult": {
        "type": "object",
        "properties": {
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "lineCount": {
            "type": "integer",
            "format": "int32"
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackfillLineChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BackfillLineChange": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "productQuantifierId": {
            "type": "string",
            "format": "uuid"
          },
          "oldLineNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "newLineNumber": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BackfillManifestStatusesRequest": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": "string",
            "format": "date"
          },
          "apply": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BackfillManifestStatusesResult": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": "string",
            "format": "date"
          },
          "applied": {
            "type": "boolean"
          },
          "fileCount": {
            "type": "integer",
            "format": "int32"
          },
          "unreadableFiles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "masterBills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackfilledMasterBill"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BackfillShipmentEntriesRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "apply": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BackfillShipmentEntriesResult": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "applied": {
            "type": "boolean"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackfilledCustomsEntry"
            },
            "nullable": true
          },
          "skippedGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkippedEntryGroup"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BackfilledCustomsEntry": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "entryNumbers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "packagesWithoutEntryNumber": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BackfilledMasterBill": {
        "type": "object",
        "properties": {
          "masterBill": {
            "type": "string",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "unknownHouseCount": {
            "type": "integer",
            "format": "int32"
          },
          "statuses": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerageProcess": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "BulkAddPackageEventsRequest": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddPackageEventRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BulkAddShipmentEventsRequest": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddShipmentEventRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CancelPackageManifestRequest": {
        "required": [
          "originatorCode"
        ],
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "originatorCode": {
            "minLength": 1,
            "type": "string"
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CensusQuantity": {
        "required": [
          "quantity",
          "unit"
        ],
        "type": "object",
        "properties": {
          "unit": {
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CheckLedgerAccountBalanceResult": {
        "type": "object",
        "properties": {
          "currentBalance": {
            "type": "number",
            "format": "double"
          },
          "overdraftLimit": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Client": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "ledgerAccountId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientPlatforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClientPlatform"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClientPlatform": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CollectDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "absoluteAmount": {
            "maximum": 1000000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CollectDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "dutyPayment": {
            "$ref": "#/components/schemas/DutyPayment"
          }
        },
        "additionalProperties": false
      },
      "CollectDutyForShipmentRequest": {
        "required": [
          "hawbAmountEntries"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "hawbAmountEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HawbAmountEntry"
            }
          }
        },
        "additionalProperties": false
      },
      "CollectMissingDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CollectMissingDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "additionalDutyCollected": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CollectMissingDutyForShipmentRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Container": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          }
        },
        "additionalProperties": false
      },
      "ContainerScanMatch": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "heldPackages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeldPackageScanMatch"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CopperSmeltDetails": {
        "type": "object",
        "properties": {
          "primarySmeltCountry": {
            "type": "string",
            "nullable": true
          },
          "secondarySmeltCountry": {
            "type": "string",
            "nullable": true
          },
          "castCountry": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePlatformRequest": {
        "required": [
          "platform"
        ],
        "type": "object",
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        "additionalProperties": false
      },
      "DeliverShipmentDocumentToClientRequest": {
        "required": [
          "shipmentId"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "DeliverShipmentDocumentToClientResult": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "isSuccess": {
            "type": "boolean"
          },
          "externalReference": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "deliveredAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DepartContainerRequest": {
        "required": [
          "barcode",
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "minLength": 1,
            "type": "string"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DepartPackageRequest": {
        "required": [
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DocumentTag": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DutyPayment": {
        "type": "object",
        "properties": {
          "collectedAmount": {
            "type": "number",
            "format": "double"
          },
          "remittedAmount": {
            "type": "number",
            "format": "double"
          },
          "refundedAmount": {
            "type": "number",
            "format": "double"
          },
          "absoluteAdjustmentAmount": {
            "type": "number",
            "format": "double"
          },
          "dutyStatus": {
            "$ref": "#/components/schemas/DutyStatus"
          },
          "adjustmentStatus": {
            "$ref": "#/components/schemas/AdjustmentStatus"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DutyStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "EntryGroupDisposition": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EntryGroupFiling": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "type": "string",
            "nullable": true
          },
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "submitted": {
            "type": "boolean"
          },
          "notTransmittedReason": {
            "type": "string",
            "nullable": true
          },
          "filedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EntryGroupOutcome": {
        "type": "object",
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EntryGroupPackageComponentSummary": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "primaryHts": {
            "type": "string",
            "nullable": true
          },
          "primaryHtsValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "declaredValue": {
            "type": "number",
            "format": "double"
          },
          "countryOfOrigin": {
            "type": "string",
            "nullable": true
          },
          "mid": {
            "type": "string",
            "nullable": true
          },
          "tariffStackSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "EntryGroupPackageQuantifierSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "quantityUnit": {
            "type": "string",
            "nullable": true
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntryGroupPackageComponentSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntryGroupPackageSummary": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "trackingNumber": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "lineItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "isEntrySubmitted": {
            "type": "boolean"
          },
          "quantifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntryGroupPackageQuantifierSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntryGroupSummary": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "entryNumberPackageCount": {
            "type": "integer",
            "format": "int32"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "packageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "filedPackageCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalLineItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalValue": {
            "type": "number",
            "format": "double"
          },
          "totalCharges": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "$ref": "#/components/schemas/EntryGroupOutcome"
          },
          "latestDisposition": {
            "$ref": "#/components/schemas/EntryGroupDisposition"
          },
          "filings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntryGroupFiling"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FailedRequestCollection": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FailedRequestMetadata"
            },
            "nullable": true
          },
          "cursor": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FailedRequestDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "endpointKey": {
            "type": "string",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "encryptedApiKey": {
            "type": "string",
            "nullable": true
          },
          "requestPayloadBlobName": {
            "type": "string",
            "nullable": true
          },
          "errorPayloadBlobName": {
            "type": "string",
            "nullable": true
          },
          "errorPayloadBytes": {
            "type": "integer",
            "format": "int64"
          },
          "errorPayloadPreviewTruncated": {
            "type": "boolean"
          },
          "requestPayloadBytes": {
            "type": "integer",
            "format": "int64"
          },
          "requestPayloadPreviewTruncated": {
            "type": "boolean"
          },
          "requestPayloadCaptureTruncated": {
            "type": "boolean"
          },
          "requestContentType": {
            "type": "string",
            "nullable": true
          },
          "errorContentType": {
            "type": "string",
            "nullable": true
          },
          "requestHeadersJson": {
            "type": "string",
            "nullable": true
          },
          "isReplayable": {
            "type": "boolean"
          },
          "requestPayload": {
            "type": "string",
            "nullable": true
          },
          "requestPayloadPreview": {
            "type": "string",
            "nullable": true
          },
          "errorPayload": {
            "type": "string",
            "nullable": true
          },
          "errorPayloadPreview": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FailedRequestErrorPayload": {
        "type": "object",
        "properties": {
          "payload": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FailedRequestMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "endpointKey": {
            "type": "string",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "encryptedApiKey": {
            "type": "string",
            "nullable": true
          },
          "requestPayloadBlobName": {
            "type": "string",
            "nullable": true
          },
          "errorPayloadBlobName": {
            "type": "string",
            "nullable": true
          },
          "errorPayloadBytes": {
            "type": "integer",
            "format": "int64"
          },
          "errorPayloadPreviewTruncated": {
            "type": "boolean"
          },
          "requestPayloadBytes": {
            "type": "integer",
            "format": "int64"
          },
          "requestPayloadPreviewTruncated": {
            "type": "boolean"
          },
          "requestPayloadCaptureTruncated": {
            "type": "boolean"
          },
          "requestContentType": {
            "type": "string",
            "nullable": true
          },
          "errorContentType": {
            "type": "string",
            "nullable": true
          },
          "requestHeadersJson": {
            "type": "string",
            "nullable": true
          },
          "isReplayable": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FailedRequestReplayRequest": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "apiKeyEncrypted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FailedRequestReplayResult": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "payload": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileAcasForPackagesRequest": {
        "required": [
          "originatorCode",
          "packageIds"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "originatorCode": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "FileAcasForShipmentRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          },
          "originatorCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileEntryForShipmentRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          },
          "filerCode": {
            "type": "string",
            "nullable": true
          },
          "importerId": {
            "type": "string",
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "submit": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FileManifestForPackageRequest": {
        "required": [
          "originatorCode"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "originatorCode": {
            "minLength": 1,
            "type": "string"
          },
          "importerId": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileManifestForShipmentRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          },
          "filerCode": {
            "type": "string",
            "nullable": true
          },
          "importerId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateEntryGroupsForShipmentRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GenerateEntryGroupsForShipmentResult": {
        "type": "object",
        "properties": {
          "groupIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateEntryReferenceFileRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GenerateEntryReferenceFileResult": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "format": "byte",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateTrackingFileRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GenerateTrackingFileResult": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "format": "byte",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetCompleteShipmentEventsResult": {
        "type": "object",
        "properties": {
          "shipment": {
            "$ref": "#/components/schemas/ShipmentEventCollection"
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PackageEventCollection"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDutyStatusForPackagesBreakdownResult": {
        "type": "object",
        "properties": {
          "packageDutyCollectionInfos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PackageDutyInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDutyStatusForShipmentsBreakdownResult": {
        "type": "object",
        "properties": {
          "shipmentDutyInfos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentDutyBreakdown"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetEntryGroupPackagesForShipmentResult": {
        "type": "object",
        "properties": {
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntryGroupPackageSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetEntryGroupsForShipmentResult": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntryGroupSummary"
            },
            "nullable": true
          },
          "ungroupedPackageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetPackageDocumentResult": {
        "type": "object",
        "properties": {
          "document": {
            "$ref": "#/components/schemas/PackageDocument"
          }
        },
        "additionalProperties": false
      },
      "GetPackageDocumentsResult": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PackageDocument"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetShipmentCustomsProvidersResult": {
        "type": "object",
        "properties": {
          "manifestProvider": {
            "type": "string",
            "nullable": true
          },
          "entryProvider": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetShipmentDocumentResult": {
        "type": "object",
        "properties": {
          "document": {
            "$ref": "#/components/schemas/ShipmentDocument"
          }
        },
        "additionalProperties": false
      },
      "GetShipmentsEventBreakdownRequest": {
        "required": [
          "shipmentIds"
        ],
        "type": "object",
        "properties": {
          "shipmentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "GetShipmentsEventBreakdownResult": {
        "type": "object",
        "properties": {
          "shipments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentsEventsBreakdown"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Group": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string"
          },
          "ordinal": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "totalCharges": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HandOverContainerRequest": {
        "required": [
          "barcode",
          "to"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "minLength": 1,
            "type": "string"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "to": {
            "minLength": 1,
            "pattern": "^(bol:[^\\s]+|unspecified:[^\\s]+)$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "HandOverPackageRequest": {
        "required": [
          "to"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "to": {
            "minLength": 1,
            "pattern": "^(bol:[^\\s]+|unspecified:[^\\s]+)$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "HawbAmountEntry": {
        "required": [
          "hawb"
        ],
        "type": "object",
        "properties": {
          "hawb": {
            "minLength": 1,
            "type": "string"
          },
          "absoluteAmount": {
            "maximum": 1000000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "HeldPackageCounts": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "cbp": {
            "type": "integer",
            "format": "int32"
          },
          "pga": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "HeldPackageScanMatch": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "holdCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Image": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "string",
            "format": "byte",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImageResource": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InitiateShipmentS321FilingRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "skipFailedPackages": {
            "type": "boolean"
          },
          "resubmitSuccededPackages": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Instruction": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "pattern": "^(ExcludeScreeningResult|ProcessCustomizedProduct|DisableImageProcessing)$",
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Item": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int32"
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "pieces": {
            "type": "integer",
            "format": "int32"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          },
          "screeningResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemScreeningResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ItemQuantifier": {
        "type": "object",
        "properties": {
          "itemQuantifierId": {
            "type": "string",
            "format": "uuid"
          },
          "productId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "item": {
            "$ref": "#/components/schemas/Item"
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ItemQuantifierRequest": {
        "required": [
          "declaredName",
          "declaredValue",
          "originCountry",
          "quantity",
          "tariffStack",
          "weight"
        ],
        "type": "object",
        "properties": {
          "url": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "sku": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "declaredName": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string"
          },
          "declaredValue": {
            "maximum": 999999.99,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "manufacturer": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "tariffStack": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tariff"
            }
          },
          "pga": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgaData"
            },
            "nullable": true
          },
          "specialInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialInstruction"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/ProductItemDeclaration"
          },
          "tradeAgreement": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ItemScreeningResult": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "originReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LatestShipment": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "masterBillNumber": {
            "type": "string",
            "nullable": true
          },
          "client": {
            "$ref": "#/components/schemas/LatestShipmentClient"
          },
          "processType": {
            "$ref": "#/components/schemas/BrokerageProcess"
          },
          "allPackagesFinal": {
            "type": "boolean"
          },
          "transportationMode": {
            "type": "string",
            "nullable": true
          },
          "portOfEntry": {
            "type": "string",
            "nullable": true
          },
          "airportTimeZone": {
            "type": "string",
            "nullable": true
          },
          "scheduledArrivalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "exceptions": {
            "$ref": "#/components/schemas/ShipmentExceptionCounts"
          },
          "phases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentPhaseProgress"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LatestShipmentClient": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LatestShipmentFilterOptions": {
        "type": "object",
        "properties": {
          "clients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LatestShipmentClient"
            },
            "nullable": true
          },
          "ports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LatestShipmentPort"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LatestShipmentPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LatestShipment"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LatestShipmentPort": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "transportationMode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LegacyItemQuantifierRequest": {
        "required": [
          "declaredName",
          "declaredValue",
          "originCountry",
          "quantity",
          "weight"
        ],
        "type": "object",
        "properties": {
          "url": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "sku": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "declaredName": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string"
          },
          "declaredValue": {
            "maximum": 999999.99,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "manufacturer": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "pga": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgaData"
            },
            "nullable": true
          },
          "specialInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialInstruction"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/ProductItemDeclaration"
          },
          "tradeAgreement": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "tariffHts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "nullable": true
          },
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "nullable": true
          },
          "tariffs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TariffIndicator"
            },
            "nullable": true
          },
          "censusQuantities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CensusQuantity"
            },
            "nullable": true
          },
          "tariffStack": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tariff"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LegacySubmitPackageRequest": {
        "required": [
          "barcode",
          "exportCountry",
          "externalId",
          "from",
          "houseBillNumber",
          "products",
          "to",
          "weight"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "sellerId": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "platformId": {
            "maxLength": 20,
            "minLength": 0,
            "pattern": "^[a-z0-9_-]+$",
            "type": "string",
            "nullable": true
          },
          "houseBillNumber": {
            "maxLength": 16,
            "minLength": 0,
            "type": "string"
          },
          "barcode": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string"
          },
          "carrierId": {
            "pattern": "^[a-z_]{2,16}$",
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "maxLength": 72,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "from": {
            "$ref": "#/components/schemas/Address"
          },
          "to": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "exportCountry": {
            "minLength": 1,
            "type": "string"
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "charges": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "products": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LegacyItemQuantifierRequest"
            }
          }
        },
        "additionalProperties": false
      },
      "Licence": {
        "required": [
          "number",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "pattern": "^[0-9]{2}$",
            "type": "string"
          },
          "number": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LineItem": {
        "required": [
          "declaredValue"
        ],
        "type": "object",
        "properties": {
          "declaredName": {
            "type": "string",
            "nullable": true
          },
          "declaredValue": {
            "$ref": "#/components/schemas/Money"
          },
          "originCountry": {
            "type": "string",
            "nullable": true
          },
          "hts": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "tariffStack": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tariff"
            },
            "nullable": true
          },
          "mid": {
            "type": "string",
            "nullable": true
          },
          "manufacturer": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "pga": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgaData"
            },
            "nullable": true
          },
          "specialInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialInstruction"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/ProductItemDeclaration"
          },
          "entryLineNumber": {
            "maximum": 999,
            "minimum": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "groupId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LinkPackageToContainerRequest": {
        "required": [
          "containerId",
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "containerId": {
            "minLength": 1,
            "type": "string"
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LinkProductReferenceItem": {
        "type": "object",
        "properties": {
          "itemQuantifierId": {
            "type": "string",
            "format": "uuid"
          },
          "productId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "LinkProductReferencesRequest": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkProductReferenceItem"
            }
          }
        },
        "additionalProperties": false
      },
      "LumberDeclaration": {
        "required": [
          "declarationIndicator",
          "exportPrice"
        ],
        "type": "object",
        "properties": {
          "declarationIndicator": {
            "minLength": 1,
            "type": "string",
            "description": "Softwood lumber declaration indicator."
          },
          "exportPrice": {
            "minLength": 1,
            "type": "string",
            "description": "Export price for softwood lumber."
          }
        },
        "additionalProperties": false
      },
      "MasterBillNumber": {
        "required": [
          "prefix",
          "serialNumber"
        ],
        "type": "object",
        "properties": {
          "prefix": {
            "maxLength": 4,
            "minLength": 2,
            "type": "string"
          },
          "serialNumber": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MissingScanCounts": {
        "type": "object",
        "properties": {
          "pickup": {
            "type": "integer",
            "format": "int32"
          },
          "receive": {
            "type": "integer",
            "format": "int32"
          },
          "stage": {
            "type": "integer",
            "format": "int32"
          },
          "depart": {
            "type": "integer",
            "format": "int32"
          },
          "handover": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Money": {
        "required": [
          "currency",
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Package": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "screeningStatus": {
            "type": "string",
            "nullable": true
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "carrierId": {
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "type": "string",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "from": {
            "$ref": "#/components/schemas/Address"
          },
          "to": {
            "$ref": "#/components/schemas/Address"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemQuantifier"
            },
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "airportTimeZone": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "exportCountry": {
            "type": "string",
            "nullable": true
          },
          "client": {
            "$ref": "#/components/schemas/Client"
          },
          "platform": {
            "$ref": "#/components/schemas/Platform"
          },
          "sellerId": {
            "type": "string",
            "nullable": true
          },
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "charges": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dutyPayment": {
            "$ref": "#/components/schemas/DutyPayment"
          }
        },
        "additionalProperties": false
      },
      "PackageDocument": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "nullable": true
          },
          "resourceReference": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "itemId": {
            "type": "string",
            "nullable": true
          },
          "agency": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PackageDutyInfo": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "trackingNumber": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "collected": {
            "type": "number",
            "format": "double"
          },
          "remitted": {
            "type": "number",
            "format": "double"
          },
          "refunded": {
            "type": "number",
            "format": "double"
          },
          "dutyStatus": {
            "type": "string",
            "nullable": true
          },
          "adjustmentStatus": {
            "type": "string",
            "nullable": true
          },
          "absoluteAdjustmentAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PackageEventCollection": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PackageScanFlags": {
        "type": "object",
        "properties": {
          "pickup": {
            "type": "boolean"
          },
          "receive": {
            "type": "boolean"
          },
          "stage": {
            "type": "boolean"
          },
          "depart": {
            "type": "boolean"
          },
          "handover": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PackageScanMatch": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PackageStatusCode": {
        "enum": [
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "PayDutyForPackageRequest": {
        "required": [
          "barcode"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "barcode": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PayDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "totalDuty": {
            "type": "number",
            "format": "double"
          },
          "ddpn": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PgaData": {
        "required": [
          "agency",
          "program"
        ],
        "type": "object",
        "properties": {
          "agency": {
            "minLength": 1,
            "type": "string",
            "description": "Partner Government Agency code (e.g. APHIS, FDA)."
          },
          "program": {
            "$ref": "#/components/schemas/PgaProgram"
          },
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "description": "HTS number of the tariff stack line this data set is filed against. Must name a primary (non-Chapter 98/99) line of the item's tariff stack. When omitted, the data set is filed against the first primary line.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PgaProgram": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Government agency program code.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PickUpContainerRequest": {
        "required": [
          "barcode",
          "from"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "minLength": 1,
            "type": "string"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "from": {
            "minLength": 1,
            "pattern": "unspecified:(\\S+)",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PickUpPackageRequest": {
        "required": [
          "from"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "from": {
            "minLength": 1,
            "pattern": "unspecified:(\\S+)",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Platform": {
        "required": [
          "id",
          "url"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 20,
            "minLength": 0,
            "pattern": "^[a-z0-9_-]+$",
            "type": "string"
          },
          "url": {
            "minLength": 1,
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "PollShipmentDocumentDeliveryRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "PollShipmentDocumentDeliveryResult": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "isSuccess": {
            "type": "boolean"
          },
          "externalReference": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "polledAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Product": {
        "required": [
          "hts",
          "originCountry",
          "sku"
        ],
        "type": "object",
        "properties": {
          "sku": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "ean": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "name": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "categories": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pieces": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "images": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageResource"
            },
            "nullable": true
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "instructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Instruction"
            },
            "nullable": true
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductAttribute"
            },
            "nullable": true
          },
          "normalize": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ProductAttribute": {
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "pattern": "^(ManufacturerId|ManufacturerName|ManufacturerAddress)$",
            "type": "string"
          },
          "value": {
            "maxLength": 200,
            "minLength": 0,
            "pattern": "^[^\n\r]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ProductItemDeclaration": {
        "type": "object",
        "properties": {
          "aluminum": {
            "$ref": "#/components/schemas/AluminumSmeltDetails"
          },
          "steel": {
            "$ref": "#/components/schemas/SteelMeltDetails"
          },
          "copper": {
            "$ref": "#/components/schemas/CopperSmeltDetails"
          },
          "addCaseNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Anti-dumping case number.",
            "nullable": true
          },
          "cvdCaseNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Countervailing duty case number.",
            "nullable": true
          },
          "adCaseNonReimbursementStatement": {
            "type": "boolean",
            "description": "Anti-dumping case non-reimbursement statement."
          }
        },
        "additionalProperties": false
      },
      "ProductLineItem": {
        "required": [
          "declaredName",
          "declaredValue",
          "mid",
          "originCountry",
          "tariffStack",
          "weight"
        ],
        "type": "object",
        "properties": {
          "declaredName": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string"
          },
          "declaredValue": {
            "maximum": 999999.99,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string"
          },
          "manufacturer": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "tariffStack": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tariff"
            }
          },
          "pga": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgaData"
            },
            "nullable": true
          },
          "specialInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialInstruction"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/ProductItemDeclaration"
          }
        },
        "additionalProperties": false
      },
      "ProductQuantifier": {
        "required": [
          "product",
          "quantity"
        ],
        "type": "object",
        "properties": {
          "product": {
            "$ref": "#/components/schemas/Product"
          },
          "quantity": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "declaredName": {
            "maxLength": 300,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "declaredValue": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "deprecated": true
          },
          "originCountry": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "tariffHts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "tariffs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TariffIndicator"
            },
            "nullable": true,
            "deprecated": true
          },
          "censusQuantities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CensusQuantity"
            },
            "nullable": true,
            "deprecated": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductLineItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProductStatusCode": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "Reason": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReceiveContainerRequest": {
        "required": [
          "barcode",
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "minLength": 1,
            "type": "string"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ReceivePackageRequest": {
        "required": [
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Reference": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefundAllDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "RefundAllDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "dutyPayment": {
            "$ref": "#/components/schemas/DutyPayment"
          }
        },
        "additionalProperties": false
      },
      "RefundExcessDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefundExcessDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "dutyPayment": {
            "$ref": "#/components/schemas/DutyPayment"
          }
        },
        "additionalProperties": false
      },
      "RefundExcessDutyForShipmentRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "RegisterShipmentRequest": {
        "required": [
          "consignee",
          "externalId",
          "shipper",
          "transportation"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "originatorCode": {
            "maxLength": 10,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "shipper": {
            "$ref": "#/components/schemas/Address"
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "importer": {
            "$ref": "#/components/schemas/Address"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "invoiceNumber": {
            "maxLength": 72,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "packageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "externalPackageIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "entryType": {
            "pattern": "^(01|11|13|86|P)$",
            "type": "string",
            "nullable": true
          },
          "containers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Container"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegisterShipmentResult": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "RemitDutyForPackageRequest": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "absoluteAmount": {
            "maximum": 1000000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "RemitDutyForPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "dutyPayment": {
            "$ref": "#/components/schemas/DutyPayment"
          }
        },
        "additionalProperties": false
      },
      "RemitDutyForShipmentRequest": {
        "required": [
          "hawbAmountEntries"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "hawbAmountEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HawbAmountEntry"
            }
          }
        },
        "additionalProperties": false
      },
      "RemoveClientPackagesFromShipmentRequest": {
        "required": [
          "externalId",
          "externalPackageIds"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "externalPackageIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "RemovePackagesFromShipmentRequest": {
        "required": [
          "packageIds"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "packageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "RemovePackagesFromShipmentResult": {
        "type": "object",
        "properties": {
          "packagesNotOnShipment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RepairPgaLinesRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "apply": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RepairPgaLinesResult": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "applied": {
            "type": "boolean"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairedPgaLinesEntry"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RepairedPgaLinesEntry": {
        "type": "object",
        "properties": {
          "entryNumber": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "removedLineCount": {
            "type": "integer",
            "format": "int32"
          },
          "removedEventCount": {
            "type": "integer",
            "format": "int32"
          },
          "removedLines": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "clearedBefore": {
            "type": "integer",
            "format": "int32"
          },
          "clearedAfter": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ScanContainerResult": {
        "type": "object",
        "properties": {
          "isSuccessful": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContainerScanMatch"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScanPackageResult": {
        "type": "object",
        "properties": {
          "isSuccessful": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PackageScanMatch"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScannedPackageCounts": {
        "type": "object",
        "properties": {
          "pickup": {
            "type": "integer",
            "format": "int32"
          },
          "receive": {
            "type": "integer",
            "format": "int32"
          },
          "stage": {
            "type": "integer",
            "format": "int32"
          },
          "depart": {
            "type": "integer",
            "format": "int32"
          },
          "handover": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ScreenExtendedPackageRequest": {
        "required": [
          "barcode",
          "destinationCountry",
          "externalId",
          "from",
          "houseBillNumber",
          "platformId",
          "products",
          "sellerId",
          "to",
          "weight"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "sellerId": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "platformId": {
            "maxLength": 20,
            "minLength": 0,
            "pattern": "^[a-z0-9_-]+$",
            "type": "string"
          },
          "destinationCountry": {
            "minLength": 1,
            "type": "string"
          },
          "products": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductQuantifier"
            }
          },
          "instructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Instruction"
            },
            "nullable": true
          },
          "houseBillNumber": {
            "maxLength": 16,
            "minLength": 0,
            "type": "string"
          },
          "barcode": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string"
          },
          "carrierId": {
            "pattern": "^[a-z_]{2,16}$",
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "groupId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "from": {
            "$ref": "#/components/schemas/Address"
          },
          "to": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "exportCountry": {
            "type": "string",
            "nullable": true
          },
          "originCountry": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "charges": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScreenPackageResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "$ref": "#/components/schemas/PackageStatusCode"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScreenProductResult"
            },
            "nullable": true
          },
          "labelQrCode": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ScreenProductRequest": {
        "required": [
          "destinationCountry",
          "hts",
          "originCountry",
          "platformId",
          "sellerId",
          "sku"
        ],
        "type": "object",
        "properties": {
          "sku": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "ean": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "name": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "categories": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pieces": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "images": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageResource"
            },
            "nullable": true
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "instructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Instruction"
            },
            "nullable": true
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductAttribute"
            },
            "nullable": true
          },
          "normalize": {
            "type": "boolean"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "sellerId": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "platformId": {
            "maxLength": 20,
            "minLength": 0,
            "pattern": "^[a-z0-9_-]+$",
            "type": "string"
          },
          "destinationCountry": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ScreenProductResult": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string",
            "nullable": true
          },
          "platformId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "$ref": "#/components/schemas/ProductStatusCode"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "$ref": "#/components/schemas/Reason"
          },
          "reference": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ScreenShipmentRequest": {
        "required": [
          "consignee",
          "externalId",
          "masterBill",
          "packages",
          "shipper",
          "transportation"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "originatorCode": {
            "maxLength": 10,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "shipper": {
            "$ref": "#/components/schemas/Address"
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "packages": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScreenExtendedPackageRequest"
            }
          }
        },
        "additionalProperties": false
      },
      "SendPickupShipmentNotificationRequest": {
        "required": [
          "destination",
          "shipmentId"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "destination": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetPackageEntryGroupRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          }
        },
        "additionalProperties": false
      },
      "Shipment": {
        "required": [
          "consignee",
          "externalId",
          "masterBill",
          "packages",
          "shipper",
          "transportation"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "client": {
            "$ref": "#/components/schemas/Client"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "shipper": {
            "$ref": "#/components/schemas/Address"
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "importer": {
            "$ref": "#/components/schemas/Address"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "invoiceNumber": {
            "type": "string",
            "nullable": true
          },
          "entryType": {
            "pattern": "^(01|11|13|86|P)$",
            "type": "string",
            "nullable": true
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Package"
            }
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentDocument"
            },
            "nullable": true
          },
          "containers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Container"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ShipmentDashboard": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "masterBillNumber": {
            "type": "string",
            "nullable": true
          },
          "client": {
            "$ref": "#/components/schemas/LatestShipmentClient"
          },
          "processType": {
            "$ref": "#/components/schemas/BrokerageProcess"
          },
          "allPackagesFinal": {
            "type": "boolean"
          },
          "transportationMode": {
            "type": "string",
            "nullable": true
          },
          "portOfEntry": {
            "type": "string",
            "nullable": true
          },
          "airportTimeZone": {
            "type": "string",
            "nullable": true
          },
          "scheduledArrivalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "exceptions": {
            "$ref": "#/components/schemas/ShipmentExceptionCounts"
          },
          "phases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentPhaseProgress"
            },
            "nullable": true
          },
          "exceptionItems": {
            "$ref": "#/components/schemas/ShipmentExceptionItems"
          }
        },
        "additionalProperties": false
      },
      "ShipmentDeadlineFilter": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentDocument": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "nullable": true
          },
          "resourceReference": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ShipmentDutyBreakdown": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "mawb": {
            "type": "string",
            "nullable": true
          },
          "collectedAmount": {
            "type": "number",
            "format": "double"
          },
          "remittedAmount": {
            "type": "number",
            "format": "double"
          },
          "refundedAmount": {
            "type": "number",
            "format": "double"
          },
          "pendingRefundAmount": {
            "type": "number",
            "format": "double"
          },
          "pendingCollectionAmount": {
            "type": "number",
            "format": "double"
          },
          "notCollectedCount": {
            "type": "integer",
            "format": "int32"
          },
          "collectedCount": {
            "type": "integer",
            "format": "int32"
          },
          "remittedCount": {
            "type": "integer",
            "format": "int32"
          },
          "refundedCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingRefundCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingCollectionCount": {
            "type": "integer",
            "format": "int32"
          },
          "adjustmentCompletedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ShipmentEventCollection": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ShipmentExceptionCounts": {
        "type": "object",
        "properties": {
          "cbpHold": {
            "type": "integer",
            "format": "int32"
          },
          "pgaHold": {
            "type": "integer",
            "format": "int32"
          },
          "seized": {
            "type": "integer",
            "format": "int32"
          },
          "lost": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ShipmentExceptionFilter": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentExceptionItem": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "trackingNumber": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "agencyCode": {
            "type": "string",
            "nullable": true
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ShipmentExceptionItems": {
        "type": "object",
        "properties": {
          "cbpHold": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentExceptionItem"
            },
            "nullable": true
          },
          "pgaHold": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentExceptionItem"
            },
            "nullable": true
          },
          "seized": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentExceptionItem"
            },
            "nullable": true
          },
          "lost": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentExceptionItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ShipmentHeldPackageCounts": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "cbp": {
            "type": "integer",
            "format": "int32"
          },
          "pga": {
            "type": "integer",
            "format": "int32"
          },
          "inContainer": {
            "$ref": "#/components/schemas/HeldPackageCounts"
          }
        },
        "additionalProperties": false
      },
      "ShipmentPhase": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentPhaseProgress": {
        "type": "object",
        "properties": {
          "phase": {
            "$ref": "#/components/schemas/ShipmentPhase"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "$ref": "#/components/schemas/ShipmentPhaseState"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastEventAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ShipmentPhaseState": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentProcessType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentStatusCode": {
        "enum": [
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ShipmentSummary": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "masterBillNumber": {
            "type": "string",
            "nullable": true
          },
          "portOfEntry": {
            "type": "string",
            "nullable": true
          },
          "transportationMode": {
            "type": "string",
            "nullable": true
          },
          "scheduledArrivalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "airportTimeZone": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "events": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "processType": {
            "$ref": "#/components/schemas/ShipmentProcessType"
          },
          "allPackagesFinal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ShipmentSummaryPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipmentSummary"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ShipmentsEventsBreakdown": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "masterBillNumber": {
            "type": "string",
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          },
          "events": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "processType": {
            "$ref": "#/components/schemas/ShipmentProcessType"
          },
          "allPackagesFinal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SkippedEntryGroup": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "packageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SpecialInstruction": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StageContainerRequest": {
        "required": [
          "barcode"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "minLength": 1,
            "type": "string"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StagePackageRequest": {
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SteelMeltDetails": {
        "type": "object",
        "properties": {
          "meltCountry": {
            "type": "string",
            "nullable": true
          },
          "applicabilityCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitPackageWithItemsResult": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "$ref": "#/components/schemas/PackageStatusCode"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SyncShipmentEntryStatusRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "pattern": "Cmm|Magaya|Postal|NetCHB",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Tariff": {
        "required": [
          "hts",
          "value"
        ],
        "type": "object",
        "properties": {
          "hts": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "value": {
            "maximum": 999999.99,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "quantities": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CensusQuantity"
            },
            "nullable": true
          },
          "indicators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TariffIndicator"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/TariffDeclaration"
          },
          "overrideTax": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TariffDeclaration": {
        "type": "object",
        "properties": {
          "lumber": {
            "$ref": "#/components/schemas/LumberDeclaration"
          },
          "licences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Licence"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TariffIndicator": {
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "maxLength": 4,
            "minLength": 0,
            "pattern": "^(SPI|SPI2)$",
            "type": "string"
          },
          "value": {
            "maxLength": 300,
            "minLength": 0,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "TemuItemQuantifierRequest": {
        "required": [
          "declaredName",
          "originCountry",
          "quantity",
          "tariffStack",
          "weight"
        ],
        "type": "object",
        "properties": {
          "quantity": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "declaredName": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string"
          },
          "originCountry": {
            "minLength": 1,
            "type": "string"
          },
          "mid": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "manufacturer": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "pga": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgaData"
            },
            "nullable": true
          },
          "specialInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialInstruction"
            },
            "nullable": true
          },
          "declarations": {
            "$ref": "#/components/schemas/ProductItemDeclaration"
          },
          "tradeAgreement": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sku": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "url": {
            "maxLength": 10000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "tariffStack": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tariff"
            }
          },
          "declaredValue": {
            "type": "number",
            "format": "double"
          },
          "group": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "tariffCode": {
            "maxLength": 10,
            "minLength": 10,
            "type": "string",
            "nullable": true
          },
          "tariffQuantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "metalContent": {
            "type": "string",
            "nullable": true
          },
          "exemptSection301": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TemuPackageEventCollection": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemuTrackingEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TemuSubmitPackageRequest": {
        "required": [
          "barcode",
          "exportCountry",
          "externalId",
          "from",
          "houseBillNumber",
          "products",
          "to",
          "weight"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "sellerId": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "platformId": {
            "maxLength": 20,
            "minLength": 0,
            "pattern": "^[a-z0-9_-]+$",
            "type": "string",
            "nullable": true
          },
          "houseBillNumber": {
            "maxLength": 16,
            "minLength": 0,
            "type": "string"
          },
          "barcode": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string"
          },
          "carrierId": {
            "pattern": "^[a-z_]{2,16}$",
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "maxLength": 72,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "from": {
            "$ref": "#/components/schemas/Address"
          },
          "to": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "exportCountry": {
            "minLength": 1,
            "type": "string"
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "charges": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "products": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemuItemQuantifierRequest"
            }
          },
          "entryTotalCharge": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TemuTrackingEvent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestAsyncOperationRequest": {
        "type": "object",
        "properties": {
          "shouldFail": {
            "type": "boolean"
          },
          "delayInSeconds": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ThirdPartyIdentifier": {
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "pattern": "^(DUNS|LEI|GLN|ID_CARD|PASSPORT|DRIVERS_LICENSE|IMPORTER_NUMBER)$",
            "type": "string"
          },
          "value": {
            "maxLength": 24,
            "minLength": 4,
            "pattern": "^[0-9A-Z-]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "TrackingEvent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Transportation": {
        "required": [
          "carrierCode",
          "lineNumber",
          "portOfEntry",
          "scheduledArrivalDate",
          "shippingDate"
        ],
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "carrierName": {
            "type": "string",
            "nullable": true
          },
          "carrierCode": {
            "minLength": 1,
            "pattern": "^[A-Z0-9]{2,3}$",
            "type": "string"
          },
          "lineNumber": {
            "maxLength": 14,
            "minLength": 1,
            "pattern": "^[0-9]{1,4}[A-Z]?$",
            "type": "string"
          },
          "shippingDate": {
            "type": "string",
            "format": "date-time"
          },
          "scheduledArrivalDate": {
            "type": "string",
            "format": "date-time"
          },
          "portOfEntry": {
            "minLength": 1,
            "pattern": "^[A-Z]{3}$",
            "type": "string"
          },
          "firmsCode": {
            "pattern": "^[A-Z0-9]{4}$",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UnbaggedPackage": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "format": "uuid"
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentExternalId": {
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "lastContainerId": {
            "type": "string",
            "nullable": true
          },
          "unlinkedAt": {
            "type": "string",
            "format": "date-time"
          },
          "holdCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UnlinkPackageFromContainerRequest": {
        "required": [
          "locationId"
        ],
        "type": "object",
        "properties": {
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "locationId": {
            "minLength": 1,
            "pattern": "location:(?<name>[^:]+):(?<city>[^:]+):(?<state>[^:]{2}):(?<zip>[^:]{5}):(?<country>[A-Z]{2})",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateItemQuantifierRequest": {
        "required": [
          "price"
        ],
        "type": "object",
        "properties": {
          "itemQuantifierId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "originCountry": {
            "type": "string",
            "nullable": true
          },
          "hts": {
            "type": "string",
            "nullable": true
          },
          "mid": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "$ref": "#/components/schemas/WeightWithoutValidation"
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "nullable": true
          },
          "tariffIndicators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TariffIndicator"
            },
            "nullable": true
          },
          "censusQuantities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CensusQuantity"
            },
            "nullable": true
          },
          "aluminumSmeltDetails": {
            "$ref": "#/components/schemas/AluminumSmeltDetails"
          },
          "steelMeltDetails": {
            "$ref": "#/components/schemas/SteelMeltDetails"
          },
          "copperSmeltDetails": {
            "$ref": "#/components/schemas/CopperSmeltDetails"
          },
          "declaredValue": {
            "$ref": "#/components/schemas/Money"
          }
        },
        "additionalProperties": false
      },
      "UpdatePackageRequest": {
        "required": [
          "exportCountry",
          "externalId",
          "from",
          "to",
          "weight"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "packageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "houseBillNumber": {
            "maxLength": 16,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "barcode": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "carrierId": {
            "pattern": "^[a-z_]{2,16}$",
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "maxLength": 72,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "from": {
            "$ref": "#/components/schemas/Address"
          },
          "to": {
            "$ref": "#/components/schemas/Address"
          },
          "weight": {
            "$ref": "#/components/schemas/WeightWithoutValidation"
          },
          "exportCountry": {
            "minLength": 1,
            "type": "string"
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "charges": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "entryNumber": {
            "maxLength": 11,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateItemQuantifierRequest"
            },
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isSystem": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateShipmentRequest": {
        "required": [
          "consignee",
          "externalId",
          "shipper",
          "transportation"
        ],
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "shipper": {
            "$ref": "#/components/schemas/Address"
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "importer": {
            "$ref": "#/components/schemas/Address"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "invoiceNumber": {
            "maxLength": 72,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "entryType": {
            "pattern": "^(01|11|13|86|P)$",
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UploadEntryReferenceFileRequest": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "overwrite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UploadEntryReferenceFileResult": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "fileUrl": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "returnCode": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VerificationDocument": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "qrValue": {
            "type": "string",
            "nullable": true
          },
          "barcode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VerifyShipmentRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "VerifyShipmentResult": {
        "type": "object",
        "properties": {
          "shipmentId": {
            "type": "string",
            "format": "uuid"
          },
          "document": {
            "$ref": "#/components/schemas/VerificationDocument"
          },
          "code": {
            "$ref": "#/components/schemas/ShipmentStatusCode"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "$ref": "#/components/schemas/Reason"
          }
        },
        "additionalProperties": false
      },
      "WarehousePackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "platformId": {
            "type": "string",
            "nullable": true
          },
          "sellerId": {
            "type": "string",
            "nullable": true
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "carrierId": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WarehousePackageHold": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "displayCode": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "agencyCode": {
            "type": "string",
            "nullable": true
          },
          "programCode": {
            "type": "string",
            "nullable": true
          },
          "reasonCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WarehouseShipment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clientId": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "shipper": {
            "$ref": "#/components/schemas/Address"
          },
          "consignee": {
            "$ref": "#/components/schemas/Address"
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WarehousePackage"
            },
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackingEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WarehouseShipmentBag": {
        "type": "object",
        "properties": {
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "packages": {
            "type": "integer",
            "format": "int32"
          },
          "scanned": {
            "$ref": "#/components/schemas/ScannedPackageCounts"
          },
          "heldPackages": {
            "$ref": "#/components/schemas/HeldPackageCounts"
          },
          "heldBarcodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WarehouseShipmentPackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "barcode": {
            "type": "string",
            "nullable": true
          },
          "houseBillNumber": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "containerId": {
            "type": "string",
            "nullable": true
          },
          "scans": {
            "$ref": "#/components/schemas/PackageScanFlags"
          },
          "isHeld": {
            "type": "boolean"
          },
          "holds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WarehousePackageHold"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WarehouseShipmentSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "masterBill": {
            "$ref": "#/components/schemas/MasterBillNumber"
          },
          "transportation": {
            "$ref": "#/components/schemas/Transportation"
          },
          "shipperName": {
            "type": "string",
            "nullable": true
          },
          "consigneeName": {
            "type": "string",
            "nullable": true
          },
          "packages": {
            "type": "integer",
            "format": "int32"
          },
          "bags": {
            "type": "integer",
            "format": "int32"
          },
          "heldPackages": {
            "$ref": "#/components/schemas/ShipmentHeldPackageCounts"
          },
          "missingScans": {
            "$ref": "#/components/schemas/MissingScanCounts"
          }
        },
        "additionalProperties": false
      },
      "Weight": {
        "required": [
          "unit",
          "value"
        ],
        "type": "object",
        "properties": {
          "unit": {
            "minLength": 1,
            "pattern": "^[KL]$",
            "type": "string"
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "WeightWithoutValidation": {
        "type": "object",
        "properties": {
          "unit": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Acas"
    },
    {
      "name": "AsyncOperation"
    },
    {
      "name": "DocumentDelivery"
    },
    {
      "name": "DutyCollection"
    },
    {
      "name": "Entry"
    },
    {
      "name": "EntryReferenceFileDelivery"
    },
    {
      "name": "FailedRequests"
    },
    {
      "name": "Logistics"
    },
    {
      "name": "Manifest"
    },
    {
      "name": "Package"
    },
    {
      "name": "PackageScreeningFacade"
    },
    {
      "name": "Platform"
    },
    {
      "name": "PreClear.Api"
    },
    {
      "name": "ProductScreening"
    },
    {
      "name": "ProductStatus"
    },
    {
      "name": "ResourceReference"
    },
    {
      "name": "S321"
    },
    {
      "name": "Shipment"
    },
    {
      "name": "TemuFacade"
    },
    {
      "name": "Tracking"
    },
    {
      "name": "TrackingFileDelivery"
    },
    {
      "name": "WarehouseScanning"
    }
  ]
}