Batch Label Creation API
Generate multiple shipment labels in one call with Shipium's Batch Label Creation API.
Get started
Creating shipping labels in batches is possible through the Batch Label Creation API, which enables your organization to retrieve labels for up to 150 shipments in one API call to Shipium's Carrier and Method Selection service.
This document provides guidance for using the Batch Label Creation API. The Carrier and Method Selection & Shipment Labels document provides more information about setting up your organization's account to use the Carrier and Method Selection service and print labels.
Retrieve batch shipping labels from the Batch Label Creation API
The Shipium Batch Label Creation API assumes you're using one of the authentication mechanisms detailed in our authentication documentation. The endpoint for Batch Label Creation API calls, to create new shipments and generate labels in bulk, is included in the table below.
| API type | API endpoint |
|---|---|
| POST | https://api.shipium.com/api/v1/shipment/bulkprocessing/labels |
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 the API call
The ping endpoint for testing your API call is included in the following table.
| API type | API endpoint |
|---|---|
| PING | https://api.shipium.com/api/v1/shipment/bulkprocessing/ping |
Successfully calling the API endpoint will result in the following 200 response.
{
"info": "pong",
"status": 1
}An error calling the API endpoint will result in the following 400 response.
{
"statusCode": 401,
"code": "ERR_BAD_REQUEST",
"error": "Unauthorized",
"message": "Request failed with status code 401"
}
Test modeWant to run some examples and not charge any real money against your account?
You can add
testMode:trueto 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 example below contains the
testModeflag to err on the side of caution – remove it to make production calls.
Example cURL call
curl --request POST
--url https://api.shipium.com/api/v1/shipment/bulkprocessing/labels
--header 'accept: application/json'
--header $AUTHSTRING
--header 'content-type: application/json'
--data 'INSERT REQUEST BODY FROM BELOW'Example request body
You have the option to request full shipment details with the API response when calling the Batch Label Creation API, but the default setting is to exclude those details from the response. To include full shipment details, the value for includeFullShipmentResponses should be set to true.
{
"shipmentRequests": [
{
"currencyCode": "USD",
"shipmentParameters": {
"partnerShipmentId": "ORDER-2025-001-PKG-1",
"orderedDateTime": "2025-10-06T08:00:00Z",
"destinationAddress": {
"name": "Jane Smith",
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"postalCode": "98101",
"countryCode": "US",
"addressType": "residential"
},
"shipFromAddress": {
"name": "ACME Warehouse",
"street1": "500 Industrial Blvd",
"city": "Portland",
"state": "OR",
"postalCode": "97201",
"countryCode": "US",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "SKU-12345",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"length": 12,
"width": 10,
"height": 8,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 5.5,
"weightUnit": "lb"
},
"desiredDeliveryDate": "2025-10-10T20:00:00Z"
},
"generateLabel": true,
"labelParameters": {
"labelFormats": ["pdf", "zpl"],
"includeLabelImagesInResponse": true
}
},
{
"currencyCode": "USD",
"shipmentParameters": {
"partnerShipmentId": "ORDER-2025-002-PKG-1",
"orderedDateTime": "2025-10-06T09:15:00Z",
"destinationAddress": {
"name": "John Doe",
"company": "Tech Corp",
"street1": "456 Business Ave",
"street2": "Suite 200",
"city": "San Francisco",
"state": "CA",
"postalCode": "94105",
"countryCode": "US",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "ACME Warehouse",
"street1": "500 Industrial Blvd",
"city": "Portland",
"state": "OR",
"postalCode": "97201",
"countryCode": "US",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "SKU-67890",
"quantity": 1
}
],
"packagingType": {
"packagingMaterial": "box",
"linearDimensions": {
"length": 16,
"width": 12,
"height": 6,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 3.2,
"weightUnit": "lb"
},
"saturdayDelivery": false,
"deliverySignatureOption": "Signature"
},
"generateLabel": true,
"labelParameters": {
"labelFormats": ["pdf"],
"includeLabelImagesInResponse": false
}
}
],
"options": {
"currencyCode": "USD",
"includeFullShipmentResponses": false //false by default or if not included, will include full shipment responses on each result if toggled on
}
}
Example standard response without full shipment details
{
"orchestratedAssetMetadata": {
"orchestrationId": "batch-20251006-abc123", //This orchestrationId can be used to pass to us for support to help trace back what happened for a specific request
"orchestrationTimeStamp": "2025-10-06T14:30:22.123456Z"
},
"results": [
{
"shipiumShipmentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"partnerShipmentId": "ORDER-2025-001-PKG-1",
"carrierSelectionId": "cs-f1e2d3c4-b5a6-4978-8899-aabbccddeeff",
"shipiumLabelId": "lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890",
"carrier": "fedex",
"carrierServiceMethodId": "fedex-ground-service-method",
"carrierTrackingId": "123456789012",
"carrierTrackingLink": "https://www.fedex.com/track?tracknumber=123456789012",
"labelStatus": "success",
"labelUrls": {
"pdf": "https://cdn.shipium.com/labels/lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890.pdf",
"zpl": "https://cdn.shipium.com/labels/lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890.zpl"
},
"estimatedDeliveryDate": "2025-10-10T20:00:00Z",
"totalCost": 12.45,
"currencyCode": "USD"
},
{
"shipiumShipmentId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"partnerShipmentId": "ORDER-2025-002-PKG-1",
"carrierSelectionId": "cs-a9b8c7d6-e5f4-3210-9876-543210fedcba",
"shipiumLabelId": "lbl-8b7c6d5e-4f3a-2109-bcde-f01234567891",
"carrier": "ups",
"carrierServiceMethodId": "ups-ground-service-method",
"carrierTrackingId": "1Z999AA10123456784",
"carrierTrackingLink": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
"labelStatus": "success",
"labelUrls": {
"pdf": "https://cdn.shipium.com/labels/lbl-8b7c6d5e-4f3a-2109-bcde-f01234567891.pdf"
},
"estimatedDeliveryDate": "2025-10-11T18:00:00Z",
"totalCost": 9.87,
"currencyCode": "USD"
}
],
"failures": []
}
Example response with full shipment details
To include full shipment details in the response, the value for includeFullShipmentResponses in your call request should be set to true.
{
"orchestratedAssetMetadata": {
"orchestrationId": "batch-20251006-xyz789", //This orchestrationId can be used to pass to us for support to help trace back what happened for a specific request
"orchestrationTimeStamp": "2025-10-06T14:30:22.123456Z"
},
"results": [
{
"shipiumShipmentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"partnerShipmentId": "ORDER-2025-001-PKG-1",
"orderedDateTime": "2025-10-06T08:00:00Z",
"effectiveShipDateTime": "2025-10-06T14:30:22Z",
"estimatedDeliveryDate": "2025-10-10T20:00:00Z",
"desiredDeliveryDate": "2025-10-10T20:00:00Z",
"destinationAddress": {
"name": "Jane Smith",
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"postalCode": "98101",
"countryCode": "US",
"addressType": "residential"
},
"shipFromAddress": {
"name": "ACME Warehouse",
"street1": "500 Industrial Blvd",
"city": "Portland",
"state": "OR",
"postalCode": "97201",
"countryCode": "US",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "SKU-12345",
"quantity": 2
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingSizeName": "Medium Box",
"linearDimensions": {
"length": 12,
"width": 10,
"height": 8,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 5.5,
"weightUnit": "lb"
},
"carrierSelection": {
"carrierSelectionId": "cs-f1e2d3c4-b5a6-4978-8899-aabbccddeeff",
"shipiumShipmentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"partnerShipmentId": "ORDER-2025-001-PKG-1",
"carrierSelectionDateTime": "2025-10-06T14:30:22.123456Z",
"carrierDecision": {
"status": "success",
"partnerId": "partner-12345",
"carrierAccountId": "acct-fedex-001",
"serviceMethodIdentifier": "urn:carrierrate:fedex-ground:v1",
"carrier": "fedex",
"carrierServiceName": "FedEx Ground",
"carrierServiceMethodId": "fedex-ground-service-method",
"serviceMethodName": "FedEx Ground",
"thirdPartyBilling": false,
"effectiveShipDateTime": "2025-10-06T14:30:22Z",
"estimatedDeliveryDate": "2025-10-10T20:00:00Z",
"carrierZoneId": "fedex-zone-7"
}
},
"carrierLabel": {
"shipiumShipmentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"partnerShipmentId": "ORDER-2025-001-PKG-1",
"carrierSelectionId": "cs-f1e2d3c4-b5a6-4978-8899-aabbccddeeff",
"shipiumLabelId": "lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890",
"status": "success",
"carrier": "fedex",
"carrierServiceName": "FedEx Ground",
"serviceMethodName": "FedEx Ground",
"carrierServiceMethodId": "fedex-ground-service-method",
"carrierShipmentId": "fedex-ship-987654321",
"carrierTrackingId": "123456789012",
"carrierTrackingLink": "https://www.fedex.com/track?tracknumber=123456789012",
"packageScannableId": "123456789012",
"labelCreationDateTime": "2025-10-06T14:30:23.456789Z",
"effectiveShipDateTime": "2025-10-06T14:30:22Z",
"estimatedDeliveryDate": "2025-10-10T20:00:00Z",
"serviceMethodIdentifier": "urn:carrierrate:fedex-ground:v1",
"carrierLabelCurrencyCode": "USD",
"carrierLabelPrice": 12.45,
"billableWeight": {
"weight": 6,
"weightUnit": "lb"
},
"documents": [
{
"labelFormat": "pdf",
"labelUrl": "https://cdn.shipium.com/labels/lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890.pdf",
"labelExpiration": "2025-10-13T14:30:23Z",
"carrierTrackingId": "123456789012",
"packageScannableId": "123456789012"
},
{
"labelFormat": "zpl",
"labelUrl": "https://cdn.shipium.com/labels/lbl-9a8b7c6d-5e4f-3210-abcd-ef1234567890.zpl",
"labelExpiration": "2025-10-13T14:30:23Z",
"carrierTrackingId": "123456789012",
"packageScannableId": "123456789012"
}
],
"testMode": false,
"details": {
"labelCreateParams": {
"currencyCode": "USD",
"labelFormats": ["pdf", "zpl"],
"includeLabelImagesInResponse": true
},
}
}
},
{
"shipiumShipmentId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"partnerShipmentId": "ORDER-2025-002-PKG-1",
"orderedDateTime": "2025-10-06T09:15:00Z",
"effectiveShipDateTime": "2025-10-06T14:30:24Z",
"estimatedDeliveryDate": "2025-10-11T18:00:00Z",
"deliverySignatureOption": "Signature",
"saturdayDelivery": false,
"destinationAddress": {
"name": "John Doe",
"company": "Tech Corp",
"street1": "456 Business Ave",
"street2": "Suite 200",
"city": "San Francisco",
"state": "CA",
"postalCode": "94105",
"countryCode": "US",
"addressType": "commercial"
},
"shipFromAddress": {
"name": "ACME Warehouse",
"street1": "500 Industrial Blvd",
"city": "Portland",
"state": "OR",
"postalCode": "97201",
"countryCode": "US",
"addressType": "commercial"
},
"orderItemQuantities": [
{
"productId": "SKU-67890",
"quantity": 1
}
],
"packagingType": {
"packagingMaterial": "box",
"packagingSizeName": "Large Box",
"linearDimensions": {
"length": 16,
"width": 12,
"height": 6,
"linearUnit": "in"
}
},
"totalWeight": {
"weight": 3.2,
"weightUnit": "lb"
},
"carrierSelection": {
"carrierSelectionId": "cs-a9b8c7d6-e5f4-3210-9876-543210fedcba",
"shipiumShipmentId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"partnerShipmentId": "ORDER-2025-002-PKG-1",
"carrierSelectionDateTime": "2025-10-06T14:30:24.234567Z",
"carrierDecision": {
"status": "success",
"partnerId": "partner-12345",
"carrierAccountId": "acct-ups-001",
"serviceMethodIdentifier": "urn:carrierrate:ups-ground:v1",
"carrier": "ups",
"carrierServiceName": "UPS Ground",
"carrierServiceMethodId": "ups-ground-service-method",
"serviceMethodName": "UPS Ground",
"thirdPartyBilling": false,
"effectiveShipDateTime": "2025-10-06T14:30:24Z",
"estimatedDeliveryDate": "2025-10-11T18:00:00Z",
"carrierZoneId": "ups-zone-6"
}
},
"carrierLabel": {
"shipiumShipmentId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"partnerShipmentId": "ORDER-2025-002-PKG-1",
"carrierSelectionId": "cs-a9b8c7d6-e5f4-3210-9876-543210fedcba",
"shipiumLabelId": "lbl-8b7c6d5e-4f3a-2109-bcde-f01234567891",
"status": "success",
"carrier": "ups",
"carrierServiceName": "UPS Ground",
"serviceMethodName": "UPS Ground",
"carrierServiceMethodId": "ups-ground-service-method",
"carrierShipmentId": "ups-ship-876543210",
"carrierTrackingId": "1Z999AA10123456784",
"carrierTrackingLink": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
"packageScannableId": "1Z999AA10123456784",
"labelCreationDateTime": "2025-10-06T14:30:25.678901Z",
"effectiveShipDateTime": "2025-10-06T14:30:24Z",
"estimatedDeliveryDate": "2025-10-11T18:00:00Z",
"serviceMethodIdentifier": "urn:carrierrate:ups-ground:v1",
"carrierLabelCurrencyCode": "USD",
"carrierLabelPrice": 9.87,
"billableWeight": {
"weight": 4,
"weightUnit": "lb"
},
"documents": [
{
"labelFormat": "pdf",
"labelUrl": "https://cdn.shipium.com/labels/lbl-8b7c6d5e-4f3a-2109-bcde-f01234567891.pdf",
"labelExpiration": "2025-10-13T14:30:25Z",
"carrierTrackingId": "1Z999AA10123456784",
"packageScannableId": "1Z999AA10123456784"
}
],
"testMode": false,
"details": {
"labelCreateParams": {
"currencyCode": "USD",
"labelFormats": ["pdf"],
"includeLabelImagesInResponse": false
},
}
}
}
],
"failures": []
}Request fields for API calls
The following tables provide the required, conditional, and optional fields for calling the Batch Label Creation API. You can find more guidance in the Batch Label Creation API Reference.
Required request fields
Request field | Details |
|---|---|
| Type: String |
| Type: String ($byte) |
| Type: String ($byte) |
| Type: Integer ($int32) |
| Type: String ($byte) |
| Type: String ($byte) |
| Type: String ($byte) |
| Type: Integer ($int32) |
| Type: String ($byte) |
| Type: String |
| Type: String |
| Type: String |
Conditional request fields
Request field | Details |
|---|---|
| Type: String |
| Type: Object |
| Type: String |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: Number ($float) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: Number ($float) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
Optional request fields
Request field | Details |
|---|---|
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String (enumeration) |
| Type: Boolean |
| Type: Integer ($int32) |
| Type: String |
| Type: String |
| Type: Boolean |
| Type: String |
| Type: String (enumeration) |
| Type: String |
| Type: Boolean |
| Type: Integer ($int32) |
| Type: String (enumeration) |
| Type: Integer ($int32) |
| Type: Integer ($int32) |
| Type: Integer ($int32) |
| Type: Integer ($int32) |
| Type: Boolean |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: Boolean |
| Type: Integer ($int32) |
| Type: Boolean |
| Type: String |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: String |
| Type: String |
| Type: Integer ($int32) |
| Type: Boolean |
| Type: String |
| 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 (enumeration) |
| Type: Boolean |
| Type: String |
| Type: Boolean |
| Type: String (enumeration) |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: String |
| Type: Number ($float) |
| Type: String (enumeration) |
| 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 |
| Type: Boolean |
| Type: String |
| Type: String |
| Type: String ($date-time) |
| Type: String |
| Type: String |
| Type: Number ($float) |
| Type: String (enumeration) |
Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 3 days ago
