Authentications endpoint (same for Production and UAT):
- https://auth.gotrinet.com/realms/trinet-realm/protocol/openid-connect/token
Authentication method: Oauth
Authentication request:
- Headers:
- Content-Type: application/x-www-form-urlencoded
- Body:
- grant_type:password
- client_id:{Your client id}
- client_secret:{Your client secret}
- username:{Integration user}
- password:{Integration password}
Gets rates and creates the shipment. To book a shipment with a specific rate, use the POST /shipments/bookings/rates/:rateId
endpoint.
clientId required | string |
This endpoint takes the shipment data and returns rates from carriers based on its content.
shipperReference required | string An identifier for the shipper. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
receiverReference required | string An identifier for the receiver. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
customerReference required | string An identifier for the customer. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
required | object An object of type CustomBroker that contains custom broker data. |
billTo required | string Enum: "BILL_ME" "SHIPPER_RECEIVER" "THIRD_PARTY" An enum of type BillToOption that specifies the billing mode for the shipment. |
costCenter | number Customer location to billing |
accountNumber required | string The third party account number is used to indicate which customer account should be charged for the shipment |
notes required | string A string that contains any additional notes or comments. |
required | Array of objects (PackageDto) An array of objects of type Package that contains information about each package in the shipment. |
pickupDate required | string A string in ISO 8601 format that specifies the pickup date for the shipment. |
required | object An object of type Person that contains information about the shipper. |
required | object An object of type Person that contains information about the receiver. |
required | object An object of type DangerousGoods that contains information about any dangerous goods in the shipment. Necessary if Dangerous Goods is selected in the accessorials or if HazMat information is provided |
termsOfSale required | string Enum: "DUTIES_AND_TAXES_UNPAID" "DUTIES_AND_TAXES_PAID" An enum of type TermsOfSale that specifies the terms of sale for the shipment. |
expressAccessorials required | Array of arrays An array of strings that specifies any accessorials (additional services) for the shipment. (Must be empty for LTL) |
ltlAccessorials required | Array of arrays An array of strings that specifies any less-than-truckload (LTL) accessorials (additional services) for the shipment. (Must be empty for Express) |
deliveryMode required | string The delivery mode for the shipment. (SINGLE or MULTI_DROP) |
object Container for Shipment Service Options. |
{- "shipperReference": "SHIPPER_REF_123",
- "receiverReference": "RECEIVER_REF_456",
- "customerReference": "CUSTOMER_REF_789",
- "customBroker": {
- "companyName": "Custom Broker Company",
- "accountNumber": "123456",
- "contactName": "John Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com"
}, - "billTo": "BILL_ME",
- "costCenter": "534",
- "accountNumber": "123 456 789",
- "notes": "A string that contains any additional notes or comments",
- "packages": [
- {
- "qte": 1,
- "handlingUnit": 1,
- "length": 25,
- "height": 25,
- "width": 25,
- "weight": 25,
- "commoditySets": [
- {
- "qte": 25,
- "weight": 25,
- "commodityLines": [
- {
- "qte": 25,
- "nmfc": {
- "code": "123456",
- "description": "A description of the NMFC",
- "class": 100
}, - "commodity": {
- "type": "PRODUCT",
- "description": "A description of the commodity",
- "reference": "string",
- "hsCode": "12.56.7890",
- "usmca": "N",
- "hazMat": {
- "hazMatUnNumber": "UN1234",
- "hazMatClass": "1",
- "hazMatPackingGroup": "I",
- "hazMatErapReference": "ERAP1234",
- "hazMatToxicByInhalation": true
}, - "country": "CA",
- "price": 100,
- "currency": "CAD"
}
}
]
}
], - "unitDimension": "CM",
- "unitMass": "KG",
- "weightType": "EACH",
- "dropAddress": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}
}
], - "pickupDate": "2023-03-28T15:00:00.000Z",
- "shipper": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc"
}, - "receiver": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "addressType": "PO"
}, - "dangerousGoods": {
- "dangerousGoodsContact": "string",
- "dangerousGoodsContactPhone": "+1 123-456-7890",
- "dangerousGoodsContactEmail": "string",
- "dangerousGoodsType": "INACCESSIBLE",
- "dangerousGoodsMode": "AIR"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "expressAccessorials": "Saturday Delivery",
- "ltlAccessorials": "Pickup - After Hours",
- "deliveryMode": "SINGLE",
- "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "commercial invoice",
- "contacts": {
- "soldTo": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "taxIdentificationNumber": "string"
}
}
}
}
}
{- "data": [
- {
- "id": "string",
- "carrier": "string",
- "carrierCode": "string",
- "carrierId": 0,
- "serviceLevel": "string",
- "serviceLevelName": "string",
- "expectedDeliveryDate": "string",
- "estimatedTransitDays": 0,
- "transportationMode": "string",
- "provider": "string",
- "surchargesSubtotal": 0,
- "taxesSubtotal": 0,
- "totalPrice": 0,
- "baseServicePrice": 0,
- "fuelPrice": 0,
- "insurancePrice": 0,
- "taxes": {
- "description": "string",
- "value": 0
}, - "accessorials": {
- "description": "string",
- "value": 0
}, - "currency": "string"
}
]
}
Books a shipment without specifying a rate ID, a carrier must be specified for the booking process. Returns a tracking ID for the shipment.
clientId required | string |
required | object Shipment data |
carrierId required | number Carrier id |
serviceLevel required | string Carrier service level |
consolidationId required | number Consolidation id |
required | object or null Pickup data |
{- "data": {
- "shipperReference": "SHIPPER_REF_123",
- "receiverReference": "RECEIVER_REF_456",
- "customerReference": "CUSTOMER_REF_789",
- "customBroker": {
- "companyName": "Custom Broker Company",
- "accountNumber": "123456",
- "contactName": "John Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com"
}, - "billTo": "BILL_ME",
- "costCenter": "534",
- "accountNumber": "123 456 789",
- "notes": "A string that contains any additional notes or comments",
- "packages": [
- {
- "qte": 1,
- "handlingUnit": 1,
- "length": 25,
- "height": 25,
- "width": 25,
- "weight": 25,
- "commoditySets": [
- {
- "qte": 25,
- "weight": 25,
- "commodityLines": [
- {
- "qte": 25,
- "nmfc": {
- "code": "123456",
- "description": "A description of the NMFC",
- "class": 100
}, - "commodity": {
- "type": "PRODUCT",
- "description": "A description of the commodity",
- "reference": "string",
- "hsCode": "12.56.7890",
- "usmca": "N",
- "hazMat": {
- "hazMatUnNumber": null,
- "hazMatClass": null,
- "hazMatPackingGroup": null,
- "hazMatErapReference": null,
- "hazMatToxicByInhalation": null
}, - "country": "CA",
- "price": 100,
- "currency": "CAD"
}
}
]
}
], - "unitDimension": "CM",
- "unitMass": "KG",
- "weightType": "EACH",
- "dropAddress": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}
}
], - "pickupDate": "2023-03-28T15:00:00.000Z",
- "shipper": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc"
}, - "receiver": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "addressType": "PO"
}, - "dangerousGoods": {
- "dangerousGoodsContact": "string",
- "dangerousGoodsContactPhone": "+1 123-456-7890",
- "dangerousGoodsContactEmail": "string",
- "dangerousGoodsType": "INACCESSIBLE",
- "dangerousGoodsMode": "AIR"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "expressAccessorials": "Saturday Delivery",
- "ltlAccessorials": "Pickup - After Hours",
- "deliveryMode": "SINGLE",
- "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "commercial invoice",
- "contacts": {
- "soldTo": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "taxIdentificationNumber": "string"
}
}
}
}
}, - "carrierId": 0,
- "serviceLevel": "string",
- "consolidationId": 1,
- "pickup": {
- "address": {
- "primaryAddress": "Street 123",
- "secondaryAddress": "Street 123",
- "postalCode": "AAA BBB",
- "city": "Montreal",
- "state": "QC",
- "country": "CA"
}, - "date": "string",
- "readyTime": "14:00",
- "closingTime": "16:00",
- "pickupLocation": "BACK_DOOR"
}
}
{- "id": 1,
- "trackingId": "270321192985",
- "consolidation": 1,
- "transactionNumber": "TRI12_34",
- "pickupDate": "2021-03-27T00:00:00.000Z",
- "deliveryDate": "2021-03-27T00:00:00.000Z",
- "documents": [
], - "rate": {
- "carrier": "Fedex",
- "serviceLevel": "STANDARD",
- "totalPrice": 100,
- "totalWithTaxes": 110,
- "accessorials": [
- {
- "description": "Fuel surcharge",
- "value": 10
}
], - "currency": "USD",
- "carrierId": 1
}
}
Books a shipment with a specified rate using the rate ID received from POST /rates. Returns a tracking ID for the shipment.
rateId required | string |
clientId required | string |
required | object Shipment Pickup data |
consolidationId required | number Consolidation id |
{- "pickup": {
- "address": {
- "primaryAddress": "Street 123",
- "secondaryAddress": "Street 123",
- "postalCode": "AAA BBB",
- "city": "Montreal",
- "state": "QC",
- "country": "CA"
}, - "date": "string",
- "readyTime": "14:00",
- "closingTime": "16:00",
- "pickupLocation": "BACK_DOOR"
}, - "consolidationId": 1
}
{- "id": 1,
- "trackingId": "270321192985",
- "consolidation": 1,
- "transactionNumber": "TRI12_34",
- "pickupDate": "2021-03-27T00:00:00.000Z",
- "deliveryDate": "2021-03-27T00:00:00.000Z",
- "documents": [
], - "rate": {
- "carrier": "Fedex",
- "serviceLevel": "STANDARD",
- "totalPrice": 100,
- "totalWithTaxes": 110,
- "accessorials": [
- {
- "description": "Fuel surcharge",
- "value": 10
}
], - "currency": "USD",
- "carrierId": 1
}
}
Gets updated rates for a shipment by ID. To book a shipment with a specific rate, use the POST /shipments/bookings/rates/:rateId
endpoint.
shipmentId required | string |
This endpoint takes the shipment data and returns rates from carriers based on its content.
shipperReference required | string An identifier for the shipper. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
receiverReference required | string An identifier for the receiver. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
customerReference required | string An identifier for the customer. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
required | object An object of type CustomBroker that contains custom broker data. |
billTo required | string Enum: "BILL_ME" "SHIPPER_RECEIVER" "THIRD_PARTY" An enum of type BillToOption that specifies the billing mode for the shipment. |
costCenter | number Customer location to billing |
accountNumber required | string The third party account number is used to indicate which customer account should be charged for the shipment |
notes required | string A string that contains any additional notes or comments. |
required | Array of objects (PackageDto) An array of objects of type Package that contains information about each package in the shipment. |
pickupDate required | string A string in ISO 8601 format that specifies the pickup date for the shipment. |
required | object An object of type Person that contains information about the shipper. |
required | object An object of type Person that contains information about the receiver. |
required | object An object of type DangerousGoods that contains information about any dangerous goods in the shipment. Necessary if Dangerous Goods is selected in the accessorials or if HazMat information is provided |
termsOfSale required | string Enum: "DUTIES_AND_TAXES_UNPAID" "DUTIES_AND_TAXES_PAID" An enum of type TermsOfSale that specifies the terms of sale for the shipment. |
expressAccessorials required | Array of arrays An array of strings that specifies any accessorials (additional services) for the shipment. (Must be empty for LTL) |
ltlAccessorials required | Array of arrays An array of strings that specifies any less-than-truckload (LTL) accessorials (additional services) for the shipment. (Must be empty for Express) |
deliveryMode required | string The delivery mode for the shipment. (SINGLE or MULTI_DROP) |
object Container for Shipment Service Options. |
{- "shipperReference": "SHIPPER_REF_123",
- "receiverReference": "RECEIVER_REF_456",
- "customerReference": "CUSTOMER_REF_789",
- "customBroker": {
- "companyName": "Custom Broker Company",
- "accountNumber": "123456",
- "contactName": "John Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com"
}, - "billTo": "BILL_ME",
- "costCenter": "534",
- "accountNumber": "123 456 789",
- "notes": "A string that contains any additional notes or comments",
- "packages": [
- {
- "qte": 1,
- "handlingUnit": 1,
- "length": 25,
- "height": 25,
- "width": 25,
- "weight": 25,
- "commoditySets": [
- {
- "qte": 25,
- "weight": 25,
- "commodityLines": [
- {
- "qte": 25,
- "nmfc": {
- "code": "123456",
- "description": "A description of the NMFC",
- "class": 100
}, - "commodity": {
- "type": "PRODUCT",
- "description": "A description of the commodity",
- "reference": "string",
- "hsCode": "12.56.7890",
- "usmca": "N",
- "hazMat": {
- "hazMatUnNumber": "UN1234",
- "hazMatClass": "1",
- "hazMatPackingGroup": "I",
- "hazMatErapReference": "ERAP1234",
- "hazMatToxicByInhalation": true
}, - "country": "CA",
- "price": 100,
- "currency": "CAD"
}
}
]
}
], - "unitDimension": "CM",
- "unitMass": "KG",
- "weightType": "EACH",
- "dropAddress": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}
}
], - "pickupDate": "2023-03-28T15:00:00.000Z",
- "shipper": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc"
}, - "receiver": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "addressType": "PO"
}, - "dangerousGoods": {
- "dangerousGoodsContact": "string",
- "dangerousGoodsContactPhone": "+1 123-456-7890",
- "dangerousGoodsContactEmail": "string",
- "dangerousGoodsType": "INACCESSIBLE",
- "dangerousGoodsMode": "AIR"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "expressAccessorials": "Saturday Delivery",
- "ltlAccessorials": "Pickup - After Hours",
- "deliveryMode": "SINGLE",
- "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "commercial invoice",
- "contacts": {
- "soldTo": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "taxIdentificationNumber": "string"
}
}
}
}
}
{- "data": [
- {
- "id": "string",
- "carrier": "string",
- "carrierCode": "string",
- "carrierId": 0,
- "serviceLevel": "string",
- "serviceLevelName": "string",
- "expectedDeliveryDate": "string",
- "estimatedTransitDays": 0,
- "transportationMode": "string",
- "provider": "string",
- "surchargesSubtotal": 0,
- "taxesSubtotal": 0,
- "totalPrice": 0,
- "baseServicePrice": 0,
- "fuelPrice": 0,
- "insurancePrice": 0,
- "taxes": {
- "description": "string",
- "value": 0
}, - "accessorials": {
- "description": "string",
- "value": 0
}, - "currency": "string"
}
]
}
Get a shipment by ID.
shipmentId required | string |
{- "id": 1,
- "trackingId": "270321192985",
- "consolidation": 1,
- "transactionNumber": "TRI12_34",
- "pickupDate": "2021-03-27T00:00:00.000Z",
- "deliveryDate": "2021-03-27T00:00:00.000Z",
- "documents": [
], - "rate": {
- "carrier": "Fedex",
- "serviceLevel": "STANDARD",
- "totalPrice": 100,
- "accessorials": [
- {
- "description": "Fuel surcharge",
- "value": 10
}
], - "currency": "USD",
- "carrierId": 1
}
}
Save shipment data. This method can be used to get rates and refresh them for future use. Notice, this does not book a shipment
shipperReference required | string An identifier for the shipper. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
receiverReference required | string An identifier for the receiver. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
customerReference required | string An identifier for the customer. This reference could be a PO(purchase order) number, a customer number or any phrase used to identify a shipment. |
required | object An object of type CustomBroker that contains custom broker data. |
billTo required | string Enum: "BILL_ME" "SHIPPER_RECEIVER" "THIRD_PARTY" An enum of type BillToOption that specifies the billing mode for the shipment. |
costCenter | number Customer location to billing |
accountNumber required | string The third party account number is used to indicate which customer account should be charged for the shipment |
notes required | string A string that contains any additional notes or comments. |
required | Array of objects (PackageDto) An array of objects of type Package that contains information about each package in the shipment. |
pickupDate required | string A string in ISO 8601 format that specifies the pickup date for the shipment. |
required | object An object of type Person that contains information about the shipper. |
required | object An object of type Person that contains information about the receiver. |
required | object An object of type DangerousGoods that contains information about any dangerous goods in the shipment. Necessary if Dangerous Goods is selected in the accessorials or if HazMat information is provided |
termsOfSale required | string Enum: "DUTIES_AND_TAXES_UNPAID" "DUTIES_AND_TAXES_PAID" An enum of type TermsOfSale that specifies the terms of sale for the shipment. |
expressAccessorials required | Array of arrays An array of strings that specifies any accessorials (additional services) for the shipment. (Must be empty for LTL) |
ltlAccessorials required | Array of arrays An array of strings that specifies any less-than-truckload (LTL) accessorials (additional services) for the shipment. (Must be empty for Express) |
deliveryMode required | string The delivery mode for the shipment. (SINGLE or MULTI_DROP) |
object Container for Shipment Service Options. |
{- "shipperReference": "SHIPPER_REF_123",
- "receiverReference": "RECEIVER_REF_456",
- "customerReference": "CUSTOMER_REF_789",
- "customBroker": {
- "companyName": "Custom Broker Company",
- "accountNumber": "123456",
- "contactName": "John Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com"
}, - "billTo": "BILL_ME",
- "costCenter": "534",
- "accountNumber": "123 456 789",
- "notes": "A string that contains any additional notes or comments",
- "packages": [
- {
- "qte": 1,
- "handlingUnit": 1,
- "length": 25,
- "height": 25,
- "width": 25,
- "weight": 25,
- "commoditySets": [
- {
- "qte": 25,
- "weight": 25,
- "commodityLines": [
- {
- "qte": 25,
- "nmfc": {
- "code": "123456",
- "description": "A description of the NMFC",
- "class": 100
}, - "commodity": {
- "type": "PRODUCT",
- "description": "A description of the commodity",
- "reference": "string",
- "hsCode": "12.56.7890",
- "usmca": "N",
- "hazMat": {
- "hazMatUnNumber": "UN1234",
- "hazMatClass": "1",
- "hazMatPackingGroup": "I",
- "hazMatErapReference": "ERAP1234",
- "hazMatToxicByInhalation": true
}, - "country": "CA",
- "price": 100,
- "currency": "CAD"
}
}
]
}
], - "unitDimension": "CM",
- "unitMass": "KG",
- "weightType": "EACH",
- "dropAddress": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}
}
], - "pickupDate": "2023-03-28T15:00:00.000Z",
- "shipper": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc"
}, - "receiver": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "addressType": "PO"
}, - "dangerousGoods": {
- "dangerousGoodsContact": "string",
- "dangerousGoodsContactPhone": "+1 123-456-7890",
- "dangerousGoodsContactEmail": "string",
- "dangerousGoodsType": "INACCESSIBLE",
- "dangerousGoodsMode": "AIR"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "expressAccessorials": "Saturday Delivery",
- "ltlAccessorials": "Pickup - After Hours",
- "deliveryMode": "SINGLE",
- "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "commercial invoice",
- "contacts": {
- "soldTo": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "taxIdentificationNumber": "string"
}
}
}
}
}
{- "shipperReference": "SHIPPER_REF_123",
- "receiverReference": "RECEIVER_REF_456",
- "customerReference": "CUSTOMER_REF_789",
- "customBroker": {
- "companyName": "Custom Broker Company",
- "accountNumber": "123456",
- "contactName": "John Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com"
}, - "billTo": "BILL_ME",
- "costCenter": "534",
- "accountNumber": "123 456 789",
- "notes": "A string that contains any additional notes or comments",
- "packages": [
- {
- "qte": 1,
- "handlingUnit": 1,
- "length": 25,
- "height": 25,
- "width": 25,
- "weight": 25,
- "commoditySets": [
- {
- "qte": 25,
- "weight": 25,
- "commodityLines": [
- {
- "qte": 25,
- "nmfc": {
- "code": "123456",
- "description": "A description of the NMFC",
- "class": 100
}, - "commodity": {
- "type": "PRODUCT",
- "description": "A description of the commodity",
- "reference": "string",
- "hsCode": "12.56.7890",
- "usmca": "N",
- "hazMat": {
- "hazMatUnNumber": "UN1234",
- "hazMatClass": "1",
- "hazMatPackingGroup": "I",
- "hazMatErapReference": "ERAP1234",
- "hazMatToxicByInhalation": true
}, - "country": "CA",
- "price": 100,
- "currency": "CAD"
}
}
]
}
], - "unitDimension": "CM",
- "unitMass": "KG",
- "weightType": "EACH",
- "dropAddress": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}
}
], - "pickupDate": "2023-03-28T15:00:00.000Z",
- "shipper": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc"
}, - "receiver": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "addressType": "PO"
}, - "dangerousGoods": {
- "dangerousGoodsContact": "string",
- "dangerousGoodsContactPhone": "+1 123-456-7890",
- "dangerousGoodsContactEmail": "string",
- "dangerousGoodsType": "INACCESSIBLE",
- "dangerousGoodsMode": "AIR"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "expressAccessorials": "Saturday Delivery",
- "ltlAccessorials": "Pickup - After Hours",
- "deliveryMode": "SINGLE",
- "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "commercial invoice",
- "contacts": {
- "soldTo": {
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "801, Mission Street",
- "secondaryAddress": "string",
- "postalCode": "94103",
- "city": "San Francisco",
- "state": "CA",
- "country": "US"
}, - "companyName": "Shipper Inc",
- "taxIdentificationNumber": "string"
}
}
}
}, - "id": 1,
- "transactionNumber": "TRI12_34"
}
Open a consolidation for a carrier and zip code
carrierId required | number Carrier id |
postalCode required | string Consolidation zip code, only one open consolidation per carrier per zip code can coexist |
addressLine1 required | string Consolidation address line 1 |
addressLine2 required | string Consolidation address line 2 |
required | object Shipper address |
required | object Receiver address |
object Additional information for the carrier (Mandatory for Fedex consolidations) |
{- "carrierId": 1,
- "postalCode": "12345",
- "addressLine1": "Street 12345",
- "addressLine2": "Office 12345",
- "shipperAddress": {
- "city": "Quebec",
- "countryCode": "CA"
}, - "receiverAddress": {
- "city": "Quebec",
- "countryCode": "CA"
}, - "additionalInformation": {
- "shipper": { },
- "printedLabelOrigin": { }
}
}
{- "id": 0,
- "status": "OPEN"
}
Close a consolidation of shipments
consolidationId required | number |
required | object Pickup data |
{- "pickupData": {
- "address": {
- "primaryAddress": "Street 123",
- "secondaryAddress": "Street 123",
- "postalCode": "AAA BBB",
- "city": "Montreal",
- "state": "QC",
- "country": "CA"
}, - "date": "string",
- "readyTime": "14:00",
- "closingTime": "16:00",
- "pickupLocation": "BACK_DOOR"
}
}
{- "consolidation": {
- "id": 1
}, - "errors": [
- "string"
]
}