Overview
UPS invoices come from the UPS Billing Center as a CSV and a PDF per invoice. Each CSV row is a single charge: a shipment with a base freight charge, a fuel surcharge, and a tax becomes three rows that share the sameTracking Number and Invoice Number. The columns cover shipment identification, package details, charges, sender/receiver/third-party addresses, customs data (for international shipments), and freight-forwarding metadata.
Files you’ll receive
Trackstar archives both files for every invoice on the account and on any UPS billing plan the login can see. Each has its own entry in the Files API.
UPS chooses the file name, which carries the invoice number and the invoice date. Plan invoices are named by plan number instead of invoice number. A plan number repeats every billing period, so the date is what tells two plan invoices apart. When UPS sends a download as a zip, Trackstar unpacks it and archives the CSV or PDF inside, so you never receive a zip.
Shape notes
- 250 names, 270 values on account invoices. Account invoice CSVs downloaded since August 31, 2026 have 270 values per row, whatever the invoice date; ones downloaded earlier have 250. UPS does not publish names for the last 20, so the header row Trackstar adds still has 250 names and each data row has 20 more values than the header. So far those 20 columns have always been empty. Plan invoice CSVs are still 250 values wide. If you read the file with a header-keyed CSV reader, expect the extra values to land under an unnamed key.
- Multi-row shipments. Expect 2–5 rows per
Tracking Number, one per charge type. - Net vs. gross.
Net Amountis what the customer paid for the charge.Incentive Amountis the discount;Net Amount + Incentive Amount = gross charge before discount. - Charge types are coded. The
Charge Classification Codecolumn contains a 3-letter code (FRT,FSC,ACC,TAX, etc.). Trackstar maps these to the descriptions listed under Mapping to invoice line items. - Two date formats.
Transaction Dateis usuallyYYYY-MM-DD, but some US charge rows useMM/DD/YYYY. Trackstar converts both to ISO 8601 intransaction_date. - Account-level charges have no transaction date. Miscellaneous charges billed to the account rather than to a shipment leave
Transaction Dateblank. Trackstar usesInvoice Datefor those rows. - International columns. The majority of columns (
Customs Number,Duty Amount,VAT Amount, etc.) are only populated for international shipments. Most domestic US rows leave them empty. - Place Holder columns.
Place Holder 46–48andPlace Holder 50–59are empty columns reserved by UPS. There is noPlace Holder 49; that position holdsSCC Scale Weight.
Sample rows
Curated subset showing the most shape-informative columns. The downloadable CSV below has every column.Download
Download full sample CSV (25 rows, 250-name header, 270 values per row) The sample is shaped like an account invoice: a 250-name header row with 270 values in every data row. Two rows use theMM/DD/YYYY transaction date format.
All sample data is synthetic. Tracking numbers, account numbers, addresses, and reference fields are fabricated and do not correspond to any real shipments or customers.
Mapping to invoice line items
Each CSV row becomes one invoice line item.Fields
UPS columns are grouped below by functional family, not in file order. The header row of the downloadable CSV has all 250 names in the order they appear in the file.Invoice identification
Shipment and package
Charges
Addresses
UPS ships four address blocks per row (Sender, Receiver, Third Party, Sold To) plus two optional “Miscellaneous Address” blocks. Each block has the same 8 columns.Shipment lifecycle dates
Customs and international freight
Most of these columns are empty for domestic US shipments.Freight and reference numbers
Miscellaneous and placeholder
On account invoices, 20 unnamed values follow
Place Holder 59 on every row. See Shape notes.