Carrier and Method Selection & Shipment Label API
Determine carrier service method and print shipping labels all in one call with Shipium's Carrier and Method Selection & Shipment Label API.
Get started
To use the Carrier and Method Selection & Shipment Label API, you can follow the instructions on this page, which also include guidance for additional options when calling the API. Information about determining carrier service method and generating shipment labels within the Shipium platform can be found in the Carrier and Service Method & Shipment Labels, Carrier and Method Selection, and Shipment Labels documentation.
Determine carrier service method with or without shipping labels with the Carrier and Method Selection & Shipment Label API
The Shipium Carrier and Method Selection & Shipment Label API assumes you're using one of the authentication mechanisms detailed in our authentication documentation. The endpoint for Carrier and Method Selection & Shipment Label API calls is included in the table below.
| API type | API endpoint |
|---|---|
| POST | https://api.shipium.com/api/v1/shipment/carrierselection/label |
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.
The required and optional fields for calling the Carrier and Method Selection & Shipment Label API are included in the Request and Response Fields for API Calls section of this document.
Using a partner shipment IDYou can include an optional
partnerShipmentIdin theshipmentParametersof your request. This unique identifier can be used to reference the shipment in your own systems. ThepartnerShipmentIdwill be returned in the response and can be used for tracking and reconciliation purposes. When creating a shipment, if apartnerShipmentIdis provided, it can be used in place of theshipiumShipmentIdin subsequent API calls that take a shipment identifier as a path parameter.Each example request in this document includes the optional
partnerShipmentId.
Determine carrier and ship method without retrieving a label
Example cURL call
This example shows a request to determine the carrier service method for a shipment without retrieving a shipment label:
curl --request POST
--url https://api.shipium.com/api/v1/shipment/carrierselection/label
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request body
The following minimum fields should be included in your JSON request. This example request body also includes an optional return-to address object and an optional tax ID value in the shipmentParameters.
Note that the generateLabel value is set to "false" to not create a label with the request and the includePackagesArray value is set to "true" to include the package information in the response.
{
"currencyCode": "usd",
"generateLabel": false,
"shipmentParameters": {
"partnerShipmentId": "myCustomPartnerShipmentId123",
"includePackagesArray": true,
"shippedDateTime": "2023-09-06T18:30:55.558Z",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"testMode": true,
"destinationAddress": {
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial",
"city": "Albuquerque",
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42"
},
"shipFromAddress": {
"countryCode": "US",
"postalCode": "17901",
"city": "Pottsville",
"state": "PA",
"street1": "401 N. Centre St."
},
"returnToAddress": {
"name": "Rod Runner",
"phoneNumber": "865-433-9999",
"phoneNumberCountryCode": "+2",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "456 Main St.",
"street2": "Suite 8",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingWeight": {
"weight": 13,
"weightUnit": "oz"
},
"linearDimensions": {
"length": 15,
"width": 10,
"height": 5,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 13,
"weightUnit": "oz"
}
}
}Example response body
{
"shipiumShipmentId": "3185ae04-d465-408a-9ae2-a98c7499e6bc",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"shippedDateTime": "2023-09-06T18:30:55.558Z",
"ignoreUpgradeSpendLimits": false,
"fulfillmentType": "customer",
"packages": [
{
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2,
"productDetails": [],
"hazmat": false
}
],
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"linearUnit": "in",
"length": 15.0,
"width": 10.0,
"height": 5.0
},
"packagingWeight": {
"weightUnit": "oz",
"weight": 13.0
}
},
"totalWeight": {
"weightUnit": "oz",
"weight": 13.0
}
}
],
"destinationAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "Ro Drunner",
"phoneNumber": "5555555555",
"emailAddress": "[email protected]",
"company": "Sell It",
"street1": "401 N. Centre St.",
"city": "Pottsville",
"state": "PA",
"countryCode": "US",
"postalCode": "17901"
},
"returnToAddress": {
"name": "Rod Runner",
"phoneNumber": "865-433-9999",
"phoneNumberCountryCode": "+2",
"emailAddress": "[email protected]",
"company": "ACME",
"street1": "456 Main St.",
"street2": "Suite 8",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"fulfillmentContextId": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab",
"requestFulfillmentContextIds": [],
"originId": "5a1ea728-4ba2-4cc6-892c-1f122f350775",
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"linearUnit": "in",
"length": 15.0,
"width": 10.0,
"height": 5.0
},
"packagingWeight": {
"weightUnit": "oz",
"weight": 13.0
}
},
"totalWeight": {
"weightUnit": "oz",
"weight": 13.0
},
"shipmentTags": [],
"carrierSelection": {
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "911b488c-c620-4663-a554-bf9628e7ff43",
"shipiumShipmentId": "3185ae04-d465-408a-9ae2-a98c7499e6bc",
"partnerId": "76abb3d4-8990-4f80-aa13-4c2007cb852a",
"carrierAccountId": "7b811704-9a16-4d3b-b849-43c7279415ac",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:dXBzbWktcGFyY2VsLXNlbGVjdC1zZXJ2aWNlLW1ldGhvZDo6NDNjYTI3ZDctZmUzNi00YjI1LTk4MDAtYTdmMTE2ZDIyMTQxOjdiODExNzA0LTlhMTYtNGQzYi1iODQ5LTQzYzcyNzk0MTVhYzpmZTFlMjg1Mi1kNTBiLTQ5OGQtOGIxMC05MGJiMWM5ODFjZTA6dXBzbWk6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "upsmi",
"carrierServiceMethodId": "upsmi-parcel-select-service-method",
"serviceMethodName": "UPS Mail Innovations Parcel Select",
"totalCost": 1.0,
"carrierCompareCost": 1.0,
"carrierInvoiceCost": 1.0,
"operationalCost": 1.0,
"thirdPartyBilling": false,
"carrierSelectionDateTime": "2024-03-25T19:44:22.232Z"
},
"saturdayDelivery": false,
"deliverySignatureOption": "None",
"forceThirdPartyBilling": false,
"createdWithVersion": "v2",
"multiParcel": false,
"testMode": true
}Determine carrier and ship method without retrieving a label, with tenants
Example cURL call
This example shows a request to determine the carrier service method for a shipment without retrieving a shipment label, and associating a tenant with the shipment:
curl --request POST
--url https://api.shipium.com/api/v1/shipment/carrierselection/label
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request body
The following minimum fields should be included in your JSON request. Note the inclusion of tenantId in the shipment parameters.
{
"currencyCode": "usd",
"generateLabel": false,
"includeEvaluatedServiceMethodsInResponse": true,
"includeLineItemsInEvaluatedServiceMethods": true,
"shipmentParameters": {
"partnerShipmentId": "myCustomPartnerShipmentId123",
"tenantId" : "3b343401-7a52-4709-a053-ab35ec9ecd5b",
"shippedDateTime": "2023-09-06T18:30:55.558Z",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"testMode": true,
"destinationAddress": {
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial",
"city": "Albuquerque",
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42"
},
"shipFromAddress": {
"countryCode": "US",
"postalCode": "17901",
"city": "Pottsville",
"state": "PA",
"street1": "401 N. Centre St."
},
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingWeight": {
"weight": 13,
"weightUnit": "oz"
},
"linearDimensions": {
"length": 15,
"width": 10,
"height": 5,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 13,
"weightUnit": "oz"
}
}
}Example response body
{
"shipiumShipmentId": "afca15f1-4084-49a4-9792-1c78f641ac5e",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"shippedDateTime": "2023-09-06T18:30:55.558Z",
"rawDesiredDeliveryDate": "2024-04-03",
"desiredDeliveryDate": "2024-04-04T05:59:59.999Z",
"desiredDeliveryDateLocal": "2024-04-03T23:59:59.999",
"estimatedDeliveryDate": "2023-09-12T02:00:00Z",
"estimatedDeliveryDateLocal": "2024-09-11T20:00:00",
"destinationTimezoneId": "America/Albuquerque",
"originTimezoneId": "America/Pottsville",
"ignoreUpgradeSpendLimits": false,
"fulfillmentType": "customer",
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2,
"productDetails": [],
"shipiumOrderId": "123",
"hazmat": false
},
{
"productId": "7G-100-0756",
"quantity": 1,
"productDetails": [],
"hazmat": false
}
],
"destinationAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "Ro Drunner",
"phoneNumber": "5555555555",
"emailAddress": "[email protected]",
"company": "Sell It",
"street1": "401 N. Centre St.",
"city": "Pottsville",
"state": "PA",
"countryCode": "US",
"postalCode": "17901"
},
"requestFulfillmentContextIds": [],
"originId": "5a1ea728-4ba2-4cc6-892c-1f122f350775",
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"linearUnit": "in",
"length": 15.0,
"width": 10.0,
"height": 5.0
},
"packagingWeight": {
"weightUnit": "oz",
"weight": 13.0
}
},
"totalWeight": {
"weightUnit": "oz",
"weight": 13.0
},
"shipmentTags": [
"test"
],
"carrierSelection": {
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "1fb236b0-91a2-4aba-a8e2-f2431a70c8e5",
"shipiumShipmentId": "afca15f1-4084-49a4-9792-1c78f641ac5e",
"partnerId": "76abb3d4-8990-4f80-aa13-4c2007cb852a",
"carrierAccountId": "8cd3e958-a5e9-4dda-a2da-727c5d2c0d13",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:dXBzLWdyb3VuZC1zZXJ2aWNlLW1ldGhvZDo6NDExNmI3MmQtZjJmOC00YTBiLWE4ZGItN2VmN2E0ZGE5MWIxOjhjZDNlOTU4LWE1ZTktNGRkYS1hMmRhLTcyN2M1ZDJjMGQxMzoxMDg1NGMwNC01NTVjLTRmMDktOWEwZi1lZDA1NDJjNzUwNjk6dXBzOjVhMWVhNzI4LTRiYTItNGNjNi04OTJjLTFmMTIyZjM1MDc3NTo6",
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "UPS Ground - ana",
"totalCost": 1.0,
"carrierCompareCost": 1.0,
"carrierInvoiceCost": 1.0,
"operationalCost": 1.0,
"thirdPartyBilling": false,
"carrierSelectionDateTime": "2024-04-03T14:42:20.434Z",
"carrierZoneId": "ups-zone-7",
"evaluatedServiceMethods": [
{
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "UPS Ground - ana",
"carrierAccountId": "8cd3e958-a5e9-4dda-a2da-727c5d2c0d13",
"totalCost": 1.0,
"estimatedDeliveryDate": "2023-09-12T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "base rate",
"rate": 1.0,
"carrierSurchargeId": "123451239874980",
"surchargeType": "base",
"lineItemType": "base_rate"
}
]
},
{
"carrier": "usps",
"carrierServiceMethodId": "usps-priority-mail-express-service-method",
"serviceMethodName": "USPS Priority Mail Express",
"carrierAccountId": "5a4b52e4-bcf9-4cb4-928d-84d3ca838e43",
"totalCost": 1.0,
"estimatedDeliveryDate": "2023-09-12T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "ground residential",
"rate": 2.5,
"carrierSurchargeId": null,
"surchargeType": "residential_ground",
"lineItemType": "surcharge"
}
]
},
{
"carrier": "ups",
"carrierServiceMethodId": "ups-surepost-service-method",
"serviceMethodName": "UPS SurePost - ana",
"carrierAccountId": "8cd3e958-a5e9-4dda-a2da-727c5d2c0d13",
"totalCost": 6.0,
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "base",
"rate": 1.0,
"carrierSurchargeId": "0987654321",
"surchargeType": "base",
"lineItemType": "base_rate"
}
]
},
{
"carrier": "fedex",
"carrierServiceMethodId": "fedex-priority-overnight-service-method",
"serviceMethodName": "FedEx Priority Overnight",
"carrierAccountId": "625db658-e091-4e1b-888a-321270c8e6af",
"totalCost": 11.0,
"estimatedDeliveryDate": "2023-09-09T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "fuel",
"rate": 1.3,
"carrierSurchargeId": null,
"surchargeType": "fuel_air_domestic",
"lineItemType": "fuel surcharge"
}
]
},
{
"carrier": "usps",
"carrierServiceMethodId": "usps-priority-mail-service-method",
"serviceMethodName": "USPS Priority Mail",
"carrierAccountId": "5a4b52e4-bcf9-4cb4-928d-84d3ca838e43",
"totalCost": 1.0,
"estimatedDeliveryDate": "2023-09-12T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "ground residential",
"rate": 2.0,
"carrierSurchargeId": null,
"surchargeType": "residential_ground",
"lineItemType": "surcharge"
}
]
},
{
"carrier": "fedex",
"carrierServiceMethodId": "fedex-home-delivery-service-method",
"serviceMethodName": "FedEx Home Delivery",
"carrierAccountId": "625db658-e091-4e1b-888a-321270c8e6af",
"totalCost": 4.13,
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "ground residential",
"rate": 2.0,
"carrierSurchargeId": null,
"surchargeType": "residential_ground",
"lineItemType": "surcharge"
}
]
},
{
"carrier": "ups",
"carrierServiceMethodId": "ups-next-day-air-saver-service-method",
"serviceMethodName": "UPS Next Day Air Saver",
"carrierAccountId": "8cd3e958-a5e9-4dda-a2da-727c5d2c0d13",
"totalCost": 1.0,
"estimatedDeliveryDate": "2023-09-09T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "next day",
"rate": 1.8,
"carrierSurchargeId": "0987654321",
"surchargeType": "delivery_residential_air",
"lineItemType": "surcharge"
}
]
},
{
"carrier": "usps",
"carrierServiceMethodId": "usps-parcel-select-service-method",
"serviceMethodName": "USPS Parcel Select",
"carrierAccountId": "5a4b52e4-bcf9-4cb4-928d-84d3ca838e43",
"totalCost": 1.0,
"estimatedDeliveryDate": "2023-09-14T02:00:00Z",
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "regional",
"rate": 0.8,
"carrierSurchargeId": null,
"surchargeType": "remote_delivery_residential_ground",
"lineItemType": "surcharge"
}
]
},
{
"carrier": "upsmi",
"carrierServiceMethodId": "upsmi-parcel-select-service-method",
"serviceMethodName": "UPS Mail Innovations Parcel Select",
"carrierAccountId": "7b811704-9a16-4d3b-b849-43c7279415ac",
"totalCost": 1.0,
"injectionDetails": {},
"rateCurrency": "usd",
"lineItems": [
{
"name": "fuel",
"rate": 1.5,
"carrierSurchargeId": "1234567890",
"surchargeType": "fuel_ground",
"lineItemType": "fuel surcharge"
}
]
}
]
},
"saturdayDelivery": false,
"deliverySignatureOption": "None",
"forceThirdPartyBilling": false,
"createdWithVersion": "v2",
"multiParcel": false,
"testMode": true
}Determine carrier and ship method and generate a standard shipment label
Example cURL call
This example shows a request to determine the carrier service method for a shipment and also retrieve a shipment label:
curl --request POST
--url https://api.shipium.com/api/v1/shipment/carrierselection/label
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request body
The following minimum fields should be included in your JSON request. For this example, a value of true is being passed for the generateLabel, includeLabelImageInResponse, and manifest fields. Shipment manifests are required by some carriers. You can read more in Manifest Shipments. This example also highlights inclusion of the originId field; thus, no ship from address details are included.
{
"currencyCode": "usd",
"generateLabel": true,
"labelParameters": {
"currencyCode": "usd",
"includeLabelImagesInResponse": true,
"labelFormats": [
"zpl"
],
"eligibleForManifest": true
},
"shipmentParameters": {
"partnerShipmentId": "myCustomPartnerShipmentId123",
"shippedDateTime": "2024-04-06T18:30:55.558Z",
"orderedDateTime": "2024-04-03T18:30:55.558Z",
"testMode": true,
"destinationAddress": {
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial",
"city": "Albuquerque",
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42"
},
"originId": "my-custom-origin-ID",
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingWeight": {
"weight": 13,
"weightUnit": "oz"
},
"linearDimensions": {
"length": 15,
"width": 10,
"height": 5,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 13,
"weightUnit": "oz"
}
}
}Example response body
{
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"shippedDateTime": "2024-04-09T14:39:27.511Z",
"ignoreUpgradeSpendLimits": false,
"fulfillmentType": "customer",
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2,
"productDetails": [],
"hazmat": false
}
],
"destinationAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "Ro Drunner",
"phoneNumber": "6612475319",
"emailAddress": "[email protected]",
"company": "Sell It",
"street1": "401 N. Centre St.",
"city": "Pottsville",
"state": "PA",
"countryCode": "US",
"postalCode": "17901"
},
"fulfillmentContextId": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab",
"requestFulfillmentContextIds": [],
"originId": "my-custom-origin-ID",
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"linearUnit": "in",
"length": 15.0,
"width": 10.0,
"height": 5.0
},
"packagingWeight": {
"weightUnit": "oz",
"weight": 13.0
}
},
"totalWeight": {
"weightUnit": "oz",
"weight": 13.0
},
"shipmentTags": [],
"carrierSelection": {
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "777584eb-0f08-44d6-98d0-df8bc1eba1c1",
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"partnerId": "76abb3d4-8990-4f80-aa13-4c2007cb852a",
"carrierAccountId": "625db658-e091-4e1b-888a-321270c8e6af",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "fedex",
"carrierServiceMethodId": "fedex-express-saver-service-method",
"serviceMethodName": "FedEx Express Saver",
"totalCost": 3.25,
"carrierCompareCost": 3.25,
"carrierInvoiceCost": 3.25,
"operationalCost": 3.25,
"thirdPartyBilling": false,
"carrierSelectionDateTime": "2024-04-09T14:39:27.773Z",
"carrierZoneId": "fedex-express-zone-7"
},
"carrierLabel": {
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"carrierSelectionId": "777584eb-0f08-44d6-98d0-df8bc1eba1c1",
"shipiumLabelId": "198edb20-1076-42d8-8723-830dd6f27ef4",
"status": "success",
"statusDetails": "success",
"effectiveShipDateTime": "2024-04-10T04:00:00Z",
"labelCreationDateTime": "2024-04-09T14:39:30.192Z",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "fedex",
"carrierServiceName": "FedEx Corporation Account - 2",
"serviceMethodName": "FedEx Express Saver",
"carrierServiceMethodId": "fedex-express-saver-service-method",
"carrierShipmentId": "794622496766",
"carrierTrackingId": "794622496766",
"shipiumTrackingId": "52483a58-0788-4cf5-a2b4-b06610097158",
"carrierTrackingLink": "https://wsbeta.fedex.com/fedextrack/?trknbr=794622496766",
"carrierLabelCurrencyCode": "usd",
"carrierLabelPrice": 3.25,
"billableWeight": {
"weightUnit": "lb",
"weight": 6.0
},
"documents": [
{
"labelExpiration": "2024-04-23T14:39:30.177778742Z",
"labelFormat": "zpl",
"labelProperties": {
"height": 4.0,
"width": 6.0,
"linearUnits": "in",
"dpi": 203,
"labelOrientation": "rotate_0"
},
"labelImage": {
"imageEncoding": "base64",
"imageContents": "XlhBXkNGLDAsMCwwXlBSMTJeTUQzMF5QT0leQ0kxM15MSDAsMjAKXkZPMTIsMzAxXkdCNzUzLDIsMl5GUwpeRk8xMiw1NjdeR0I3NzcsMiwyXkZTCl5GTzQ2NCwxNzBeR0Iy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kZERElNUzogMTV4MTB4NSBJTl5GUwpeRk8zMjgsNTI2XkFiTiwxMSw3XkZXTl5GSF5GRFJFRjogXkZTCl5GTzM4LDU0MF5BYk4sMTEsN15GV05eRkheRkRJTlY6IF5GUwpeRk8zOCw1NTReQWJOLDExLDdeRldOXkZIXkZEUE86IF5GUwpeRk80MjgsNTU0XkFiTiwxMSw3XkZXTl5GSF5GRERFUFQ6IF5GUwpeRk8yNSw5MzBeR0I1OCwxLDFeRlMKXkZPMjUsOTMwXkdCMSwyNiwxXkZTCl5GTzgzLDkzMF5HQjEsMjYsMV5GUwpeRk8yNSw5NTZeR0I1OCwxLDFeRlMKXkZPMzEsOTM2XkFkTiwwLDBeRldOXkZIXkZEMDIwMV5GUwpeUFExCl5YWgo="
},
"labelUrl": "https://shiptime-service.stage.shipium.com/api/v1/deliveryexperience/shipment/5191f46a-7d43-4d8f-a859-f9193938b30f/carrierSelection/777584eb-0f08-44d6-98d0-df8bc1eba1c1/label/198edb20-1076-42d8-8723-830dd6f27ef4/zpl"
}
],
"internationalDocuments": [],
"labelFailoverOccurred": false,
"testMode": true,
"multiParcel": false
},
"saturdayDelivery": false,
"deliverySignatureOption": "None",
"forceThirdPartyBilling": false,
"createdWithVersion": "v2",
"multiParcel": false,
"testMode": true
}Determine carrier and ship method and generate a standard shipment label, with tenants
Example cURL call
This example shows a request to determine the carrier service method for a shipment and also retrieve a shipment label, with the inclusion of a tenant:
curl --request POST
--url https://api.shipium.com/api/v1/shipment/carrierselection/label
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request body
The following minimum fields should be included in your JSON request. For this example, a value of true is being passed for the generateLabel, includeLabelImageInResponse, and manifest fields. Shipment manifests are required by some carriers. You can read more in Manifest Shipments.
{
"currencyCode": "usd",
"generateLabel": true,
"labelParameters": {
"currencyCode": "usd",
"includeLabelImagesInResponse": true,
"labelFormats": [
"zpl"
],
"eligibleForManifest": true
},
"shipmentParameters": {
"partnerShipmentId": "myCustomPartnerShipmentId123",
"tenantId": "3b343401-7a52-4709-a053-ab35ecs8cadb",
"shippedDateTime": "2024-04-06T18:30:55.558Z",
"orderedDateTime": "2024-04-03T18:30:55.558Z",
"testMode": true,
"destinationAddress": {
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial",
"city": "Albuquerque",
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"state": "NM",
"street1": "123 Main St.",
"street2": "Suite 42"
},
"shipFromAddress": {
"countryCode": "US",
"postalCode": "17901",
"city": "Pottsville",
"state": "PA",
"street1": "401 N. Centre St."
},
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingWeight": {
"weight": 13,
"weightUnit": "oz"
},
"linearDimensions": {
"length": 15,
"width": 10,
"height": 5,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 13,
"weightUnit": "oz"
}
}
}Example response body
{
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"partnerShipmentId": "myCustomPartnerShipmentId123",
"orderedDateTime": "2022-04-07T18:30:55.558Z",
"shippedDateTime": "2024-04-09T14:39:27.511Z",
"ignoreUpgradeSpendLimits": false,
"fulfillmentType": "customer",
"orderItemQuantities": [
{
"productId": "ET-14-4000",
"quantity": 2,
"productDetails": [],
"hazmat": false
}
],
"destinationAddress": {
"name": "Wile E. Coyote",
"phoneNumber": "888-555-1234",
"street1": "123 Main St.",
"street2": "Suite 42",
"city": "Albuquerque",
"state": "NM",
"countryCode": "US",
"postalCode": "87121",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "Ro Drunner",
"phoneNumber": "5555555555",
"emailAddress": "[email protected]",
"company": "Sell It",
"street1": "401 N. Centre St.",
"city": "Pottsville",
"state": "PA",
"countryCode": "US",
"postalCode": "17901"
},
"fulfillmentContextId": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab",
"requestFulfillmentContextIds": [],
"originId": "5a1ea728-4ba2-4cc6-892c-1f122f350775",
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"linearUnit": "in",
"length": 15.0,
"width": 10.0,
"height": 5.0
},
"packagingWeight": {
"weightUnit": "oz",
"weight": 13.0
}
},
"totalWeight": {
"weightUnit": "oz",
"weight": 13.0
},
"shipmentTags": [],
"carrierSelection": {
"status": "success",
"statusDetails": "success",
"carrierSelectionId": "777584eb-0f08-44d6-98d0-df8bc1eba1c1",
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"partnerId": "76abb3d4-8990-4f80-aa13-4c2007cb852a",
"carrierAccountId": "625db658-e091-4e1b-888a-321270c8e6af",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "fedex",
"carrierServiceMethodId": "fedex-express-saver-service-method",
"serviceMethodName": "FedEx Express Saver",
"totalCost": 3.25,
"carrierCompareCost": 3.25,
"carrierInvoiceCost": 3.25,
"operationalCost": 3.25,
"thirdPartyBilling": false,
"carrierSelectionDateTime": "2024-04-09T14:39:27.773Z",
"carrierZoneId": "fedex-express-zone-7"
},
"carrierLabel": {
"shipiumShipmentId": "5191f46a-7d43-4d8f-a859-f9193938b30f",
"carrierSelectionId": "777584eb-0f08-44d6-98d0-df8bc1eba1c1",
"shipiumTenantId": "3b343401-7a52-4709-a053-ab35ecs8cadb",
"partnerTenantId": "tenantid_123",
"shipiumLabelId": "198edb20-1076-42d8-8723-830dd6f27ef4",
"status": "success",
"statusDetails": "success",
"effectiveShipDateTime": "2024-04-10T04:00:00Z",
"labelCreationDateTime": "2024-04-09T14:39:30.192Z",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "fedex",
"carrierServiceName": "FedEx Corporation Account - 2",
"serviceMethodName": "FedEx Express Saver",
"carrierServiceMethodId": "fedex-express-saver-service-method",
"carrierShipmentId": "794622496766",
"carrierTrackingId": "794622496766",
"shipiumTrackingId": "52483a58-0788-4cf5-a2b4-b06610097158",
"carrierTrackingLink": "https://wsbeta.fedex.com/fedextrack/?trknbr=794622496766",
"carrierLabelCurrencyCode": "usd",
"carrierLabelPrice": 3.25,
"billableWeight": {
"weightUnit": "lb",
"weight": 6.0
},
"documents": [
{
"labelExpiration": "2024-04-23T14:39:30.177778742Z",
"labelFormat": "zpl",
"labelProperties": {
"height": 4.0,
"width": 6.0,
"linearUnits": "in",
"dpi": 203,
"labelOrientation": "rotate_0"
},
"labelImage": {
"imageEncoding": "base64",
"imageContents": "XlhBXkNGLDAsMCwwXlBSMTJeTUQzMF5QT0leQ0kxM15MSDAsMjAKXkZPMTIsMzAxXkdCNzUzLDIsMl5GUwpeRk8xMiw1NjdeR0I3NzcsMiwyXkZTCl5GTzQ2NCwxNzBeR0IyLDEyOSwyXkZTCl5GTzI4LDkwOV5BME4sMjQsMjReRldOXkZIXkZEVFJLI15GUwpeRk8yOCw5NjdeQTBOLDI3LDMyXkZXTl5GSF5GRF5GUwpe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eRkheRkRJTlY6IF5GUwpeRk8zOCw1NTReQWJOLDExLDdeRldOXkZIXkZEUE86IF5GUwpeRk80MjgsNTU0XkFiTiwxMSw3XkZXTl5GSF5GRERFUFQ6IF5GUwpeRk8yNSw5MzBeR0I1OCwxLDFeRlMKXkZPMjUsOTMwXkdCMSwyNiwxXkZTCl5GTzgzLDkzMF5HQjEsMjYsMV5GUwpeRk8yNSw5NTZeR0I1OCwxLDFeRlMKXkZPMzEsOTM2XkFkTiwwLDBeRldOXkZIXkZEMDIwMV5GUwpeUFExCl5YWgo="
},
"labelUrl": "https://shiptime-service.stage.shipium.com/api/v1/deliveryexperience/shipment/5191f46a-7d43-4d8f-a859-f9193938b30f/carrierSelection/777584eb-0f08-44d6-98d0-df8bc1eba1c1/label/198edb20-1076-42d8-8723-830dd6f27ef4/zpl"
}
],
"internationalDocuments": [],
"labelFailoverOccurred": false,
"testMode": true,
"multiParcel": false
},
"saturdayDelivery": false,
"deliverySignatureOption": "None",
"forceThirdPartyBilling": false,
"createdWithVersion": "v2",
"requestTenantId": "3b343401-7a52-4709-a053-ab35ecs8cadb",
"shipiumTenantId": "3b343401-7a52-4709-a053-ab35ecs8cadb",
"partnerTenantId": "tenantid_123",
"multiParcel": false,
"testMode": true
}Retrieve a previously generated label
The endpoint for retrieving a label is provided below.
Path
GET https://shiptime-service.shipium.com/api/v1/deliveryexperience/shipment/carrierSelection/label/{shipiumLabelId}?includeLabelImagesInResponse=true
Required path element: shipiumLabelId
Required parameter: includeLabelImageinResponse
Example request body
The request body is empty for this call.
Example response body
{
"shipiumShipmentId": "17a793fc-f90c-421c-8af5-ae8f51084270",
"carrierSelectionId": "e8a561fd-e70b-4950-82c7-4489e3c2a2b2",
"shipiumTenantId": "3b343401-7a52-4709-a053-ab35ec9ecd5b",
"partnerTenantId": "tenantid_123",
"shipiumLabelId": "d9067cb5-99d4-4252-aa26-41b82b81950b",
"status": "success",
"statusDetails": "success",
"effectiveShipDateTime": "2024-04-10T04:00:00Z",
"labelCreationDateTime": "2024-04-09T14:49:20.585Z",
"serviceMethodIdentifier": "1f19ca28-9798-42b2-9e8c-f9c3a72c9bab:ZmVkZXgtZXhwcmVzcy1zYXZlci1zZXJ2aWNlLW1ldGhvZDo6OGUzYmIxOGUtMTA3Ni00ODUxLWE4ZTYtZWViZTZmNWUwOTkwOjYyNWRiNjU4LWUwOTEtNGUxYi04ODhhLTMyMTI3MGM4ZTZhZjphOGVjYTRlYS1kMDcwLTRkZWMtOGZiMC0xNGNjMTQxMzJmNWQ6ZmVkZXg6NWExZWE3MjgtNGJhMi00Y2M2LTg5MmMtMWYxMjJmMzUwNzc1Ojo",
"carrier": "fedex",
"carrierServiceName": "FedEx Corporation Account - 2",
"serviceMethodName": "FedEx Express Saver",
"carrierServiceMethodId": "fedex-express-saver-service-method",
"carrierShipmentId": "794622502879",
"carrierTrackingId": "794622502879",
"carrierTrackingLink": "https://wsbeta.fedex.com/fedextrack/?trknbr=794622502879",
"carrierLabelCurrencyCode": "usd",
"carrierLabelPrice": 61.3,
"billableWeight": {
"weightUnit": "lb",
"weight": 6.0
},
"documents": [
{
"labelExpiration": "2024-04-23T14:49:20.573369416Z",
"labelFormat": "zpl",
"labelProperties": {
"height": 4.0,
"width": 6.0,
"linearUnits": "in",
"dpi": 203,
"labelOrientation": "rotate_0"
},
"labelImage": {
"imageEncoding": "base64",
"imageContents": "XlhBXkNGLDAsMCwwXlBSMTJeTUQzMF5QT0leQ0kxM15MSDAsMjAKXkZPMTIsMzAxXkdCNzUzLDIsMl5GUwpeRk8xMiw1NjdeR0I3NzcsMiwyXkZTCl5GTzQ2NCwxNzBeR0IyLDEyOSwyXkZTCl5GTzI4LDkwOV5BME4sMjQsMjReRldOXkZIXkZEVFJLI15GUwpeRk8yOCw5NjdeQTBOLDI3LDMyXkZXTl5GSF5GRF5GUwpeRk8xMzYsODc5XkEwTiwyNywzNl5GV05eRkheRkReRlMKXkZPMzIsMTcyXkFkTiwwLDBeRldOXkZIXkZET1JJR0lO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xMSw3XkZXTl5GSF5GRERFUFQ6IF5GUwpeRk8yNSw5MzBeR0I1OCwxLDFeRlMKXkZPMjUsOTMwXkdCMSwyNiwxXkZTCl5GTzgzLDkzMF5HQjEsMjYsMV5GUwpeRk8yNSw5NTZeR0I1OCwxLDFeRlMKXkZPMzEsOTM2XkFkTiwwLDBeRldOXkZIXkZEMDIwMV5GUwpeUFExCl5YWgo="
},
"labelUrl": "https://shiptime-service.stage.shipium.com/api/v1/deliveryexperience/shipment/17a793fc-f90c-421c-8af5-ae8f51084270/carrierSelection/e8a561fd-e70b-4950-82c7-4489e3c2a2b2/label/d9067cb5-99d4-4252-aa26-41b82b81950b/zpl"
}
],
"internationalDocuments": [],
"labelFailoverOccurred": false,
"testMode": true,
"multiParcel": false
}Request and response fields for API calls
The following tables provide required, conditional, and optional fields for calling the Carrier and Method Selection & Shipment Label API. However, the API is flexible to suit multiple use cases, and not all specialty fields are defined in this document. You can find additional support in the Carrier and Method Selection & Label API Reference and in the linked pages in this description.
Character normalizationText values in address fields may be automatically normalized before being sent to carriers. Accented characters are converted to ASCII equivalents (e.g., é becomes e), and some special characters may be removed depending on carrier requirements. For more information, see Data Handling and Character Normalization.
In general, shipmentParameters are included for determining carrier service method, and labelParameters are included for generating shipment labels. Multi-parcel shipments require inclusion of multiParcelShipmentParameters in place of shipmentParameters.
International shipments must include customsInfo parameters in either shipmentParameters or multiParcelShipmentParameters. You can find the customsInfo parameters to include in the Customs Info for Shipments document. Additionally, you may need to declare some items as hazardous material, which has its own requirements.
If your organization utilizes injection sites in your network, you can also include injectionParameters by passing an injectionProfileId or injectionSiteId.
Top-level request fields
Required fields
Field | Details |
|---|---|
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: Object |
| Type: Boolean |
labelParameters fields
Conditional fields
Field | Details |
|---|---|
| Type: String |
Optional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String (enumeration) |
| Type: Boolean |
shipmentParameters fields
Required fields
Field | Details |
|---|---|
| Type: String (date-time) |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
Conditional fields
Field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Integer (int32) |
| Type: String (enumeration) |
| Type: String |
| Type: Number (float) |
| Type: Number (float) |
| Type: Number (float) |
| Type: String (enumeration) |
| Type: String (byte) |
| Type: String (byte) |
| Type: Integer (int32) |
| Type: String (byte) |
| Type: String (byte) |
| Type: String (byte) |
| Type: Integer (int32) |
| Type: String (byte) |
Optional fields
Field | Details |
|---|---|
| Type: Boolean |
| Type: String (date-time) |
| Type: String (date-time) |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String |
| Type: Object |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: Number (float) |
| Type: String |
| Type: Number (float) |
| Type: String (enumeration) |
| Type: Number (float) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Integer (int32) |
| Type: String |
| Type: String |
| Type: String |
| Type: String (enumeration ) |
| Type: String |
| Type: String (date-time)
Example: |
| Type: Boolean |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String (enumeration) |
| Type: String (date-time) |
| Type: String |
| Type: Boolean |
| Type: String |
| Type: Array of |
| Type: Boolean |
| Type: Integer |
| Type: String |
Response attributes
The Carrier and Method Selection & Shipment Label response attributes are defined in the following table.
| Response attribute | Description |
|---|---|
shipiumShipmentId | The unique identifier for the shipment |
partnerShipmentId | The optional unique identifier that may be used for the shipment |
orderedDateTime | The timestamp for when the customer placed an order for the product |
shippedDateTime | The timestamp for when you (or your fulfillment partner) shipped the product from your (or their) warehouse |
rawDesiredDeliveryDate | The timestamp passed in by you (or your fulfillment partner) for the intended date the package will arrive to the customer |
desiredDeliveryDate | The timestamp for the adjusted desired delivery date; this date includes all adjustments that Shipium has made to the requested desired delivery date. Shipium will use this date-time for carrier selection. For desiredDeliveryDateOptions details, see Desired, Exact, & Guaranteed Delivery Dates. |
desiredDeliveryDateLocal | The timestamp for the adjusted desired delivery date, expressed in local time at the destination address; this date includes all adjustments that Shipium has made to the requested desired delivery date. Shipium will use this date-time for carrier selection. For desiredDeliveryDateOptions details, see Desired, Exact, & Guaranteed Delivery Dates. |
preferredCarrierDeliveryDateTime | The string representation of an ISO-8601 date; the date-time the package is intended to arrive to the customer; this will be passed through to the carrier. |
returnsLabel | A representation of the return label generated along with the original shipment label; see Return Labels for details. |
businessDaysOfTransit | Indicates the number of business days from the ship time by when the shipment needs to be delivered |
estimatedDeliveryDate | The date and time by when the package is estimated to be delivered to the customer; included in the response when either a desired delivery date or business days of transit value is included in the call request. |
estimatedDeliveryDateLocal | The date and time by when the package is estimated to be delivered to the customer, expressed in local time at the destination address; included in the response when either a desired delivery date or business days of transit value is included in the call request. |
destinationTimezoneId | An identifier for the destination address timezone |
originTimezoneId | An identifier for the origin address timezone |
ignoreUpgradeSpendLimits | Indicates that the shipment can ignore all of your pre-configured upgrade limits for the potential upgrade required to deliver the shipment by the desired delivery date |
deliveredDateTime | The timestamp for when the package was delivered to the customer |
cancellationDateTime | The timestamp for when a shipment is canceled; this field will default to null when the shipment is not canceled. A shipment cannot be canceled after a label has been created. |
fulfillmentType | Fulfillment methodology of the shipment |
carrierName | The carrier that was used for delivering the package to your customer |
carrierTrackingId | The carrier's tracking identification for the package |
packages | A list of packages comprising the shipment; this is for multi-parcel shipments only. |
orderItemQuantities | A list of order items comprising the package; see the request fields in the previous table for the complete list of fields and descriptions. |
destinationAddress | See the request fields in the previous table for the complete list of fields and descriptions. |
shipOption | A high-level shipping option shown to or selected by a customer |
shipFromAddress | See the request fields in the previous table for the complete list of fields and descriptions. |
returnToAddress | See the request fields in the previous table for the complete list of fields and descriptions. |
injectionAddress | The address of the location where the package is being returned; this is for inclusion of injection sites only. See the request fields in the previous table for either the destinationAddress or shipFromAddress object for the complete list of fields and descriptions. |
fulfillmentCenterId | The Shipium identifier for the fulfillment center where the shipment will depart |
fulfillmentContextId | The Shipium identifier for the fulfillment context where the shipment will depart |
partnerFulfillmentContextId | Your organization's alias for the fulfillment context where the shipment will depart |
requestFulfillmentContextIds | A collection of fulfillment context IDs or fulfillment context aliases used in the fulfillment context detail search |
packagingType | Fields describing the physical properties of the package; see the request fields in the previous table for the complete list of fields and descriptions. |
totalWeight | The weight of this type of packaging empty; see the request fields in the previous table for the complete list of fields and descriptions. |
shipmentTags | A collection of free-form tags that may be added to this shipment |
carrierSelection.status | Defines the result of the carrier selection call; values returned will be success, no_decision, or [uncosted](https://docs.shipium.com/v2.0/docs/labels-without-costing) . |
carrierSelection.statusDetails | Details explaining the result status; pertinent when the status is no_decision |
carrierSelection.carrierSelectionId | Unique ID of the carrier selection for later reference |
carrierSelection.shipiumShipmentId | The unique identifier for the shipment |
carrierSelection.partnerShipmentId | The optional unique identifier that may be used for the shipment |
carrierSelection.partnerId | Your organization's unique ID |
carrierSelection.carrierAccountId | Unique ID of the carrier account selected for shipping |
carrierSelection.serviceMethodUrn | Specific version of the service level of the shipping carrier selected |
carrierSelection.serviceMethodIdentifier | Identifier of the specific version of the service method of the shipping carrier selected |
carrierSelection.carrier | The carrier that was used for delivering the package to your customer |
carrierSelection.carrierServiceMethodId | Maps to the unique internal Shipium ID that represents a carrier service method definition; see Supported Carriers for a list of carrier service method IDs. |
carrierSelection.serviceMethodName | Name of the carrier service method selected during the carrier selection process |
carrierSelection.totalCost | Cost used for carrier selection |
carrierSelection.carrierCompareCost | Expected cost from the carrier label create |
carrierSelection.carrierInvoiceCost | Expected cost that carrier will charge at billing time |
carrierSelection.operationalCost | Carrier invoice cost plus operational costs such as injection line haul |
carrierSelection.thirdPartyBilling | Indicates if the selected service method will be billed to a third party |
carrierSelection.carrierSelectionDateTime | ISO-8601 formatted date when the carrier selection decision was made |
carrierSelection.injectionDetails | Injection profile and injection site details; see Injection for information about injection sites. |
carrierSelection.carrierZoneId | The carrier zone that is being considered |
carrierSelection.evaluatedServiceMethods | An optional expansion of what carrier service methods were eligible but went unselected |
carrierSelection.evaluatedServiceMethods .carrier | The carrier that was used for delivering the package to your customer |
carrierSelection.evaluatedServiceMethods .carrierServiceMethodId | The carrier service method ID for the service method |
carrierSelection.evaluatedServiceMethods .serviceMethodName | Name of the carrier service method selected during the carrier selection process |
carrierSelection.evaluatedServiceMethods .carrierAccountId | Unique ID of the carrier account selected for shipping |
carrierSelection.evaluatedServiceMethods .totalCost | Cost used for carrier selection |
carrierSelection.evaluatedServiceMethods .estimatedDeliveryDate | The estimated date that the shipment will arrive at its destination |
carrierSelection.evaluatedServiceMethods .injectionDetails | Injection profile and injection site details; see Injection for information about injection sites. |
carrierSelection.evaluatedServiceMethods .rateCurrency | The currency of the rate for the selected carrier and service method, which also applies to lineItems |
carrierSelection.evaluatedServiceMethods .lineItems.name | The name of the rate modification |
carrierSelection.evaluatedServiceMethods .lineItems.carrierSurchargeId | The identifier for the carrier surcharge |
carrierSelection.evaluatedServiceMethods .lineItems.surchargeType | The type of surcharge for this item; a null value will result for non-surcharges. |
carrierSelection.evaluatedServiceMethods .lineItems.lineItemType | The type of rate line item for this rate modification |
carrierLabel | This is populated if a label is generated for the carrier and service determined by carrier selection. |
carrierLabel.shipiumShipmentId | The unique identifier for the shipment |
carrierLabel.partnerShipmentId | The optional unique identifier that may be used for the shipment |
carrierLabel.carrierSelectionId | Unique ID of the carrier selection for later reference |
carrierLabel.shipiumTenantId | The Shipium-generated tenant ID. When present, this is used to indicate the tenant associated with the shipment. |
carrierLabel.partnerTenantId | The tenant ID provided by your organization. When present, this is used to indicate the tenant associated with the shipment. |
carrierLabel.status | Defines the result of the carrier label call; values returned will be success, failure, voided, failover, generated, label_created, manifested, and manifest_failure. |
carrierLabel.statusDetails | Details explaining the result status; pertinent when the status is partial or failed |
carrierLabel.effectiveShipDateTime | Shipium's calculation for the effective ship date time that a shipment will ship out; this date-time will be used for the carrier label and for limits. |
estimatedInjectionDateTime | Shipium's calculation for the date-time that a shipment will arrive at the injection site; if present, this date-time will be used for the carrier label. |
carrierLabel.labelCreationDateTime | The timestamp that the label object was created; this is used primarily for explaining future dated shipments. |
carrierLabel.serviceMethodIdentifier | The URN used to identify the service method for your organization |
carrierLabel.carrier | Unique ID of the carrier |
carrierLabel.carrierServiceName | Name of the carrier for which the label was generated |
carrierLabel.serviceMethodName | Name of the service method for which the label was generated |
carrierLabel.carrierServiceMethodId | Maps to the unique internal Shipium ID that represents a carrier service method definition; see Supported Carriers for a list of carrier service method IDs. |
carrierLabel.carrierShipmentId | Carrier's identification for the shipment |
carrierLabel.carrierTrackingId | Carrier's tracking identification for the package |
carrierLabel.shipiumTrackingId | Shipium's tracking identification for the package |
carrierLabel.carrierTrackingLink | Carrier's direct tracking link (URL) for the package |
carrierLabel.carrierGroupId | Carrier's identification for grouping multiple packages together (for example, Canada Post groups shipments for manifesting) |
carrierLabel.packageScannableId | Identifier provided that matches the scannable barcode on the label |
partnerThirdPartyBillingAccountId | The ID that your organization provided for the third party billing account that was used if the label was billed to a third party |
shipiumThirdPartyBillingAccountId | The Shipium-generated ID of the third party billing account that was used if the label was billed to a third party |
thirdPartyBillingForDutiesAndTaxes | Whether or not the third party paid the taxes and duties |
carrierLabel.carrierLabelCurrencyCode | Currency code of the price of the label |
carrierLabel.carrierLabelPrice | Cost charged by the carrier for shipping the package at the chosen service level |
carrierLabel.billableWeight.weightUnit | The unit in which weight values are provided |
carrierLabel.billableWeight.weight | The value of the weight |
carrierLabel.documents.labelExpiration | Date-time when the label expires and is no longer valid |
carrierLabel.documents.labelFormat | Defines the format the shipment label was generated in by the carrier |
carrierLabel.documents.labelProperties | Metadata describing the label |
carrierLabel.documents.labelProperties .height | Top to bottom measurement of the label |
carrierLabel.documents.labelProperties .width | Right to left measurement of the label |
carrierLabel.documents.labelProperties .linearUnits | The linear units representing the label height and label width |
carrierLabel.documents.labelProperties.dpi | The dpi (dots per inch) used by the label printer |
carrierLabel.documents.labelProperties .labelOrientation | The direction that the label will be printed |
carrierLabel.documents.labelProperties .nonZplLabelDimensions | The dimensions used to print non-ZPL labels, if they need to be different than ZPL dimensions |
carrierLabel.documents.labelImage .imageEncoding | Format in which the imageContents field is encoded (e.g., Base64) |
carrierLabel.documents.labelImage .imageContents | Raw contents of the shipment label image encoded in Base64; end users will need to decode this data using the format information supplied in the labelInfo field. |
carrierLabel.documents.labelUrl | The link to the shipment label file |
carrierLabel.documents.carrierTrackingId | The tracking ID associated with the label |
carrierLabel.documents.carrierTrackingLink | The tracking link associated with the label |
carrierLabel.documents .packageReferenceIdentifier | The package reference ID that was passed in by the customer to be associated with the package; this is most frequently used for multi-parcel shipments. This can be used to cross reference international documents and carrier labels. |
carrierLabel.documents.packageScannableId | The package scannable ID associated with the label |
carrierLabel.documents.carrierShipmentId | The carrier shipment ID associated with the label |
carrierLabel.internationalDocuments | List of international customs documents generated by the carrier for the shipment; see Customs Info for Shipments for details. |
carrierLabel.labelFailoverOccurred | When true, signifies that label creation failover logic was exercised |
carrierLabel.labelFailoverDetails | Provides legacy and detailed debugging information on the label creation attempts when failover logic is used |
carrierLabel.trackingInfo | Details of the tracking history and status of the package |
carrierLabel.testMode | A flag denoting whether the label is a test label |
carrierLabel.multiParcel | A flag denoting whether the label is for multi-parcel shipments |
customsInfo | Customs information about the package for international shipping; see Customs Info for Shipments for details. |
saturdayDelivery | Indicates that this shipment is marked for Saturday delivery; does not guarantee delivery on Saturday |
deliverySignatureOption | Indicates the delivery signature option selected for the shipment |
deliveryWindow | A preferred delivery window passed to the carrier as a delivery note |
deliveryNote | String passed to carriers for a delivery note |
forceThirdPartyBilling | Indicates that third party billing is forced for this shipment |
requestThirdPartyBillingSetId | Either the Shipium third party billing set ID or the third party billing set ID provided by your organization; when present, this is the third party billing set ID sent on the request. |
referenceIdentifier | String passed to carriers as a reference |
partnerReferenceIdentifier | String provided by your organization that was passed to carriers as a reference |
partnerReferenceIdentifier2 | String provided by your organization that was passed to carriers as a reference2 |
purchaseOrderIdentifier | String passed to carriers as a purchase order identifier |
carrierProcessingId | Carrier-provided identifier; supplied when it is needed to process the shipment |
fulfillmentContext | When present, this is used to limit carrier selection to carrier accounts that contain a matching fulfillment context. |
requestTenantId | Either the Shipium tenant ID or the tenant ID provided by your organization; when present, this is the tenant ID sent on the request. |
createdWithVersion | The version used when creating the shipment: v1 or v2. |
shipmentProperties | A list of high-level properties about the shipment |
multiParcel | Indicates if the shipment is multi-parcel |
testMode | A flag denoting whether the shipment is a test shipment |
Additional options for calling the Carrier and Method Selection & Shipment Label API
Some cases require additional consideration, such as designating a desired delivery date or specifying a shipment as containing hazardous materials. These use cases are briefly listed here and described in more detail in Carrier and Method Selection & Shipment Labels.
- Shipment timing. Ship options and delivery date specification (ship option, configurable ship option, desired delivery date, guaranteed delivery date, business days of transit)
- Carrier options. Service method specification and FedEx One Rate (carrier service method allow list, supported carriers)
- Configured shipment settings. Fulfillment contexts and tenants (origin, carrier contract, tenant)
- Special processing and accessorial designations. Shipment parameters (delivery signature, Saturday delivery, transportation type, business days of transit, hundredweight)
- Order and package details. Product specifications, packaging planning (pre-configured vs. ad-hoc packaging definition), and multi-parcel shipments
- Hazardous materials and perishable items. Hazmat, limited quantity, ORMD, lithium-ion, perishable, dry ice
- Customs specifications. Customs, international, electronic export information, incoterms, US territory, Army Post Office (APO), Fleet Post Office (FPO), Diplomatic Post Office (DPO)
- Analytics. Evaluated service methods (unselected carrier methods, carrier selection, rate selection)
- Account billing. Third party billing and labels without costing
- Carrier failover. Carrier failover is a setting within the Shipium Console that allows you to have a carrier as part of your fulfillment network but with a contingency in place in case there is an issue when calling that carrier for a shipment.
FAQ
Q: Can I include a desired delivery date (DDD) in addition to passing a ship option when using the all-in-one shipment and label method?
A: Yes. For example, shipOption: standard, desiredDeliveryDate: 2023-11-15 limits the carrier selection search to only those methods that are marked as standard and for which the DDD of 2023-11-15 can be met. If the DDD of 2023-11-15 cannot be met, Shipium will return the cheapest service method on 2023-11-16, and so on.
Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 6 days ago
