Freight Invoice - JSON Specification

Summary

Use this format to send invoices for freight and other logistics related services.
NameDescription
RootThe top level document
ServiceInvoiceAn invoice for supply chain related services (not a commercial invoice)
ServiceInvoiceLineA line on an invoice
ShipmentA shipment of products.
LocodeA UN/LOCODE
AddressA physical location.
ContainerA container used to ship goods
PurchaseOrderAn order for a physical product from a supplier to a customer.
NativeReferenceNumberA raw reference number value received from a source system. This document is meant to relay a platform's native reference number values in as close to the native format as possible and should not be utilized for any business logic purposes. If a reference number is required for any business logic aside from passing through reference number values, it should be added as an actual property to a canonical document.
NameData TypeDescriptionRequired
doc_typeStringAlways freight_invoice_json
invoicesArray<ServiceInvoice>Array of invoices
versionStringThe version of the specification being used.
NameData TypeDescriptionRequired
attachmentsArray<Attachment>Attachments related to this invoice.
bill_to_address_1StringFirst address line of the bill to party
bill_to_address_2StringSecond addresss line of the bill to party
bill_to_cityStringCity of the bill to party
bill_to_contact_emailStringContact's email address at the bill to party
bill_to_contact_nameStringContact's name at the bill to party
bill_to_contact_phoneStringContact's phone number at the bill to party
bill_to_countryString2 character ISO country code of the bill to party
bill_to_idStringIdentifying code for the bill to party used by the invoicing party
bill_to_nameStringName of the bill to party
bill_to_postal_codeStringPostal Code of the bill to party
bill_to_stateStringState of the bill to party
branch_codeStringThe invoicing company's branch, office, or location responsible for issuing this invoice line.
cancel_reason_codeStringA reason code for when the invoice is cancelled.
cancel_reason_code_descriptionStringA reason code description for when the invoice is cancelled.
cancelledBooleanIf True, this invoice data represents a cancelled invoice.
converted_currencyStringA second currency for the converted_* fields
converted_total_dueDecimalThe total_due converted to another currency
currencyString3 letter currency code
department_codeStringThe invoicing company's department that is responsible for issuing this invoice.
due_dateDateTimeThe date that payment is due.
invoice_descriptionStringA description of the services rendered and covered by the invoice.
invoice_linesArray<ServiceInvoiceLine>The invoice's lines
invoice_numberStringThe invoice number issued by the invoicing party
invoice_typeStringThe invoice type determined by the invoicing party.
issued_dateDateTimeThe time the issue was issued by the invoicing party
outstanding_amountDecimalThe remaining amount of money owed on an invoice.
paid_dateDateTimeThe date the invoice was paid in full.
payment_term_daysIntegerNumber of days until payment is due from the issued_date
payment_termsStringPayment terms (like COD or NET30)
post_dateDateTimeThe date the invoice was posted to the accounting ledger.
purchase_ordersArray<PurchaseOrder>An order for a physical product from a supplier to a customer.
remit_to_address_1StringFirst address line of the remit to party
remit_to_address_2StringSecond addresss line of the remit to party
remit_to_cityStringCity of the remit to party
remit_to_contact_emailStringContact's email address at the remit to party
remit_to_contact_nameStringContact's name at the remit to party
remit_to_contact_phoneStringContact's phone number at the remit to party
remit_to_countryString2 character ISO country code of the remit to party
remit_to_idStringIdentifying code for the remit to party used by the invoicing party
remit_to_nameStringName of the remit to party
remit_to_postal_codeStringPostal Code of the remit to party
remit_to_stateStringState of the remit to party
service_invoice_uidStringA database level unique ID for the invoice. For the invoice number normally printed on the invoice, use invoice_number
shipmentsArray<Shipment>Shipments related to this invoice. If one shipment is provided, then assume all lines on the shipment are related to that shipment. If multiple shipments are provided, then link the shipment to the appropriate ServiceInvoiceLine by matching the shipment's source_system_uid to the line's shipment_uid.
total_dueDecimalTotal amount due
NameData TypeDescriptionRequired
branch_codeStringCode for the branch that should be associated with the revenue (use on the lines associated with revenue_invoices)
charge_codeStringCharge code assigned by the invoicing party
converted_currencyStringA second currency for the converted_* fields
converted_total_costDecimalThe total_cost for the invoice line after converting to the converted_currency.
currencyString3 character currency code. (If populated, overrides the currency code at the Invoice header)
department_codeStringThe invoicing company's department responsible for issuing this invoice line.
descriptionStringDescription of the invoice being charged
line_numberStringUnique identifier within the invoice for the line. (Usually a sequental number)
quantityDecimalThe number of items being invoiced.
shipment_uidStringForeign key link to the Shipment source_system_uid. Only required if multiple shipments are attached to the invoice.
tax_rate_codeStringThe code representing tax calculation used for the invoice line
total_costDecimalThe cost of all items being invoiced on the line
total_taxNumberThe total amount of tax added to invoice line. Use line level tax amounts when different tax rates are applied to individual lines.
unit_priceDecimalThe cost of one item
NameData TypeDescriptionRequired
agent_referenceStringReference number provided by the agent
arrival_portLocodeThe port of arrival in the final destination country
arrival_port_actualDateTimeActual date the shipment arrived at the final air or ocean port (not including final inland transportation)
arrival_port_estimatedDateTimeEstimated date the shipment will arrive at the final air or ocean port (not including final inland transportation)
bill_of_lading_typeStringType of bill of lading like Straight
booking_referenceStringBooking reference number provided by the party making the booking
booking_submitted_actualDateTimeThe date the booking was submitted by the shipper
cargo_ready_actualDateTimeActual date and time the cargo was be available
cargo_ready_estimatedDateTimeEstimated date and time the cargo will be available
carrier_instructionsStringInstructions to the carrier.
carrier_scacStringCarrier's Standard Carrier Alpha Code (SCAC)
chargeable_weight_kgsDecimalThe shipment's weight used for billing in KGs. Generally the greater of the gross or dimensional weight
consigneeAddressThe party to whom the goods are consigned
consignorAddressThe party who is consigning the goods
containerization_typeStringHow the shipment will be containerized (FCL, LCL, Loose, FTL, LTL)
containersArray<Container>Containers on the shipment
created_byUserDeprecated - Please see version > 1.92 and use the operator property or trigger_event.triggered_by instead.

User who created the shipment.

created_onDateTimeTime this record was created in the source system.
cutoff_time_bolDateTimeThe final cutoff date and time for submitting the final bill of lading instructions
cutoff_time_physicalDateTimeThe final cutoff date and time for the physical delivery of the freight
cutoff_time_vgmDateTimeThe final cutoff date and time for submitting the verified gross mass (VGM) information
delivery_actualDateTimeThe time when the shipment was delivered to its final location.
departure_actualDateTimeActual date and time the cargo departed from its origin point
departure_estimatedDateTimeEstimated date and time the cargo will depart from it's origin point
description_of_goodsStringDescription of goods in the shipment
final_destination_portLocodeThe final port including any inland transportation.
forwarder_controlling_branch_codeStringThe forwarder's main branch responsible for the shipment
forwarder_origin_branchStringThe branch of freight forwarder responsible for shipment.
forwarder_origin_departmentStringThe department of freight forwarder responsible for shipment.
forwarder_referenceStringShipment reference number assigned by the freight forwarder
forwarder_scacStringSCAC or other assigned code for the freight forwarder
freight_payment_termsStringThe terms by which the freight will be paid, like Prepaid or Collect
gross_weight_kgsDecimalGross weight of the shipment in kilograms
house_billStringHouse bill of lading number
import_portLocodeThe port where the shipment will be declared to the import customs authority, generally provided on an international shipment
inco_termStringThe INCOTerm under which the product is moving like FOB, DDP, etc.
lading_portLocodeThe port of lading
loading_actualDateTimeActual date the shipment was loaded onto the vessel
loading_estimatedDateTimeEstimated date the shipment will be loaded onto the vessel
master_billStringMaster bill of lading number
native_reference_numbersArray<NativeReferenceNumber>Raw reference numbers from source systems
notify_partyAddressThe notify party on the bill of lading
number_of_packagesDecimalNumber of packages in the shipment
sent_dateDateTimeTime the record was sent by the source system.
service_levelStringService level to be used (like EXP or STD). These will vary per service provider
ship_fromAddressThe starting point of the shipment
ship_toAddressThe ending point of the shipment
shipperAddressThe party that is responsible for causing the the goods to be shipped. Often the Beneficial Cargo Owner (BCO).
shipper_referenceStringReference number provided by the shipper
transmission_uidStringA one-time unique identifying code for this transmission of the shipment in question. Used for tracing and logging purposes.
transport_modeStringMode of transportation (AIR, ROAD, SEA, RAIL)
vessel_nameStringName of vessel (for multi-leg shipments, use the primary leg information)
volume_cbmsDecimalVolume of the shipment in cubic meters
volume_cfDecimalVolume of the shipment in cubic feet.
voyage_numberStringVoyage or flight number (for multi-leg shipments, use the primary leg information)
NameData TypeDescriptionRequired
descriptionStringA description of the port (like Long Beach)
unlocodeStringA valid UN/LOCODE (like USLGB)
NameData TypeDescriptionRequired
address_1StringThe first line of the address.
address_2StringThe second line of the address.
address_typeStringThe type of address represented by this element. Specific types may be defined on a per specification basis
cityStringThe city.
countryStringThe 2-Digit ISO 3166 Alpha-2 Country Code. Like 'US'
country_nameStringThe full name of the country like “United States”
nameStringThe name associated with the address.
phone_numberStringThe contact phone number
postal_codeStringThe postal or ZIP code.
stateStringThe state, province, or administrative division code
state_nameStringThe full name of the state, province, or administrative division.
unlocodeStringThe UN/LOCODE associated with the address. Like 'USCHI'
NameData TypeDescriptionRequired
container_numberStringIdentifying container number (including SCAC prefix)
NameData TypeDescriptionRequired
customer_order_numberStringThe purchasing party's order number for the purchase order.YES
NameData TypeDescriptionRequired
codeStringA code identifying the type of reference number (ex. EDIREF, PO2, ).
descriptionStringA plain-text description of the reference number code. (ex. "EDI Reference Number", "Secondard PO Number").
valueStringThe reference number value.

Example