LTL Shipment Cost API
Determine costing for less than truckload (LTL) shipments with Shipium's LTL Shipment Cost API.
Get started
To use the LTL Shipment Cost API, you must first configure your account. Guidance can be found in the LTL (Less Than Truckload) Shipments documentation. This document provides instructions for using the API.
The LTL Shipment Cost API assumes you're using one of the authentication mechanisms detailed in our authentication documentation.
Authentication for API CallsIn the cURL example on this page, the environment variable
AUTHSTRINGis used to handle authorization. The recipe below shows how to set it correctly for both API Key and OAuth users.
Test modeWant to run some examples and not charge any real money against your account?
You can add
testMode: "true" to the data passed to any label call to retrieve labels without charging money in a carrier-specific manner. Most carriers will mark their labels in a way to make clear that they are void, such as inserting "VOID" throughout the label or using a predefined ID.The examples below contain the
testModeflag to err on the side of caution – remove it to make production calls.
Determine LTL shipment costing
The endpoint for determining the estimated cost for an LTL shipment is included in the following table.
| API type | API endpoint |
|---|---|
| POST | https://api.shipium.com/api/v1/ltl/shipment/cost |
Request and response fields for API calls
The following tables provide required, conditional, and optional fields for calling the LTL Shipment Cost API. Fields are organized by their parent objects to reflect the request structure. You can find additional support in the LTL Shipment Cost API Reference.
Top-level request fields
Required fields
Field | Details |
|---|---|
| Type: String |
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: Array of |
| Type: Array of |
Optional fields
Field | Details |
|---|---|
| Type: Integer ($int32) |
| Type: String |
| Type: Boolean |
| Type: Boolean |
| Type: String |
| Type: String ($date-time) |
| Type: String |
| Type: Boolean |
desiredDeliveryDateOptions fields
All fields in this object are optional. You can find more information about desired delivery date options in Desired, Exact, & Guaranteed Delivery Dates.
Field | Details |
|---|---|
| Type: Boolean |
| Type: Boolean |
| Type: String |
| Type: String |
destinationAddress fields
Required fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String (enumeration) |
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
shipFromAddress fields
Required fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String (enumeration) |
returnToAddress fields
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String (enumeration) |
units fields
All fields in this object are required.
Field | Details |
|---|---|
| Type: String |
| Type: String (enumeration) |
| Type: String (enumeration) |
ltlShipmentParameters fields
Required fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
ltlShipmentParameters.billToContact fields
The bill-to-contact fields refer to the entity that should be billed for the LTL shipment; by default, the carrier contracts in the fulfillment context will be used for billing. Either the addressLineComponents or the other address fields should be provided.
Required fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
ltlShipmentParameters.collectOnDelivery fields
Conditional fields
Field | Details |
|---|---|
| Type: Number ($float) |
| Type: String |
ltlShipmentParameters.hazmatContact fields
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
ltlShipmentParameters.packagingOptions fields
Conditional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: Number ($float) |
packedShipments fields
Required fields
Field | Details |
|---|---|
| Type: Number ($float) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: String |
Conditional fields
Field | Details |
|---|---|
| Type: Number ($float) |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
shipments fields
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String ($date-time) |
| Type: String |
shipments.packages fields
Required fields
Field | Details |
|---|---|
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String ($date-time) |
shipments.packages.orderItemQuantities fields
Required fields
Field | Details |
|---|---|
| Type: String |
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: Integer Example: |
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String |
| Type: String |
shipments.packages.orderItemQuantities.hazmatInfo fields
For information on shipping hazmat items, see Hazardous Materials.
Conditional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String (enumeration) |
Optional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String |
| Type: String |
shipments.packages.packagingType fields
Conditional fields
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String |
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: Number ($float) |
| Type: Number ($float) |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String (enumeration) |
| Type: Number ($float) |
shipments.packages.totalWeight fields
All fields in this object are optional.
Field | Details |
|---|---|
| Type: String (enumeration) |
| Type: Number ($float) |
shipments.packages.totalDeclaredValue fields
All fields in this object are optional.
Field | Details |
|---|---|
| Type: Number ($float) |
| Type: String |
Response attributes
The primary response attributes of the LTL Shipment Cost API are described in the following table. Elements included in the above request table that are also returned in the API response are not included here.
Response attribute | Description |
|---|---|
| The Shipium-generated unique ID of the LTL cost, for reference |
| An optional unique identifier that may be used for this LTL cost |
| The timestamp passed in by your organization (or your fulfillment partner) for the intended date the package will arrive to the customer. The timestamp must be a valid ISO 8601 timestamp. |
| Whether using LTL or package shipping will be less expensive, and able to meet the request parameters ( |
| The cost of using the recommended transportation type for this shipment |
| The transportation type used for this cost estimate ( |
| The cost of using this transportation type for the shipment; this will be zero if no carrier could be found for this shipment. |
| How the packages in the LTL shipment are packaged or should be packaged |
| Information about the other carriers that were considered but were not selected because they either can't meet the desired delivery date, can't carry the shipment, can't pick up the shipment on the requested date, or cost more than the selected carrier. This attribute requires |
| Information about the selected carrier |
| The least expensive quoted cost of the shipment, using LTL; this will be zero in the case that no carrier could be selected. |
| Request parameters that informed LTL costing and carrier selection |
| How much it would cost to ship all of the packages individually |
| Information about each package's carrier selection |
| Summary of what happened during package carrier selection:
|
| Request parameters that informed package shipments and carrier selection; this information is only present if these parameters were in the cost request. |
| The already packed LTL shipments that should be included in this LTL shipment; items in this list are used for LTL costing and do not have their packaging modified, nor are eligible for package carrier selection. Items in this list do not have corresponding Shipium shipments. |
| The shipment IDs of all package shipments in this LTL shipment |
Example cURL call
curl --request POST
--url <<api_url>>/api/v1/ltl/shipment/cost
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request
{
"businessDaysOfTransit": 3,
"currencyCode": "usd",
"desiredDeliveryDate": "2024-10-31T20:00:00Z",
"desiredDeliveryDateOptions": {
"exactDateDelivery": true,
"guaranteedDateDelivery": true,
"upgradeCostDeltaMax": 0,
"currencyCode": "usd"
},
"destinationAddress": {
"name": "Rod Runner",
"company": "ACME",
"addressType": "commercial",
"street1": "43 One Way Lane",
"city": "Seattle",
"state": "WA",
"countryCode": "US",
"postalCode": "14410",
"phoneNumber": "206-123-4567",
"phoneNumberCountryCode": "+1"
},
"existingShipmentIds": [
"95502e82-93ff-4355-b37d-75c926aaecff",
"47b68be9-30e9-460f-b8b2-19dfe443d602"
],
"includeEvaluatedServiceMethodsInResponse": true,
"includeLineItemsInEvaluatedServiceMethods": true,
"ltlShipmentParameters": {
"billToContact": {
"addressType": "commercial",
"city": "Albuquerque",
"company": "ACME",
"countryCode": "US",
"emailAddress": "[email protected]",
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"postalCode": "87121",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42",
"thirdPartyBillingSetId": "acme-3rd-party-billing-set"
},
"carrierServiceMethodAllowList": [
"ups-ground-service-method",
"ups-standard-service-method"
],
"collectOnDelivery": {
"amount": 12.34,
"currency": "usd"
},
"fulfillmentContextIds": [
"ca037b83-6c47-4515-867e-aa890222c53b"
],
"fulfillmentType": "customer",
"packagingOptions": [
{
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"maximumWeight": 850.25,
"packagingWeight": 10.125,
"weightUnit": "lb",
"width": 40
}
}
],
"paymentDetails": {
"payerType": "consignee",
"paymentTerms": "collect"
},
"pickupDate": "2024-10-31",
"pricingTypes": "contractPallet",
"serviceLevels": "guaranteedMorning",
"accessorialCodes": "INS"
},
"packedShipments": [
{
"declaredValue": {
"amount": 12.34,
"currency": "usd"
},
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"weight": 850.25,
"weightUnit": "lb",
"width": 40
},
"nmfcFreightClass": "50"
}
],
"partnerLtlCostId": "myCustomPartnerLTLShipmentId123",
"returnToAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shippedDateTime": "2024-10-29T09:12:33.123456Z",
"shipments": [
{
"carrierProcessingId": "86420443",
"deliveryNote": "Leave at door",
"partnerReferenceIdentifier": "acme-shipment-123",
"purchaseOrderIdentifier": "PO-78654",
"referenceIdentifier": "acme-3-albq",
"shipmentTags": [
"ALBQ"
],
"orderedDateTime": "2024-10-17T09:12:33.123456Z",
"packages": [
{
"packageReferenceIdentifier": "1of3",
"partnerProvidedPackageId": "mid-aluminum-2",
"orderItemQuantities": [
{
"deliveryEstimateId": "0b3d140a-525b-43a7-896c-cdc381580d61",
"productId": "RN03947--Z43121",
"quantity": 3,
"productDetails": [
"lq"
],
"orderItemReferenceIdentifier": "someIdentifier",
"shipiumOrderId": "4dc43fff-c3af-4d7b-8a18-e01f2b4cb312",
"partnerOrderId": "myCustomPartnerOrderId123",
"hazmat": false,
"productTaxCode": "txcd_99999999",
"nmfcCode": "7318.15.20.10",
"nmfcFreightClass": "50"
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingSizeName": "13x12x10 Box",
"packagingTypeId": "ebd94f8b-d390-4c9c-987f-b88343f5bf45",
"linearDimensions": {
"linearUnit": "in",
"length": 13,
"width": 12,
"height": 10
},
"packagingWeight": {
"weightUnit": "lb",
"weight": 50
}
},
"totalWeight": {
"weightUnit": "lb",
"weight": 50
},
"totalDeclaredValue": {
"declaredValue": 0,
"currencyCode": "usd"
},
"deliveredDateTime": "2024-10-31T10:50:11.123456Z"
}
],
"partnerShipmentId": "myCustomPartnerShipmentId123",
"tenantId": "acme-tenant34",
"testMode": true,
"units": {
"currencyCode": "usd",
"linearUnit": "in",
"weightUnit": "lb"
}
}Example response
{
"shipiumLtlCostId": "fa2b839c-92e7-48bf-ba09-b0f5a0b0c475",
"partnerLtlCostId": "myCustomPartnerLTLShipmentId123",
"partnerTenantId": "acme-tenant34",
"shipiumTenantId": "469696b8-731e-44bb-82d6-2c437d57f3ce",
"shipFromAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromTimeZoneId": "mst-gmt-7",
"destinationAddress": {
"name": "Rod Runner",
"company": "ACME",
"addressType": "commercial",
"street1": "43 One Way Lane",
"city": "Seattle",
"state": "WA",
"countryCode": "US",
"postalCode": "14410",
"phoneNumber": "206-123-4567",
"phoneNumberCountryCode": "+1"
},
"destinationTimeZoneId": "cst-gmt-6",
"returnToAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"rawDesiredDeliveryDate": "2024-10-31T10:50:11.123456Z",
"recommendedTransportationType": "ltlTransportation",
"recommendedTransportationTypeCost": 0,
"testMode": true,
"units": {
"currencyCode": "usd",
"linearUnit": "in",
"weightUnit": "lb"
},
"allTransportationTypeCosts": [
{
"transportationType": "ltlTransportation",
"transportationTypeCost": 0
}
],
"ltlCostDetails": {
"loadPackaging": [
{
"details": {
"declaredValue": {
"amount": 12.34,
"currency": "usd"
},
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"weight": 850.25,
"weightUnit": "lb",
"width": 40
},
"nmfcFreightClass": "50"
},
"shipments": [
{
"partnerShipmentId": "myCustomPartnerShipmentId123",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6",
"packageReferenceIdentifier": "1of3"
}
]
}
],
"evaluatedCarriers": [
{
"billableWeight": {
"weightUnit": "lb",
"weight": 50
},
"billToThirdPartyId": "acme-3rd-party-billing-fedex",
"carrier": "fedex",
"carrierAccountId": "acme-fedex-1234",
"carrierServiceMethodId": "fedex-smartpost-service-method",
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true,
"nmfcFreightClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"loadDeficitCost": {
"amount": 0,
"nmfcClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
},
"rate": 0
},
"pickupDateTime": "2024-10-29T20:47:11.970Z",
"pricingType": "all",
"quoteId": "e635e871-103c-4a6d-9726-128a3ae51253",
"quoteEffectiveDateTime": "2024-10-28T20:47:11.970Z",
"quoteExpirationDateTime": "2024-10-31T20:47:11.970Z",
"scacCode": "fxsp",
"serviceLevel": "standard",
"accessorialCodes": "INS",
"totalCost": 0
}
],
"selectedCarrier": {
"billableWeight": {
"weightUnit": "lb",
"weight": 50
},
"billToThirdPartyId": "acme-3rd-party-billing-ups",
"carrier": "ups",
"carrierAccountId": "ups-1234567",
"carrierServiceMethodId": "ups-ground-service-method",
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true,
"nmfcFreightClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"loadDeficitCost": {
"amount": 0,
"nmfcClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
},
"rate": 0
},
"pickupDateTime": "2024-10-29T20:47:11.970Z",
"pricingType": "all",
"quoteId": "20df5261-f0bc-492c-9f31-c580f360b8a7",
"quoteEffectiveDateTime": "2024-10-28T20:47:11.970Z",
"quoteExpirationDateTime": "2024-11-09T20:47:11.970Z",
"scacCode": "UPSN-CG",
"serviceLevel": "standard",
"accessorialCodes": "INS",
"totalCost": 0
},
"totalCost": 0
},
"ltlShipmentParameters": {
"billToContact": {
"addressType": "commercial",
"city": "Albuquerque",
"company": "ACME",
"countryCode": "US",
"emailAddress": "[email protected]",
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"postalCode": "87121",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42",
"thirdPartyBillingSetId": "acme-3rd-party-billing-set"
},
"carrierServiceMethodAllowList": [
"ups-ground-service-method",
"ups-standard-service-method"
],
"collectOnDelivery": {
"amount": 12.34,
"currency": "usd"
},
"fulfillmentContextIds": [
"ca037b83-6c47-4515-867e-aa890222c53b"
],
"fulfillmentType": "customer",
"packagingOptions": [
{
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"maximumWeight": 850.25,
"packagingWeight": 10.125,
"weightUnit": "lb",
"width": 40
}
}
],
"paymentDetails": {
"payerType": "consignee",
"paymentTerms": "collect"
},
"pickupDate": "2024-10-31",
"pricingTypes": "contractPallet",
"serviceLevels": "guaranteedMorning"
},
"packageCostDetails": {
"totalCost": 0,
"packageDetails": [
{
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "911b488c-c620-4663-a554-bf9628e7ff43",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"partnerId": "acme007",
"carrierAccountId": "acme-ups-01",
"serviceMethodUrn": "c645ea83-d161-4e28-b8cb-39bf1a620cd3:4e14aaa3-198b-4861-b658-faf51031c84c:83fe5227-a765-45b2-bc2a-cb919ddce922:1",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "ground",
"costAdjustConfigId": "331de530-6a92-4238-9d3c-70083b19d94e",
"totalCost": 0,
"carrierCompareCost": 0,
"carrierInvoiceCost": 0,
"operationalCost": 2.7,
"thirdPartyBilling": true,
"carrierSelectionDateTime": "2024-10-27T20:47:11.970Z",
"carrierZoneId": "ups-zone-7",
"calculatedBillableWeight": {
"weightUnit": "lb",
"weight": 50
},
"laneMatch": {
"laneId": "asdqwdq-qwd123ds-123asdwd-123asd",
"partnerLaneId": "custom partner provided id"
},
"evaluatedServiceMethods": [
{
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "ground",
"carrierAccountId": "acme-ups-01",
"totalCost": 0,
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"rateCurrency": "usd",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true
}
]
}
],
"cancellationDateTime": "2024-10-31T10:50:11.123456Z",
"effectiveShipDateTime": "2024-10-30T20:47:11.970Z"
}
],
"status": "success"
},
"packageShipmentParameters": {
"carrierServiceMethodAllowList": [
"ups-ground-service-method",
"ups-standard-service-method"
],
"deliveryWindow": {
"startWindow": "08:00:11",
"endWindow": "16:00:11",
"timeZone": "America/New_York"
},
"deliverySignatureOption": "resident_signature",
"forceThirdPartyBilling": false,
"fulfillmentContextIds": [
"ca037b83-6c47-4515-867e-aa890222c53b"
],
"fulfillmentType": "customer",
"ignoreCarrierMinimumDimensions": false,
"ignoreUpgradeSpendLimits": false,
"includeInjectionProfiles": false,
"lastMileDeliveryOptions": {
"deliveryInstruction": "LEAVE_AT_DOOR",
"undeliverableInstruction": "LEAVE_AT_DOOR",
"tip": {
"type": "FIXED",
"value": 0,
"currency": "usd"
},
"tipForLabelCreate": {
"type": "FIXED",
"value": 0,
"currency": "usd"
},
"deliverableActionForLabelCreate": "RETURN",
"undeliverableActionForLabelCreate": "RETURN"
},
"pickupWindow": {
"startWindow": "08:00",
"endWindow": "16:00",
"timeZone": "America/New_York"
},
"preferredCarrierDeliveryDateTime": "2024-10-31T20:00:00Z",
"saturdayDelivery": false,
"shipOption": "Standard",
"thirdPartyBillingSetId": "acme-3rd-party-billing-set"
},
"packedShipments": [
{
"declaredValue": {
"amount": 12.34,
"currency": "usd"
},
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"weight": 850.25,
"weightUnit": "lb",
"width": 40
},
"nmfcFreightClass": "50"
}
],
"shipments": [
{
"partnerShipmentId": "myCustomPartnerShipmentId123",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6"
}
]
}Retrieve existing LTL shipment cost information
Path
POST
https://api.shipium.com/api/v1/ltl/shipment/cost/{ltlCostId}
Required path element: ltlCostId
Example cURL call
curl --request POST
--url <<api_url>>/api/v1/ltl/shipment/cost/{ltlCostId}
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json' Example response
{
"shipiumLtlCostId": "fa2b839c-92e7-48bf-ba09-b0f5a0b0c475",
"partnerLtlCostId": "myCustomPartnerLTLShipmentId123",
"partnerTenantId": "acme-tenant34",
"shipiumTenantId": "469696b8-731e-44bb-82d6-2c437d57f3ce",
"shipFromAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromTimeZoneId": "mst-gmt-7",
"destinationAddress": {
"name": "Rod Runner",
"company": "ACME",
"addressType": "commercial",
"street1": "43 One Way Lane",
"city": "Seattle",
"state": "WA",
"countryCode": "US",
"postalCode": "14410",
"phoneNumber": "206-123-4567",
"phoneNumberCountryCode": "+1"
},
"destinationTimeZoneId": "cst-gmt-6",
"returnToAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"rawDesiredDeliveryDate": "2024-10-31T10:50:11.123456Z",
"recommendedTransportationType": "ltlTransportation",
"recommendedTransportationTypeCost": 0,
"testMode": true,
"units": {
"currencyCode": "usd",
"linearUnit": "in",
"weightUnit": "lb"
},
"allTransportationTypeCosts": [
{
"transportationType": "ltlTransportation",
"transportationTypeCost": 0
}
],
"ltlCostDetails": {
"loadPackaging": [
{
"details": {
"declaredValue": {
"amount": 12.34,
"currency": "usd"
},
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"weight": 850.25,
"weightUnit": "lb",
"width": 40
},
"nmfcFreightClass": "50"
},
"shipments": [
{
"partnerShipmentId": "myCustomPartnerShipmentId123",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6",
"packageReferenceIdentifier": "1of3"
}
]
}
],
"evaluatedCarriers": [
{
"billableWeight": {
"weightUnit": "lb",
"weight": 50
},
"billToThirdPartyId": "acme-3rd-party-billing-fedex",
"carrier": "fedex",
"carrierAccountId": "acme-fedex-1234",
"carrierServiceMethodId": "fedex-smartpost-service-method",
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true,
"nmfcFreightClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"loadDeficitCost": {
"amount": 0,
"nmfcClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
},
"rate": 0
},
"pickupDateTime": "2024-10-29T20:47:11.970Z",
"pricingType": "all",
"quoteId": "e635e871-103c-4a6d-9726-128a3ae51253",
"quoteEffectiveDateTime": "2024-10-28T20:47:11.970Z",
"quoteExpirationDateTime": "2024-10-31T20:47:11.970Z",
"scacCode": "fxsp",
"serviceLevel": "standard",
"accessorialCodes": "INS",
"totalCost": 0
}
],
"selectedCarrier": {
"billableWeight": {
"weightUnit": "lb",
"weight": 50
},
"billToThirdPartyId": "acme-3rd-party-billing-ups",
"carrier": "ups",
"carrierAccountId": "ups-1234567",
"carrierServiceMethodId": "ups-ground-service-method",
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true,
"nmfcFreightClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
}
}
],
"loadDeficitCost": {
"amount": 0,
"nmfcClass": "50",
"weight": {
"weightUnit": "lb",
"weight": 50
},
"rate": 0
},
"pickupDateTime": "2024-10-29T20:47:11.970Z",
"pricingType": "all",
"quoteId": "20df5261-f0bc-492c-9f31-c580f360b8a7",
"quoteEffectiveDateTime": "2024-10-28T20:47:11.970Z",
"quoteExpirationDateTime": "2024-11-09T20:47:11.970Z",
"scacCode": "UPSN-CG",
"serviceLevel": "standard",
"accessorialCodes": "INS",
"totalCost": 0
},
"totalCost": 0
},
"ltlShipmentParameters": {
"billToContact": {
"addressType": "commercial",
"city": "Albuquerque",
"company": "ACME",
"countryCode": "US",
"emailAddress": "[email protected]",
"name": "Wile E. Coyote",
"phoneNumber": "505-662-7272",
"phoneNumberCountryCode": "+1",
"postalCode": "87121",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42",
"thirdPartyBillingSetId": "acme-3rd-party-billing-set"
},
"carrierServiceMethodAllowList": [
"ups-ground-service-method",
"ups-standard-service-method"
],
"collectOnDelivery": {
"amount": 12.34,
"currency": "usd"
},
"fulfillmentContextIds": [
"ca037b83-6c47-4515-867e-aa890222c53b"
],
"fulfillmentType": "customer",
"packagingOptions": [
{
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"maximumWeight": 850.25,
"packagingWeight": 10.125,
"weightUnit": "lb",
"width": 40
}
}
],
"paymentDetails": {
"payerType": "consignee",
"paymentTerms": "collect"
},
"pickupDate": "2024-10-31",
"pricingTypes": "contractPallet",
"serviceLevels": "guaranteedMorning",
"accessorialCodes": "INS"
},
"packageCostDetails": {
"totalCost": 0,
"packageDetails": [
{
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "911b488c-c620-4663-a554-bf9628e7ff43",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"partnerId": "acme007",
"carrierAccountId": "acme-ups-01",
"serviceMethodUrn": "c645ea83-d161-4e28-b8cb-39bf1a620cd3:4e14aaa3-198b-4861-b658-faf51031c84c:83fe5227-a765-45b2-bc2a-cb919ddce922:1",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "ground",
"costAdjustConfigId": "331de530-6a92-4238-9d3c-70083b19d94e",
"totalCost": 0,
"carrierCompareCost": 0,
"carrierInvoiceCost": 0,
"operationalCost": 2.7,
"thirdPartyBilling": true,
"carrierSelectionDateTime": "2024-10-27T20:47:11.970Z",
"carrierZoneId": "ups-zone-7",
"calculatedBillableWeight": {
"weightUnit": "lb",
"weight": 50
},
"laneMatch": {
"laneId": "asdqwdq-qwd123ds-123asdwd-123asd",
"partnerLaneId": "custom partner provided id"
},
"evaluatedServiceMethods": [
{
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "ground",
"carrierAccountId": "acme-ups-01",
"totalCost": 0,
"estimatedDeliveryDate": "2024-10-30T20:47:11.970Z",
"rateCurrency": "usd",
"lineItems": [
{
"name": "base",
"rate": 2.3,
"carrierSurchargeId": "123451239874980",
"lineItemType": "surcharge",
"hiddenFromCarrierCompare": true,
"hiddenFromInvoice": true,
"hiddenFromOperational": true
}
]
}
],
"cancellationDateTime": "2024-10-31T10:50:11.123456Z",
"effectiveShipDateTime": "2024-10-30T20:47:11.970Z"
}
],
"status": "success"
},
"packageShipmentParameters": {
"carrierServiceMethodAllowList": [
"ups-ground-service-method",
"ups-standard-service-method"
],
"deliverySignatureOption": "resident_signature",
"deliveryWindow": {
"startWindow": "08:00:11",
"endWindow": "16:00:11",
"timeZone": "America/New_York"
},
"forceThirdPartyBilling": false,
"fulfillmentContextIds": [
"ca037b83-6c47-4515-867e-aa890222c53b"
],
"fulfillmentType": "customer",
"ignoreCarrierMinimumDimensions": false,
"ignoreUpgradeSpendLimits": false,
"includeInjectionProfiles": false,
"lastMileDeliveryOptions": {
"deliveryInstruction": "LEAVE_AT_DOOR",
"undeliverableInstruction": "LEAVE_AT_DOOR",
"tip": {
"type": "FIXED",
"value": 0,
"currency": "usd"
},
"tipForLabelCreate": {
"type": "FIXED",
"value": 0,
"currency": "usd"
},
"deliverableActionForLabelCreate": "RETURN",
"undeliverableActionForLabelCreate": "RETURN"
},
"pickupWindow": {
"startWindow": "08:00",
"endWindow": "16:00",
"timeZone": "America/New_York"
},
"preferredCarrierDeliveryDateTime": "2024-10-31T20:00:00Z",
"saturdayDelivery": false,
"shipOption": "Standard",
"thirdPartyBillingSetId": "acme-3rd-party-billing-set"
},
"packedShipments": [
{
"declaredValue": {
"amount": 12.34,
"currency": "usd"
},
"loadPackagingType": "overboxed",
"loadPackagingSize": {
"height": 84,
"length": 48,
"linearUnit": "in",
"weight": 850.25,
"weightUnit": "lb",
"width": 40
},
"nmfcFreightClass": "50"
}
],
"shipments": [
{
"partnerShipmentId": "myCustomPartnerShipmentId123",
"shipiumShipmentId": "7bfef4f3-9e5e-4637-9213-5934f9f104e6"
}
]
}Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 2 days ago
