# parcelaudit.audit

Audit up to 500 tracking numbers from U.S. UPS GFF or FedEx Billing Online CSV against 2026 carrier guides, weekly fuel rates and your measured package, destination, contract and delivery evidence.

- REST: `POST https://api.kanagu.dev/v1/parcelaudit/audit`
- MCP: `call_operation` with `operation: "parcelaudit.audit"` at https://api.kanagu.dev/mcp
- Price: $0.02 USD per tracking number, on successful calls only.
- Auth: `Authorization: Bearer <key>` for REST and `call_operation`. Retries: reuse `Idempotency-Key` (MCP: `idempotencyKey`).

## Compliance coverage

- Domain: Trade
- Jurisdictions: US
- Standard: UPS Billing Data Dictionary and GFF Header GFF v2.1, August header and November 2026 code workbook (2026-10-28) — https://delivery-p55671-e392469.adobeaemcloud.com/adobe/assets/urn%3Aaaid%3Aaem%3A7694b0a6-9906-408a-b41d-09f6d1fc4ff9/original/as/userguide-us-en.zip
- Standard: UPS U.S. Daily Rate & Service Guide 2026, September 7 edition (2026-09-07) — https://assets.ups.com/adobe/assets/urn%3Aaaid%3Aaem%3A356d938a-4f0a-4c71-b50e-bdd890f50b47/original/as/daily-rates-us-en.pdf
- Standard: UPS 90-Day Fuel Surcharge History Domestic Ground/Air, verified weeks 2026-08-03 through 2026-11-01 (2026-10-26) — https://www.ups.com/us/en/support/shipping-support/shipping-costs-rates/fuel-surcharges
- Standard: UPS Value-Added Services and Other Charges with Fuel Surcharge Application March 24, 2025 application list (2025-03-24) — https://assets.ups.com/adobe/assets/urn%3Aaaid%3Aaem%3A7ddafaf6-0ce6-4428-b169-4b27311a1797/original/as/fsc-applicable-charges-us-en.pdf
- Standard: UPS Delivery and Remote Area Surcharge Listing 2026 U.S. 48 destination ZIP codes (2025-12-21) — https://assets.ups.com/adobe/assets/urn%3Aaaid%3Aaem%3A5abedc88-3398-4cec-98b7-08e0bb271544/original/as/area-surcharge-zips-us-en.xlsx
- Standard: UPS Service Guarantee U.S. domestic service policy snapshot, including 2026 holiday adjustments (2026-11-26) — https://www.ups.com/us/en/support/shipping-support/legal-terms-conditions/ups-service-guarantee
- Standard: UPS U.S. Tariff/Terms & Conditions of Service 2026, April 17 edition (2026-04-17) — https://assets.ups.com/adobe/assets/urn%3Aaaid%3Aaem%3Ac6bf8a2f-018f-4aa0-838b-ffc1a75eb1d9/original/as/terms-carriage-us-en.pdf
- Standard: FedEx Billing Online U.S. Invoice Download File Data Dictionary Download Template 3-20-18 (2018-03-20) — https://www.fedex.com/content/dam/fedex/us-united-states/accounts/images/US_FBO_Download_Data_Dictionary.pdf
- Standard: FedEx U.S. Service Guide 2026 standard list rates and U.S. terms, September 11 edition (2026-09-11) — https://www.fedex.com/content/dam/fedex/us-united-states/services/Service_Guide_2026.pdf
- Standard: FedEx Historical U.S. Fuel Surcharges Domestic Ground/Home Delivery and Express package weeks through 2026-11-15 (2026-11-09) — https://www.fedex.com/en-us/shipping/historical-fuel-surcharge.html
- Standard: FedEx Weekly Fuel Surcharge Changes Domestic Ground/Home Delivery and Express package weeks 2026-11-16 and 2026-11-23 (2026-11-23) — https://www.fedex.com/en-us/shipping/fuel-surcharge.html
- Standard: FedEx Delivery Area Surcharge ZIP codes 2026 July 20 U.S. destination ZIP list (2026-07-20) — https://www.fedex.com/content/dam/fedex/us-united-states/services/DAS_Contiguous_Extended_Remote_Alaska_Hawaii_2026.pdf
- Standard: FedEx Money-Back Guarantee Policy 2026 February 12 U.S. policy with November 21 commitment adjustments (2026-11-21) — https://www.fedex.com/en-us/service-guide/money-back-guarantee.html
- Verification: Reconcile carrier CSV detail and recalculate against the pinned UPS and FedEx guides, published fuel weeks and customer-supplied contract and tracking evidence.
- Last reviewed: 2026-11-26

## Request body

- `carrier` ("ups" | "fedex", required)
- `invoiceCsv` (string (max 2097152 chars), required): UPS Global Flat File (250 or 270 columns) or U.S. FedEx Billing Online invoice detail with charge breakdown.
- `asOfDate` (string (date), required): Local date for checking guarantee claim deadlines.
- `evidence` (array of object)
- `evidence[].trackingNumber` (string, required)
- `evidence[].measurement` (object)
- `evidence[].measurement.lengthIn` (number (≤ 200), required)
- `evidence[].measurement.widthIn` (number (≤ 200), required)
- `evidence[].measurement.heightIn` (number (≤ 200), required)
- `evidence[].measurement.actualWeightLb` (number (≤ 150), required)
- `evidence[].measurement.reference` (string (max 240 chars), required)
- `evidence[].standardPricing` (boolean, required): Confirm single-piece, customer packaging, U.S. account list-rate pricing with the supplied contract and no other applicable fees, taxes, special minimum weights or rate rules.
- `evidence[].destination` (object)
- `evidence[].destination.zip` (string, required)
- `evidence[].destination.residential` (boolean, required)
- `evidence[].destination.area` ("none" | "standard" | "extended" | "remote", required): Destination tier verified in the applicable carrier ZIP list.
- `evidence[].destination.reference` (string (max 240 chars), required)
- `evidence[].contract` (object)
- `evidence[].contract.reference` (string (max 240 chars), required)
- `evidence[].contract.effectiveFrom` (string (date), required)
- `evidence[].contract.effectiveThrough` (string (date), required)
- `evidence[].contract.zone` (string, required)
- `evidence[].contract.service` (string (max 40 chars), required): Normalized service ID returned in a shipment audit.
- `evidence[].contract.baseRatesCents` (object, required): Undiscounted list or contract base charges for this service and zone, keyed by whole pounds.
- `evidence[].contract.transportationDiscountBps` (integer (0 to 10000), required): Discount in basis points (2,500 = 25%).
- `evidence[].contract.minimumTransportationCents` (integer (0 to 100000000), required): Contract minimum after discount, or 0 when none applies.
- `evidence[].contract.residentialDiscountBps` (integer (0 to 10000)): Discount in basis points (2,500 = 25%).
- `evidence[].contract.deliveryAreaDiscountBps` (integer (0 to 10000)): Discount in basis points (2,500 = 25%).
- `evidence[].contract.fuelDiscountBps` (integer (0 to 10000)): Discount in basis points (2,500 = 25%).
- `evidence[].contract.dimDivisor` (integer (1 to 10000)): Contractual divisor override. Defaults to the carrier's published 139.
- `evidence[].delivery` (object)
- `evidence[].delivery.commitmentAt` (string (date-time), required): Carrier's effective delivery commitment including holiday or operational extensions, with destination UTC offset.
- `evidence[].delivery.event` ("attempt" | "delivery", required): Use delivery for FedEx. For UPS use the first attempt, or delivery if there was no earlier attempt.
- `evidence[].delivery.eventAt` (string (date-time), required)
- `evidence[].delivery.correctedDeliveryDate` (string (date)): UPS local date of any carrier correction to the tracked delivery time.
- `evidence[].delivery.eligibilityVerified` (boolean, required): True after checking the carrier's exclusions, the payer contract, and any existing credit.
- `evidence[].delivery.reference` (string (max 240 chars), required)

## Response

- `carrier` ("ups" | "fedex", required)
- `currency` ("USD", required)
- `standards` (array of object, required)
- `standards[].name` (string, required)
- `standards[].version` (string, required)
- `standards[].date` (string (date), required)
- `standards[].url` (string (uri), required)
- `verification` (string, required)
- `unassignedInvoiceRows` (array of integer (-9007199254740991 to 9007199254740991), required): Rows without a tracking number; excluded from package calculations and metering.
- `shipments` (array of object, required)
- `shipments[].trackingNumber` (string, required)
- `shipments[].invoiceNumbers` (array of string, required)
- `shipments[].csvRows` (array of integer (-9007199254740991 to 9007199254740991), required): Physical line numbers at which each CSV record ends.
- `shipments[].service` (string | null, required)
- `shipments[].shipDate` (string (date) | null, required)
- `shipments[].destinationZip` (string | null, required)
- `shipments[].status` ("matched" | "differences_found" | "needs_review", required)
- `shipments[].weight` (object | null, required)
- `shipments[].contractReference` (string | null, required)
- `shipments[].destinationEvidence` (object | null, required)
- `shipments[].fuelRate` (object | null, required)
- `shipments[].billedChargesCents` (object | null, required)
- `shipments[].expectedChargesCents` (object, required)
- `shipments[].billedTotalCents` (integer (-9007199254740991 to 9007199254740991) | null, required)
- `shipments[].expectedTotalCents` (integer (-9007199254740991 to 9007199254740991) | null, required)
- `shipments[].billedMinusExpectedCents` (integer (-9007199254740991 to 9007199254740991) | null, required)
- `shipments[].refund` (object, required)
- `shipments[].refund.status` ("not_assessed" | "needs_review" | "service_suspended" | "on_time" | "deadline_passed" | "candidate", required)
- `shipments[].refund.claimBy` (string (date) | null, required)
- `shipments[].refund.transportationCents` (integer (0 to 9007199254740991) | null, required)
- `shipments[].refund.evidenceReference` (string | null, required)
- `shipments[].findings` (array of object, required)
- `shipments[].findings[].code` (string, required)
- `shipments[].findings[].effect` ("needs_review" | "dispute" | "difference", required)
- `shipments[].findings[].location` (string, required)
- `shipments[].findings[].rule` (string, required)
- `shipments[].findings[].source` (string (uri), required)
- `shipments[].findings[].expected` (string, required)
- `shipments[].findings[].actual` (string, required)

## Example

```sh
curl https://api.kanagu.dev/v1/parcelaudit/audit \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"carrier":"fedex","invoiceCsv":"\"Invoice Date\",\"Invoice Number\",\"Express or Ground Tracking ID\",\"Transportation Charge Amount\",\"Net Charge Amount\",\"Service Type\",\"Shipment Date\",\"Rated Weight Amount\",\"Rated Weight Units\",\"Number of Pieces\",\"Recipient State\",\"Recipient Zip Code\",\"Recipient Country/Territory\",\"Shipper State\",\"Shipper Country/Territory\",\"Zone Code\",\"Tracking ID Charge Description\",\"Tracking ID Charge Amount\"\r\n\"20261029\",\"1-234-56789\",\"781234567890\",\"20.00\",\"25.80\",\"FedEx Ground\",\"20261026\",\"6.0\",\"L\",\"1\",\"IL\",\"60607\",\"US\",\"TX\",\"US\",\"04\",\"Fuel Surcharge\",\"5.80\"","asOfDate":"2026-11-02","evidence":[{"trackingNumber":"781234567890","standardPricing":true,"measurement":{"lengthIn":10,"widthIn":10,"heightIn":8,"actualWeightLb":4,"reference":"Warehouse scan PA-1327"},"destination":{"zip":"60607","residential":false,"area":"none","reference":"2026-07-20 FedEx delivery area ZIP list"},"contract":{"reference":"Ground rate card, zone 4","effectiveFrom":"2026-01-05","effectiveThrough":"2026-12-31","service":"ground","zone":"04","baseRatesCents":{"6":2500},"transportationDiscountBps":2000,"minimumTransportationCents":0}}]}'
```

```ts
const res = await fetch("https://api.kanagu.dev/v1/parcelaudit/audit", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "carrier": "fedex",
    "invoiceCsv": "\"Invoice Date\",\"Invoice Number\",\"Express or Ground Tracking ID\",\"Transportation Charge Amount\",\"Net Charge Amount\",\"Service Type\",\"Shipment Date\",\"Rated Weight Amount\",\"Rated Weight Units\",\"Number of Pieces\",\"Recipient State\",\"Recipient Zip Code\",\"Recipient Country/Territory\",\"Shipper State\",\"Shipper Country/Territory\",\"Zone Code\",\"Tracking ID Charge Description\",\"Tracking ID Charge Amount\"\r\n\"20261029\",\"1-234-56789\",\"781234567890\",\"20.00\",\"25.80\",\"FedEx Ground\",\"20261026\",\"6.0\",\"L\",\"1\",\"IL\",\"60607\",\"US\",\"TX\",\"US\",\"04\",\"Fuel Surcharge\",\"5.80\"",
    "asOfDate": "2026-11-02",
    "evidence": [
      {
        "trackingNumber": "781234567890",
        "standardPricing": true,
        "measurement": {
          "lengthIn": 10,
          "widthIn": 10,
          "heightIn": 8,
          "actualWeightLb": 4,
          "reference": "Warehouse scan PA-1327"
        },
        "destination": {
          "zip": "60607",
          "residential": false,
          "area": "none",
          "reference": "2026-07-20 FedEx delivery area ZIP list"
        },
        "contract": {
          "reference": "Ground rate card, zone 4",
          "effectiveFrom": "2026-01-05",
          "effectiveThrough": "2026-12-31",
          "service": "ground",
          "zone": "04",
          "baseRatesCents": {
            "6": 2500
          },
          "transportationDiscountBps": 2000,
          "minimumTransportationCents": 0
        }
      }
    ]
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
```

## Errors

JSON `{"error":{"code","message"}}`.

- 400 `invalid_input`: The body does not match the request schema. The message names each field.
- 400 `invalid_json`: The body is missing or is not valid JSON.
- 400 `invalid_idempotency_key`: Idempotency-Key must be 1–128 visible ASCII characters.
- 401 `invalid_api_key`: The Bearer key is missing, malformed, invalid or inactive.
- 402 `free_allowance_exhausted`: This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.
- 404 `not_found`: No operation at this path.
- 409 `idempotency_conflict`: The Idempotency-Key was already used with a different body.
- 413 `payload_too_large`: JSON bodies may be at most 64 KiB.
- 500 `internal_error`: The call failed on our side. It is not billed; retry with the same Idempotency-Key.

## JSON Schema

Request:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "carrier": {
      "type": "string",
      "enum": [
        "ups",
        "fedex"
      ]
    },
    "invoiceCsv": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2097152,
      "description": "UPS Global Flat File (250 or 270 columns) or U.S. FedEx Billing Online invoice detail with charge breakdown."
    },
    "asOfDate": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "description": "Local date for checking guarantee claim deadlines."
    },
    "evidence": {
      "default": [],
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "trackingNumber": {
            "type": "string",
            "pattern": "^[a-z\\d]{8,26}$"
          },
          "measurement": {
            "type": "object",
            "properties": {
              "lengthIn": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 200
              },
              "widthIn": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 200
              },
              "heightIn": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 200
              },
              "actualWeightLb": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 150
              },
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              }
            },
            "required": [
              "lengthIn",
              "widthIn",
              "heightIn",
              "actualWeightLb",
              "reference"
            ],
            "additionalProperties": false
          },
          "standardPricing": {
            "type": "boolean",
            "description": "Confirm single-piece, customer packaging, U.S. account list-rate pricing with the supplied contract and no other applicable fees, taxes, special minimum weights or rate rules."
          },
          "destination": {
            "type": "object",
            "properties": {
              "zip": {
                "type": "string",
                "pattern": "^\\d{5}$"
              },
              "residential": {
                "type": "boolean"
              },
              "area": {
                "type": "string",
                "enum": [
                  "none",
                  "standard",
                  "extended",
                  "remote"
                ],
                "description": "Destination tier verified in the applicable carrier ZIP list."
              },
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              }
            },
            "required": [
              "zip",
              "residential",
              "area",
              "reference"
            ],
            "additionalProperties": false
          },
          "contract": {
            "type": "object",
            "properties": {
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              },
              "effectiveFrom": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "effectiveThrough": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "zone": {
                "type": "string",
                "pattern": "^\\d{1,3}$"
              },
              "service": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40,
                "description": "Normalized service ID returned in a shipment audit."
              },
              "baseRatesCents": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^(?:[1-9]\\d?|1[0-4]\\d|150)$"
                },
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000
                },
                "description": "Undiscounted list or contract base charges for this service and zone, keyed by whole pounds."
              },
              "transportationDiscountBps": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000,
                "description": "Discount in basis points (2,500 = 25%)."
              },
              "minimumTransportationCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000000,
                "description": "Contract minimum after discount, or 0 when none applies."
              },
              "residentialDiscountBps": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 10000,
                "description": "Discount in basis points (2,500 = 25%)."
              },
              "deliveryAreaDiscountBps": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 10000,
                "description": "Discount in basis points (2,500 = 25%)."
              },
              "fuelDiscountBps": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 10000,
                "description": "Discount in basis points (2,500 = 25%)."
              },
              "dimDivisor": {
                "description": "Contractual divisor override. Defaults to the carrier's published 139.",
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              }
            },
            "required": [
              "reference",
              "effectiveFrom",
              "effectiveThrough",
              "zone",
              "service",
              "baseRatesCents",
              "transportationDiscountBps",
              "minimumTransportationCents"
            ],
            "additionalProperties": false
          },
          "delivery": {
            "type": "object",
            "properties": {
              "commitmentAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Carrier's effective delivery commitment including holiday or operational extensions, with destination UTC offset."
              },
              "event": {
                "type": "string",
                "enum": [
                  "attempt",
                  "delivery"
                ],
                "description": "Use delivery for FedEx. For UPS use the first attempt, or delivery if there was no earlier attempt."
              },
              "eventAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "correctedDeliveryDate": {
                "description": "UPS local date of any carrier correction to the tracked delivery time.",
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "eligibilityVerified": {
                "type": "boolean",
                "description": "True after checking the carrier's exclusions, the payer contract, and any existing credit."
              },
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 240
              }
            },
            "required": [
              "commitmentAt",
              "event",
              "eventAt",
              "eligibilityVerified",
              "reference"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "trackingNumber",
          "standardPricing"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "carrier",
    "invoiceCsv",
    "asOfDate"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "carrier": "fedex",
      "invoiceCsv": "\"Invoice Date\",\"Invoice Number\",\"Express or Ground Tracking ID\",\"Transportation Charge Amount\",\"Net Charge Amount\",\"Service Type\",\"Shipment Date\",\"Rated Weight Amount\",\"Rated Weight Units\",\"Number of Pieces\",\"Recipient State\",\"Recipient Zip Code\",\"Recipient Country/Territory\",\"Shipper State\",\"Shipper Country/Territory\",\"Zone Code\",\"Tracking ID Charge Description\",\"Tracking ID Charge Amount\"\r\n\"20261029\",\"1-234-56789\",\"781234567890\",\"20.00\",\"25.80\",\"FedEx Ground\",\"20261026\",\"6.0\",\"L\",\"1\",\"IL\",\"60607\",\"US\",\"TX\",\"US\",\"04\",\"Fuel Surcharge\",\"5.80\"",
      "asOfDate": "2026-11-02",
      "evidence": [
        {
          "trackingNumber": "781234567890",
          "standardPricing": true,
          "measurement": {
            "lengthIn": 10,
            "widthIn": 10,
            "heightIn": 8,
            "actualWeightLb": 4,
            "reference": "Warehouse scan PA-1327"
          },
          "destination": {
            "zip": "60607",
            "residential": false,
            "area": "none",
            "reference": "2026-07-20 FedEx delivery area ZIP list"
          },
          "contract": {
            "reference": "Ground rate card, zone 4",
            "effectiveFrom": "2026-01-05",
            "effectiveThrough": "2026-12-31",
            "service": "ground",
            "zone": "04",
            "baseRatesCents": {
              "6": 2500
            },
            "transportationDiscountBps": 2000,
            "minimumTransportationCents": 0
          }
        }
      ]
    }
  ]
}
```

Response:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "carrier": {
      "type": "string",
      "enum": [
        "ups",
        "fedex"
      ]
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "standards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "name",
          "version",
          "date",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "verification": {
      "type": "string"
    },
    "unassignedInvoiceRows": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "description": "Rows without a tracking number; excluded from package calculations and metering."
    },
    "shipments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "trackingNumber": {
            "type": "string"
          },
          "invoiceNumbers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "csvRows": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "description": "Physical line numbers at which each CSV record ends."
          },
          "service": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "destinationZip": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "matched",
              "differences_found",
              "needs_review"
            ]
          },
          "weight": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "roundedDimensionsIn": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    ],
                    "items": false,
                    "minItems": 3,
                    "maxItems": 3
                  },
                  "divisor": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "dimensionalWeightLb": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "actualWeightLb": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "expectedBillableWeightLb": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "billedWeightLb": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "evidenceReference": {
                    "type": "string"
                  }
                },
                "required": [
                  "roundedDimensionsIn",
                  "divisor",
                  "dimensionalWeightLb",
                  "actualWeightLb",
                  "expectedBillableWeightLb",
                  "billedWeightLb",
                  "evidenceReference"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "contractReference": {
            "type": [
              "string",
              "null"
            ]
          },
          "destinationEvidence": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "residential": {
                    "type": "boolean"
                  },
                  "area": {
                    "type": "string",
                    "enum": [
                      "none",
                      "standard",
                      "extended",
                      "remote"
                    ]
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "required": [
                  "residential",
                  "area",
                  "reference"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "fuelRate": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "week": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "basisPoints": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "source": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": [
                  "week",
                  "basisPoints",
                  "source"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "billedChargesCents": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "transportation",
                    "residential",
                    "delivery_area",
                    "fuel"
                  ]
                },
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": [
                  "transportation",
                  "residential",
                  "delivery_area",
                  "fuel"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedChargesCents": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "transportation",
                "residential",
                "delivery_area",
                "fuel"
              ]
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": [
              "transportation",
              "residential",
              "delivery_area",
              "fuel"
            ]
          },
          "billedTotalCents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedTotalCents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "billedMinusExpectedCents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "refund": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "not_assessed",
                  "needs_review",
                  "service_suspended",
                  "on_time",
                  "deadline_passed",
                  "candidate"
                ]
              },
              "claimBy": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "transportationCents": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidenceReference": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "status",
              "claimBy",
              "transportationCents",
              "evidenceReference"
            ],
            "additionalProperties": false
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "needs_review",
                    "dispute",
                    "difference"
                  ]
                },
                "location": {
                  "type": "string"
                },
                "rule": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "format": "uri"
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "effect",
                "location",
                "rule",
                "source",
                "expected",
                "actual"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "trackingNumber",
          "invoiceNumbers",
          "csvRows",
          "service",
          "shipDate",
          "destinationZip",
          "status",
          "weight",
          "contractReference",
          "destinationEvidence",
          "fuelRate",
          "billedChargesCents",
          "expectedChargesCents",
          "billedTotalCents",
          "expectedTotalCents",
          "billedMinusExpectedCents",
          "refund",
          "findings"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "carrier",
    "currency",
    "standards",
    "verification",
    "unassignedInvoiceRows",
    "shipments"
  ],
  "additionalProperties": false
}
```
