Skip to content

TradeParcelAudit

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.

POSThttps://api.kanagu.dev/v1/parcelaudit/audit
Price
$0.02 per tracking number, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "parcelaudit.audit" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: US
Standards
  • UPS Billing Data Dictionary and GFF HeaderGFF v2.1, August header and November 2026 code workbook2026-10-28Source
  • UPS U.S. Daily Rate & Service Guide2026, September 7 edition2026-09-07Source
  • UPS 90-Day Fuel Surcharge HistoryDomestic Ground/Air, verified weeks 2026-08-03 through 2026-11-012026-10-26Source
  • UPS Value-Added Services and Other Charges with Fuel Surcharge ApplicationMarch 24, 2025 application list2025-03-24Source
  • UPS Delivery and Remote Area Surcharge Listing2026 U.S. 48 destination ZIP codes2025-12-21Source
  • UPS Service GuaranteeU.S. domestic service policy snapshot, including 2026 holiday adjustments2026-11-26Source
  • UPS U.S. Tariff/Terms & Conditions of Service2026, April 17 edition2026-04-17Source
  • FedEx Billing Online U.S. Invoice Download File Data DictionaryDownload Template 3-20-182018-03-20Source
  • FedEx U.S. Service Guide2026 standard list rates and U.S. terms, September 11 edition2026-09-11Source
  • FedEx Historical U.S. Fuel SurchargesDomestic Ground/Home Delivery and Express package weeks through 2026-11-152026-11-09Source
  • FedEx Weekly Fuel Surcharge ChangesDomestic Ground/Home Delivery and Express package weeks 2026-11-16 and 2026-11-232026-11-23Source
  • FedEx Delivery Area Surcharge ZIP codes2026 July 20 U.S. destination ZIP list2026-07-20Source
  • FedEx Money-Back Guarantee Policy2026 February 12 U.S. policy with November 21 commitment adjustments2026-11-21Source
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
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}}]}'
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();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"parcelaudit.audit","input":{"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}}]}}}}'
Request body
{
  "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
      }
    }
  ]
}

Request body

application/json

carrier"ups" | "fedex"required
invoiceCsvstring (max 2097152 chars)required
UPS Global Flat File (250 or 270 columns) or U.S. FedEx Billing Online invoice detail with charge breakdown.
asOfDatestring (date)required
Local date for checking guarantee claim deadlines.
evidencearray of object
evidence[].trackingNumberstringrequired
evidence[].measurementobject
evidence[].measurement.lengthInnumber (≤ 200)required
evidence[].measurement.widthInnumber (≤ 200)required
evidence[].measurement.heightInnumber (≤ 200)required
evidence[].measurement.actualWeightLbnumber (≤ 150)required
evidence[].measurement.referencestring (max 240 chars)required
evidence[].standardPricingbooleanrequired
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[].destinationobject
evidence[].destination.zipstringrequired
evidence[].destination.residentialbooleanrequired
evidence[].destination.area"none" | "standard" | "extended" | "remote"required
Destination tier verified in the applicable carrier ZIP list.
evidence[].destination.referencestring (max 240 chars)required
evidence[].contractobject
evidence[].contract.referencestring (max 240 chars)required
evidence[].contract.effectiveFromstring (date)required
evidence[].contract.effectiveThroughstring (date)required
evidence[].contract.zonestringrequired
evidence[].contract.servicestring (max 40 chars)required
Normalized service ID returned in a shipment audit.
evidence[].contract.baseRatesCentsobjectrequired
Undiscounted list or contract base charges for this service and zone, keyed by whole pounds.
evidence[].contract.transportationDiscountBpsinteger (0 to 10000)required
Discount in basis points (2,500 = 25%).
evidence[].contract.minimumTransportationCentsinteger (0 to 100000000)required
Contract minimum after discount, or 0 when none applies.
evidence[].contract.residentialDiscountBpsinteger (0 to 10000)
Discount in basis points (2,500 = 25%).
evidence[].contract.deliveryAreaDiscountBpsinteger (0 to 10000)
Discount in basis points (2,500 = 25%).
evidence[].contract.fuelDiscountBpsinteger (0 to 10000)
Discount in basis points (2,500 = 25%).
evidence[].contract.dimDivisorinteger (1 to 10000)
Contractual divisor override. Defaults to the carrier's published 139.
evidence[].deliveryobject
evidence[].delivery.commitmentAtstring (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.eventAtstring (date-time)required
evidence[].delivery.correctedDeliveryDatestring (date)
UPS local date of any carrier correction to the tracked delivery time.
evidence[].delivery.eligibilityVerifiedbooleanrequired
True after checking the carrier's exclusions, the payer contract, and any existing credit.
evidence[].delivery.referencestring (max 240 chars)required

Response

200 · application/json

carrier"ups" | "fedex"required
currency"USD"required
standardsarray of objectrequired
standards[].namestringrequired
standards[].versionstringrequired
standards[].datestring (date)required
standards[].urlstring (uri)required
verificationstringrequired
unassignedInvoiceRowsarray of integer (-9007199254740991 to 9007199254740991)required
Rows without a tracking number; excluded from package calculations and metering.
shipmentsarray of objectrequired
shipments[].trackingNumberstringrequired
shipments[].invoiceNumbersarray of stringrequired
shipments[].csvRowsarray of integer (-9007199254740991 to 9007199254740991)required
Physical line numbers at which each CSV record ends.
shipments[].servicestring | nullrequired
shipments[].shipDatestring (date) | nullrequired
shipments[].destinationZipstring | nullrequired
shipments[].status"matched" | "differences_found" | "needs_review"required
shipments[].weightobject | nullrequired
shipments[].contractReferencestring | nullrequired
shipments[].destinationEvidenceobject | nullrequired
shipments[].fuelRateobject | nullrequired
shipments[].billedChargesCentsobject | nullrequired
shipments[].expectedChargesCentsobjectrequired
shipments[].billedTotalCentsinteger (-9007199254740991 to 9007199254740991) | nullrequired
shipments[].expectedTotalCentsinteger (-9007199254740991 to 9007199254740991) | nullrequired
shipments[].billedMinusExpectedCentsinteger (-9007199254740991 to 9007199254740991) | nullrequired
shipments[].refundobjectrequired
shipments[].refund.status"not_assessed" | "needs_review" | "service_suspended" | "on_time" | "deadline_passed" | "candidate"required
shipments[].refund.claimBystring (date) | nullrequired
shipments[].refund.transportationCentsinteger (0 to 9007199254740991) | nullrequired
shipments[].refund.evidenceReferencestring | nullrequired
shipments[].findingsarray of objectrequired
shipments[].findings[].codestringrequired
shipments[].findings[].effect"needs_review" | "dispute" | "difference"required
shipments[].findings[].locationstringrequired
shipments[].findings[].rulestringrequired
shipments[].findings[].sourcestring (uri)required
shipments[].findings[].expectedstringrequired
shipments[].findings[].actualstringrequired

Try it

parcelaudit.audit

$0.02/tracking number

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_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.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$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 schema
{
  "$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
}