Entry Response Explanations
uploadEntry responses
If everything goes correctly, the system will respond with the following:
<accepted>
	<entry-no>ABC-0000001-1</entry-no>
</accepted>

This, however does not mean the entry was accepted by customs. It only states that the entry has been successfully uploaded into the system.

If you include the <transmit> tag, the response will also include the following:

<accepted>
	<transmitted />
	<entry-no>ABC-0000001-1</entry-no>
</accepted>

or:
<accepted>
	<not-transmitted>entry contains errors</not-transmitted>
	<entry-no>ABC-0000001-1</entry-no>
</accepted>

An accepted entry may also include warnings. They would be returned as follows:
<accepted>
	<warning>Warning message appears here</warning>
	<entry-no>ABC-0000001-1</entry-no>
</accepted>

For Type 86 entries, additional warnings have been added to help assist brokers to be compliant with CBP regulations. The following checks have been put into place:
1. If a description is used that matches our internal list of generic descriptions, we will give a warning to update the description to be more specific. (e.g. Items would be a generic description that CBP might flag)
2. If a description is used for multiple different HTS codes in the upload, our system will throw a warning to make each tariff have a unique description.
3. Each tariff needs a description. If there is not one, the system will throw a warning to inform the user.
4. Chapter 98 tariffs are invalid for type 86 entries.
5. The consignee name will be checked against a list of invalid consignees provided by CBP.
6. Check if the weight to value ratio (weight per kilogram / value in dollars) is greater than 1.
7. Check to see if the preparer port is required or invalid

These warnings could be configured to "Informational", "Error", or "None" under Account -> Preferences -> Broker Preferences.
1. Information - The system will create the entry and provide the warnings as shown in the example below
2. Error - The system will not create the entry and provide the cbp-warnings inside a <rejection> tag
3. None - The system will not check for these warnings at all.

The system will report these errors in the <cbp-warning> tag as a direct child of the <accepted> tag. The below is an example with the "Informational CBP Warnings" setting and the Entry Number in the request.
<accepted>
  <warning>Existing warning message appears here</warning>
  <entry-no>ABC-0000001-1</entry-no>
  <cbp-warnings>
    <entity-warning>
      <entity-type>ENTRY_NUMBER</entity-type>
      <entity-id>ABC-0000001-1</entity-type>
      <warning>
        <type>hts-duplicate-description</type>
        <description>Multiple HTS cannot contain same Description</description>
        <invalid-item>HATS</invalid-item>
      </warning>
      <warning>
        <type>hts-generic-description</type>
        <description>HTS has a generic Description</description>
        <invalid-item>ITEMS</invalid-item>
      </warning>
      <warning>
        <type>hts-value-ratio</type>
        <description>
          The Value to Weight ratio must not exceed 1.0 KG per dollar
        </description>
        <invalid-item>220.0</invalid-item>
      </warning>
      <warning>
        <type>invalid-consignee</type>
        <description>The consignee is invalid</description>
        <invalid-item>CRAZY GRANDMA</invalid-item>
      </warning>
      <warning>
        <type>preparer-port</type>
        <description>The Preparer Port is Required</description>
        <invalid-item></invalid-item>
      </warning>
    </entity-warning>
  </cbp-warnings>
</accepted>

An example with the "Error CBP Warnings" setting and with the system genenerated entry number in request
<rejected>
  <cbp-warnings>
    <entity-warning>
      <entity-type>INVOICE_NUMBER</entity-type>
      <entity-id>12345</entity-type>
      <warning>
        <type>hts-duplicate-description</type>
        <description>Multiple HTS cannot contain same Description</description>
        <invalid-item>HATS</invalid-item>
      </warning>
      <warning>
        <type>hts-generic-description</type>
        <description>HTS has a generic Description</description>
        <invalid-item>ITEMS</invalid-item>
      </warning>
    </entity-warning>
    <entity-warning>
      <entity-type>NO_ID</entity-type>
      <entity-id></entity-type>
      <warning>
        <type>invalid-consignee</type>
        <description>The consignee is invalid</description>
        <invalid-item>CRAZY GRANDMA</invalid-item>
      </warning>
      <warning>
        <type>preparer-port</type>
        <description>The Preparer Port Should match the Account Processing Port</description>
        <invalid-item>3001</invalid-item>
      </warning>
    </entity-warning>
  </cbp-warnings>
</rejected>


The entity-type has the following valid values for the Entry Web Service -
1. ENTRY_NUMBER - This will be used if the xml provides a entry number in the request
2. INVOICE_NUMBER - This will be used if there is no entry number in xml and the error is in the invoice
3. HOUSE_BILL - This will be used if there is no entry number in the xml and the issue is outside of the Invoice (i.e. invalid consignee)
4. NO_ID - This will be used if there is no entry number in the request, the error is outside of the invoice, and there is no House bill
*** If entity-type is ENTRY_NUMBER, the entity-id will be {Filer Code}-{Entry Number}-{Check Digit} (i.e. ST9-1000001-1). ***
Each Request could have multiple entity-warning tags if the entry number is not specified in request

If there are problems, they will be in the following forms:
<rejected>username/password invalid</rejected>
<rejected>
    <validation-error>
        Line 31: cvc-complex-type.2.4.a: Invalid content was found starting with element
        'bad-tag'. One of '{"http://www.netchb.com/xml/entry":entry-no,
        "http://www.netchb.com/xml/entry":precalculated}' is expected.
    </validation-error>
</rejected>
<rejected>duplicate entry number</rejected>
<rejected>
    importer not found - an importer with tax id 11-12345678 must be in the user's importer table
</rejected>
<rejected>you do not have sufficient privileges</rejected>
<error><!-- A stack trace would be included here --></error>
amendEntry responses
The responses for the amendEntry operation are the same as the responses for uploadEntry above.
queryEntryStatus responses
For a successfully submitted request, the response will be returned as shown below. The structure is very similar to the XML structure for uploading an entry.
<?xml version="1.0" encoding="ISO-8859-1"?>
<entry>
  <entry-no>ST9-0000601-1</entry-no>
  <total-value>10,549.00</total-value>
  <total-duty>464.15</total-duty>
  <total-tax/>
  <total-anti-dumping/>
  <total-countervailing/>
  <total-fees>
    <fee>
      <class-code>499</class-code>
      <amount>25.00</amount>
    </fee>
    <fee>
      <class-code>501</class-code>
      <amount>10.00</amount>
    </fee>
  </total-fees>
  <status-7501>Accepted</status-7501>
  <status-3461>05</status-3461>
  <status-3461-description>Paperless</status-3461-description>
  <status-fda/>
  <status-fda-description/>
  <fda-proceed-date/>
  <status-manifest/>
  <status-manifest-description/>
  <cargo-release-date>2011-01-31</cargo-release-date>
  <header>
    <importer>
      <tax-id>354-58-4564</tax-id>
      <name><![CDATA[ABC Importer]]></name>
      <address1><![CDATA[789 Freeway]]></address1>
      <address2><![CDATA[Suite 5]]></address2>
      <city><![CDATA[Los Angeles]]></city>
      <state>CA</state>
      <zip>92001</zip>
    </importer>
    <ultimate-consignee>
      <tax-id>31-181480700</tax-id>
      <name><![CDATA[Ferrari USA]]></name>
      <address1><![CDATA[3567 Speedway]]></address1>
      <address2/>
      <city><![CDATA[New York]]></city>
      <state>NY</state>
      <zip>90001</zip>
    </ultimate-consignee>
    <processing-port>2605</processing-port>
    <entry-port>2609</entry-port>
    <entry-date>2011-01-31</entry-date>
    <entry-type>01</entry-type>
    <bond-type>9</bond-type>
    <payment-type>7</payment-type>
    <statement-date>2011-02-11</statement-date>
    <statement-no>4611103449</statement-no>
    <charges>550.00</charges>
    <gross-weight>225</gross-weight>
    <description><![CDATA[WINDOW DISPLAY]]></description>
    <cf-4811>12-12345678</cf-4811>
    <missing-docs/>
    <electronic-invoice>E</electronic-invoice>
    <surety-code>856</surety-code>
    <add-cvd-surety-code/>
    <state-destination/>
    <vessel-name/>
    <mode-transportation>40</mode-transportation>
    <unlading-port>8888</unlading-port>
    <import-date>2011-01-31</import-date>
    <arrival-date>2011-01-31</arrival-date>
    <carrier-code>AA</carrier-code>
    <broker-reference-no>0000601</broker-reference-no>
    <customer-reference-no/>
    <voyage-no>12345</voyage-no>
    <location-of-goods>U200</location-of-goods>
    <firms-code-name>DANZAS CORPORATION</firms-code-name>
    <nafta-recon/>
    <other-recon/>
    <bond-amount>11,100</bond-amount>
    <bond-producer-account-no>AB12345678</bond-producer-account-no>
    <general-order-no/>
    <team-no/>
    <informal-fee/>
    <mail-fee/>
    <manual-surcharge/>
    <consolidated-informal-indicator/>
  </header>
  <manifest>
    <inbond-date/>
    <bill-of-lading>
      <inbond-no/>
      <master-scac/>
      <master-bill>93237963763</master-bill>
      <house-scac/>
      <house-bill/>
      <sub-house-bill/>
      <quantity>40</quantity>
      <unit>PKGS</unit>
    </bill-of-lading>
  </manifest>
  <invoices>
    <invoice>
      <invoice-no>12</invoice-no>
      <aii-supplier-id>CNSHAAGR356SHA</aii-supplier-id>
      <line-items>
        <line-item>
          <line-no>1</line-no>
          <export-date>2010-11-10</export-date>
          <country-origin>GB</country-origin>
          <manufacturer-id>GBTEDBAK6LON</manufacturer-id>
          <country-export>CN</country-export>
          <lading-port/>
          <related-party>N</related-party>
          <irs-tax/>
          <commercial-description/>
          <add-case-number/>
          <add-rate/>
          <cvd-case-number/>
          <cvd-rate/>
          <gross-weight>156</gross-weight>
          <invoice-quantity/>
          <charges>396</charges>
          <visa-no/>
          <tariffs>
            <tariff>
              <tariff-no>9618000000</tariff-no>
              <tariff-description><![CDATA[MANNEQUINS AUTOMATONS& DISPLAY]]></tariff-description>
              <value>7,593.00</value>
              <duty>334.09</duty>
              <quantity1/>
              <unit-of-measure1>X</unit-of-measure1>
              <quantity2/>
              <unit-of-measure2/>
              <special-program/>
              <secondary-special-program/>
              <specific-rate>0</specific-rate>
              <ad-valorem-rate>0.044</ad-valorem-rate>
              <other-rate>0</other-rate>
              <duty-computation-code>7</duty-computation-code>
            </tariff>
          </tariffs>
          <fees>
            <fee>
              <class-code>499</class-code>
              <amount>15.95</amount>
            </fee>
          </fees>
        </line-item>
        <line-item>
          <line-no>2</line-no>
          <export-date>2010-11-10</export-date>
          <country-origin>GB</country-origin>
          <manufacturer-id>GBTEDBAK6LON</manufacturer-id>
          <country-export>CN</country-export>
          <lading-port/>
          <related-party>N</related-party>
          <irs-tax/>
          <commercial-description/>
          <add-case-number/>
          <add-rate/>
          <cvd-case-number/>
          <cvd-rate/>
          <gross-weight>10</gross-weight>
          <invoice-quantity/>
          <charges>25</charges>
          <visa-no/>
          <tariffs>
            <tariff>
              <tariff-no>9618000000</tariff-no>
              <tariff-description><![CDATA[MANNEQUINS AUTOMATONS& DISPLAY]]></tariff-description>
              <value>478.00</value>
              <duty>21.03</duty>
              <quantity1/>
              <unit-of-measure1>X</unit-of-measure1>
              <quantity2/>
              <unit-of-measure2/>
              <special-program/>
              <secondary-special-program/>
              <specific-rate>0</specific-rate>
              <ad-valorem-rate>0.044</ad-valorem-rate>
              <other-rate>0</other-rate>
              <duty-computation-code>7</duty-computation-code>
            </tariff>
          </tariffs>
          <fees>
            <fee>
              <class-code>499</class-code>
              <amount>1.00</amount>
            </fee>
          </fees>
        </line-item>
        <line-item>
          <line-no>3</line-no>
          <export-date>2010-11-10</export-date>
          <country-origin>GB</country-origin>
          <manufacturer-id>GBTEDBAK6LON</manufacturer-id>
          <country-export>CN</country-export>
          <lading-port/>
          <related-party>N</related-party>
          <irs-tax/>
          <commercial-description/>
          <add-case-number/>
          <add-rate/>
          <cvd-case-number/>
          <cvd-rate/>
          <gross-weight>10</gross-weight>
          <invoice-quantity/>
          <charges>25</charges>
          <visa-no/>
          <tariffs>
            <tariff>
              <tariff-no>9618000000</tariff-no>
              <tariff-description><![CDATA[MANNEQUINS AUTOMATONS& DISPLAY]]></tariff-description>
              <value>478.00</value>
              <duty>21.03</duty>
              <quantity1/>
              <unit-of-measure1>X</unit-of-measure1>
              <quantity2/>
              <unit-of-measure2/>
              <special-program/>
              <secondary-special-program/>
              <specific-rate>0</specific-rate>
              <ad-valorem-rate>0.044</ad-valorem-rate>
              <other-rate>0</other-rate>
              <duty-computation-code>7</duty-computation-code>
            </tariff>
          </tariffs>
          <fees>
            <fee>
              <class-code>499</class-code>
              <amount>1.00</amount>
            </fee>
          </fees>
        </line-item>
      </line-items>
    </invoice>
    <invoice>
      <invoice-no>5</invoice-no>
      <aii-supplier-id>CNSHAAGR356SHA</aii-supplier-id>
      <line-items>
        <line-item>
          <line-no>1</line-no>
          <export-date>2010-11-10</export-date>
          <country-origin>GB</country-origin>
          <manufacturer-id>GBTEDBAK6LON</manufacturer-id>
          <country-export>CN</country-export>
          <lading-port/>
          <related-party>N</related-party>
          <irs-tax/>
          <commercial-description/>
          <add-case-number/>
          <add-rate/>
          <cvd-case-number/>
          <cvd-rate/>
          <gross-weight>21</gross-weight>
          <invoice-quantity/>
          <charges>52</charges>
          <visa-no/>
          <tariffs>
            <tariff>
              <tariff-no>9618000000</tariff-no>
              <tariff-description><![CDATA[MANNEQUINS AUTOMATONS& DISPLAY]]></tariff-description>
              <value>1,000.00</value>
              <duty>44.00</duty>
              <quantity1/>
              <unit-of-measure1>X</unit-of-measure1>
              <quantity2/>
              <unit-of-measure2/>
              <special-program/>
              <secondary-special-program/>
              <specific-rate>0</specific-rate>
              <ad-valorem-rate>0.044</ad-valorem-rate>
              <other-rate>0</other-rate>
              <duty-computation-code>7</duty-computation-code>
            </tariff>
          </tariffs>
          <fees>
            <fee>
              <class-code>499</class-code>
              <amount>2.10</amount>
            </fee>
          </fees>
        </line-item>
      </line-items>
    </invoice>
  </invoices>
</entry>
Entry Status XSD: entry_query.xsd
updateBol responses
If everything goes correctly, the system will respond with the following:
<updated></updated>

If you include the <transmit-bol-update> tag, the response will also include the following:
<updated><transmitted/></updated>

If there are problems, they will be in the following forms:
<rejected>username/password invalid</rejected>
<rejected>
    <validation-error>
        Line 31: cvc-complex-type.2.4.a: Invalid content was found starting with element
        'bad-tag'. One of '{"http://www.netchb.com/xml/bolUpdate":entry,
        "http://www.netchb.com/xml/bolUpdate":manifest}' is expected.
    </validation-error>
</rejected>
<rejected>entry not found</rejected>
<error><!-- A stack trace would be included here --></error>