Download OpenAPI specification:Download
API for use by Freightcom customers. This API uses polling for some long running requests. In those cases the initial request will return a 202 Accepted status.
Request a rate estimate.
services | Array of strings List of service IDs for which to get rates. If not provided then all services will be queried for rates. |
excluded_services | Array of strings Excluded list of service IDs for which to ignore rates from. |
object (ShippingDetails) Details on a shipment. |
{- "services": [
- "string"
], - "excluded_services": [
- "string"
], - "details": {
- "origin": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true
}, - "destination": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true,
- "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}, - "signature_requirement": "not-required"
}, - "expected_ship_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "packaging_type": "pallet",
- "packaging_properties": {
- "pallet_type": "ltl",
- "has_stackable_pallets": true,
- "dangerous_goods": "limited-quantity",
- "dangerous_goods_details": {
- "packaging_group": "string",
- "goods_class": "string",
- "description": "string",
- "united_nations_number": "string",
- "emergency_contact_name": "string",
- "emergency_contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "pallets": [
- {
- "measurements": {
- "weight": {
- "unit": "lb",
- "value": 2.95
}, - "cuboid": {
- "unit": "ft",
- "l": 5,
- "w": 5,
- "h": 5
}
}, - "description": "string",
- "freight_class": "string",
- "nmfc": "string",
- "contents_type": "string",
- "num_pieces": 0
}
], - "pallet_service_details": {
- "limited_access_delivery_type": "construction-site",
- "limited_access_delivery_other_name": "string",
- "in_bond": true,
- "in_bond_details": {
- "type": "immediate-exportation",
- "name": "string",
- "address": "string",
- "contact_method": "email-address",
- "contact_email_address": "string",
- "contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "appointment_delivery": true,
- "protect_from_freeze": true,
- "threshold_pickup": true,
- "threshold_delivery": true
}
}, - "insurance": {
- "type": "internal",
- "total_cost": {
- "currency": "CAD",
- "value": "4250"
}
}, - "reference_codes": [
- "string"
]
}
}
{- "request_id": "string"
}
Retrieve a requested rate. Also includes details on the number of pending rate lookups to perform if any.
rate_id required | string The rate ID to retrieve details on. |
{- "status": {
- "done": true,
- "total": 0,
- "complete": 0
}, - "rates": [
- {
- "carrier_name": "string",
- "service_name": "string",
- "service_id": "string",
- "valid_until": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "total": {
- "currency": "CAD",
- "value": "4250"
}, - "base": {
- "currency": "CAD",
- "value": "4250"
}, - "surcharges": [
- {
- "type": "fuel",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}
}
], - "taxes": [
- {
- "type": "fuel",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}
}
], - "transit_time_days": 5,
- "transit_time_not_available": true
}
]
}
Calculate freight class for pallet dimensions.
object (Box) |
{- "box": {
- "weight": {
- "unit": "lb",
- "value": 2.95
}, - "cuboid": {
- "unit": "ft",
- "l": 5,
- "w": 5,
- "h": 5
}
}
}
{- "freight_class": "50"
}
Book a shipment.
unique_id required | string Maximum length of 128 characters. Uppercase and lowercase characters are considered equal for comparisons. Used to uniquely identify a shipment. If the unique_id matches a previously created shipment that is in the process of booking or booked successfully then a new shipment will NOT be created and the ID for the previously created shipment will be returned. If the previously created shipment had an error during booking or was cancelled then a new shipment with the unique_id will be created and unique_id will be associated with this new shipment. |
payment_method_id required | string Payment method to use, obtained from /finance/payment-methods. |
service_id required | string Service to book with. |
required | object (ShippingDetails) Details on a shipment. |
object Customs invoice info. Required for international shipments. | |
object (PickupDetails) Courier pickup details, required if courier service utilized. | |
object (DispatchDetails) LTL dispatch details, required if dispatch service utilized. |
{- "unique_id": "string",
- "payment_method_id": "string",
- "service_id": "string",
- "details": {
- "origin": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true
}, - "destination": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true,
- "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}, - "signature_requirement": "not-required"
}, - "expected_ship_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "packaging_type": "pallet",
- "packaging_properties": {
- "pallet_type": "ltl",
- "has_stackable_pallets": true,
- "dangerous_goods": "limited-quantity",
- "dangerous_goods_details": {
- "packaging_group": "string",
- "goods_class": "string",
- "description": "string",
- "united_nations_number": "string",
- "emergency_contact_name": "string",
- "emergency_contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "pallets": [
- {
- "measurements": {
- "weight": {
- "unit": "lb",
- "value": 2.95
}, - "cuboid": {
- "unit": "ft",
- "l": 5,
- "w": 5,
- "h": 5
}
}, - "description": "string",
- "freight_class": "string",
- "nmfc": "string",
- "contents_type": "string",
- "num_pieces": 0
}
], - "pallet_service_details": {
- "limited_access_delivery_type": "construction-site",
- "limited_access_delivery_other_name": "string",
- "in_bond": true,
- "in_bond_details": {
- "type": "immediate-exportation",
- "name": "string",
- "address": "string",
- "contact_method": "email-address",
- "contact_email_address": "string",
- "contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "appointment_delivery": true,
- "protect_from_freeze": true,
- "threshold_pickup": true,
- "threshold_delivery": true
}
}, - "insurance": {
- "type": "internal",
- "total_cost": {
- "currency": "CAD",
- "value": "4250"
}
}, - "reference_codes": [
- "string"
]
}, - "customs_invoice": {
- "source": "details",
- "broker": {
- "use_carrier": true,
- "name": "string",
- "account_number": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "fax_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_address": "string",
- "usmca_number": "string",
- "fda_number": "string"
}, - "details": {
- "tax_recipient": {
- "type": "shipper",
- "shipper_tax_identifier": "string",
- "receiver_tax_identifier": "string",
- "third_party_tax_identifier": "string",
- "other_tax_identifier": "string",
- "name": "string",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "reason_for_export": "gift",
- "additional_remarks": "string",
- "comments": "string"
}, - "products": [
- {
- "product_name": "string",
- "weight": {
- "unit": "lb",
- "value": 2.95
}, - "hs_code": "string",
- "country_of_origin": "CA",
- "num_units": 1,
- "unit_price": {
- "currency": "CAD",
- "value": "4250"
}, - "description": "string"
}
]
}
}, - "pickup_details": {
- "pre_scheduled_pickup": true,
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}, - "pickup_location": "string",
- "contact_name": "string",
- "contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "dispatch_details": {
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}
}
}
{- "id": "string",
- "previously_created": true
}
Retrieve details on a shipment.
shipment_id required | string The shipment ID to retrieve details on. |
{- "shipment": {
- "id": "string",
- "unique_id": "string",
- "state": "draft",
- "transaction_number": "string",
- "primary_tracking_number": "string",
- "tracking_numbers": [
- "string"
], - "tracking_url": "string",
- "return_tracking_number": "string",
- "bol_number": "string",
- "pickup_confirmation_number": "string",
- "details": {
- "origin": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true
}, - "destination": {
- "name": "Philip J Fry",
- "address": {
- "address_line_1": "200 University Avenue West",
- "address_line_2": "string",
- "unit_number": "42a",
- "city": "Waterloo",
- "region": "ON",
- "country": "CA",
- "postal_code": "string"
}, - "residential": true,
- "tailgate_required": true,
- "instructions": "string",
- "contact_name": "string",
- "phone_number": {
- "number": "5554447777",
- "extension": "123"
}, - "email_addresses": [
- "user@example.com"
], - "receives_email_updates": true,
- "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}, - "signature_requirement": "not-required"
}, - "expected_ship_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "packaging_type": "pallet",
- "packaging_properties": {
- "pallet_type": "ltl",
- "has_stackable_pallets": true,
- "dangerous_goods": "limited-quantity",
- "dangerous_goods_details": {
- "packaging_group": "string",
- "goods_class": "string",
- "description": "string",
- "united_nations_number": "string",
- "emergency_contact_name": "string",
- "emergency_contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "pallets": [
- {
- "measurements": {
- "weight": {
- "unit": "lb",
- "value": 2.95
}, - "cuboid": {
- "unit": "ft",
- "l": 5,
- "w": 5,
- "h": 5
}
}, - "description": "string",
- "freight_class": "string",
- "nmfc": "string",
- "contents_type": "string",
- "num_pieces": 0
}
], - "pallet_service_details": {
- "limited_access_delivery_type": "construction-site",
- "limited_access_delivery_other_name": "string",
- "in_bond": true,
- "in_bond_details": {
- "type": "immediate-exportation",
- "name": "string",
- "address": "string",
- "contact_method": "email-address",
- "contact_email_address": "string",
- "contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "appointment_delivery": true,
- "protect_from_freeze": true,
- "threshold_pickup": true,
- "threshold_delivery": true
}
}, - "insurance": {
- "type": "internal",
- "total_cost": {
- "currency": "CAD",
- "value": "4250"
}
}, - "reference_codes": [
- "string"
]
}, - "transport_data": { },
- "labels": [
- {
- "size": "letter",
- "format": "pdf",
- "url": "string",
- "padded": true
}
], - "customs_invoice_url": "string",
- "rate": {
- "carrier_name": "string",
- "service_name": "string",
- "service_id": "string",
- "valid_until": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "total": {
- "currency": "CAD",
- "value": "4250"
}, - "base": {
- "currency": "CAD",
- "value": "4250"
}, - "surcharges": [
- {
- "type": "fuel",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}
}
], - "taxes": [
- {
- "type": "fuel",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}
}
], - "transit_time_days": 5,
- "transit_time_not_available": true
}, - "order_source": "string"
}
}
Retrieve tracking events for a shipment.
shipment_id required | string The shipment ID to retrieve details on. |
{- "events": [
- {
- "type": "label-created",
- "when": "string",
- "where": {
- "city": "string",
- "region": "string",
- "country": "string"
}, - "message": "string"
}
]
}
Get details on scheduling.
shipment_id required | string The shipment ID to get the scheduling status. |
{- "status": "pending",
- "error": "string",
- "pickup_confirmation_number": "string"
}
Schedule a dispatch or pickup.
shipment_id required | string The shipment ID to schedule. |
object (PickupDetails) Courier pickup details, required if courier service utilized. | |
object (DispatchDetails) LTL dispatch details, required if dispatch service utilized. |
{- "pickup_details": {
- "pre_scheduled_pickup": true,
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}, - "pickup_location": "string",
- "contact_name": "string",
- "contact_phone_number": {
- "number": "5554447777",
- "extension": "123"
}
}, - "dispatch_details": {
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "ready_at": {
- "hour": 15,
- "minute": 6
}, - "ready_until": {
- "hour": 15,
- "minute": 6
}
}
}
Get a list of documents in a date range.
start_date required | string Example: start_date=2021-07-01 The start date in UTC to search in. |
end_date required | string Example: end_date=2021-07-31 The end date in UTC. |
{- "id": "string",
- "type": "string",
- "number": "string",
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "due_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "owing": {
- "currency": "CAD",
- "value": "4250"
}
}
Get a particular document with details.
document_id required | string The document to retrieve details on. |
{- "id": "string",
- "type": "string",
- "number": "string",
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "due_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "owing": {
- "currency": "CAD",
- "value": "4250"
}, - "urls": { },
- "payments": [
- {
- "id": "string",
- "type": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "data": {
- "credit_card_auth": "string",
- "credit_card_number": "string",
- "credit_card_reference": "string"
}
}
], - "line_items": [
- {
- "id": "string",
- "type": "base",
- "sub_type": "string",
- "payment_id": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "message": "string"
}
]
}
Get invoices for the shipment id
shipment_id required | string The shipment id to retrieve invoices for. |
[- {
- "id": "string",
- "type": "string",
- "number": "string",
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "due_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "owing": {
- "currency": "CAD",
- "value": "4250"
}, - "urls": { },
- "payments": [
- {
- "id": "string",
- "type": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "data": {
- "credit_card_auth": "string",
- "credit_card_number": "string",
- "credit_card_reference": "string"
}
}
], - "line_items": [
- {
- "id": "string",
- "type": "base",
- "sub_type": "string",
- "payment_id": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "message": "string"
}
]
}
]
Get invoices for the shipment transaction number
transaction_number required | string The transaction number to retrieve invoices for. |
[- {
- "id": "string",
- "type": "string",
- "number": "string",
- "date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "due_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "owing": {
- "currency": "CAD",
- "value": "4250"
}, - "urls": { },
- "payments": [
- {
- "id": "string",
- "type": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "data": {
- "credit_card_auth": "string",
- "credit_card_number": "string",
- "credit_card_reference": "string"
}
}
], - "line_items": [
- {
- "id": "string",
- "type": "base",
- "sub_type": "string",
- "payment_id": "string",
- "amount": {
- "currency": "CAD",
- "value": "4250"
}, - "message": "string"
}
]
}
]
Initiate a manifest request.
carrier_id | string |
object Contains additional data that can be used to filter or limit the manifest request. Specific fields required depending upon the carrier. |
{- "carrier_id": "string",
- "manifest_data": {
- "tracking_numbers": [
- "string"
], - "manifest_date": {
- "year": 2006,
- "month": 6,
- "day": 7
}, - "origin_postal_code": "string"
}
}
{- "request_id": "string"
}