The UCC Labels Generator creates GS1-128 (UCC-128) carton labels in ZPL format for retailers that require them. You send the label data to a Pipe17 endpoint, and the app returns a ZPL label that you can print on a thermal label printer. Pipe17 generates the labels through its own Orderful connection, so you don't need an Orderful account.
Setup
Before you begin
- UCC Labels Generator has limited availability. Contact Pipe17 support or your Pipe17 representative to have it enabled for your account.
- The retailer whose label template you need. See Supported retailer values below.
- An SSCC-18 code for each carton, built from your GS1 Company Prefix.
- A way to send HTTPS POST requests, such as curl or your own system.
- A ZPL-compatible thermal label printer, or a ZPL viewer to preview labels.
Prepare UCC Labels Generator
- Create an access key. This is a value you make up, not one you get from Orderful or Pipe17. Use a long, random string, for example 32 or more letters and numbers. You enter it in the app, and you send it with every request.
- Store the access key in a secure place. Anyone with your access key and integration ID can generate labels for your account.
- Get your SSCC values ready. The app doesn't create SSCCs. It prints the code you send. An SSCC is 18 digits and starts with your GS1 Company Prefix. See Serialized Shipping Container Codes (SSCC) on GS1 US.
Connect in the app
- Navigate to Integrations and click Add integration.
- Search for UCC Labels Generator and select it. The Connect UCC Labels Generator pop-up opens.
- In Access Key, enter the access key you created.
- Click Connect.
Note: If you don't have your access key yet, click Add without credentials. The integration is added, but requests are rejected until you enter the access key on the Connection Details tab and click Save.
Confirm the connection
- Navigate to Integrations. UCC Labels Generator shows Connected. If it shows Error or Not Configured, open it, check the access key on the Connection Details tab, and click Save. If it still shows Error, contact Pipe17 support.
- Make sure the switch on the integration's row is on.
- Send one test request, as shown in Example below. A successful request returns the label as ZPL text.
- Open the label in a ZPL viewer and check the addresses, PO number, and SSCC barcode.
Settings
These settings are on the integration's Settings tab. You don't need to change them to generate labels through the API.
| Setting | Description | Default |
|---|---|---|
| Fetch labels for shipping requests | When on, the app checks every 5 minutes for shipping requests with the Pending Shipping Label status. It generates a label for each one, attaches it to the shipping request, and moves the shipping request to Ready for Fulfillment. | Off |
Make the API call
Send a POST request in this format:
curl --location 'https://connector-webhooks-master.service.pipe17.com/connector_orderful_labels/labels/<IntegrationId>' \
--header 'x-api-key: <AccessKey>' \
--header 'Content-Type: application/json' \
--data '<JSON_BODY>'
You need three values:
-
AccessKey: the access key you entered in the Access Key field when you connected the integration. Send it in the
x-api-keyheader. -
IntegrationId: the ID of your UCC Labels Generator integration. Open the integration in the app. The integration ID is the 16-character code after
/integrations/in your browser's address bar, for example.../integrations/0123456789abcdef. - JSON_BODY: the label data, in JSON. See the field list below.
Label fields
All fields are optional, but a field you leave out prints a placeholder on the label (shown in the table). Send every field the retailer requires.
| Field | Printed on the label as | If left out |
|---|---|---|
retailer |
Label template | NORDSTROM |
location.name, location.address1, location.address2, location.city, location.stateOrProvince, location.zipCodeOrPostalCode
|
Ship-from address | - |
shippingAddress.companyName, shippingAddress.address1, shippingAddress.address2, shippingAddress.city, shippingAddress.stateOrProvince, shippingAddress.zipCodeOrPostalCode
|
Ship-to address | - |
shippingCarrier |
Carrier | UNKNOWN |
transport.billOfLadingNumber |
Bill of lading number | UNKNOWN |
transport.proNumber |
PRO number | UNKNOWN |
transport.ssccCode |
SSCC-18 barcode | UNKNOWN |
extOrderId |
PO number | UNKNOWN |
destination.department |
Department number | 1000 |
destination.distributionCenter |
Distribution center number | 1000 |
destination.store |
Store number | 1000 |
casepack |
Case pack quantity | 1 |
cartonMax |
Total cartons (carton X of Y) | 1 |
cartonNumber |
Carton number (carton X of Y) | 1 |
To see how these fields are mapped, open the integration's Mappings tab, select Labels in the entity list, and select To UCC Labels Generator. The source fields on the left (after sourcedoc.) are the fields you can send.
Supported retailer values
Set retailer to the label template of the retailer you ship to. Commonly used values:
ARMY_AND_AIR_FORCE_EXCHANGE_SERVICEBLOOMINGDALESBURLINGTON_COAT_FACTORYFISHER_SCIENTIFICFISHER_SCIENTIFIC_NON_EDIHEB_MIXEDHEB_STANDARDMACYSMARINE_CORPS_EXCHANGENEIMAN_MARCUSNORDSTROMSEPHORASPROUTS_FARMERS_MARKETTHE_HOME_DEPOTVITAMIN_SHOPPEVITAMIN_SHOPPE_MIXEDWALGREENSWALMART_CASE_DOMESTIC
The value is passed to Orderful as the label template type. For the full list of template types, see the type field in Orderful's Generate Label API reference. If the retailer you need isn't listed, contact your Pipe17 representative.
Example
This example includes every available field. Replace the placeholder values with your own.
curl --location 'https://connector-webhooks-master.service.pipe17.com/connector_orderful_labels/labels/0123456789abcdef' \
--header 'x-api-key: your-access-key' \
--header 'Content-Type: application/json' \
--output label.zpl \
--data '{
"retailer": "NORDSTROM",
"location": {
"name": "Main Warehouse",
"address1": "100 Example St",
"address2": "Suite 200",
"city": "Anytown",
"stateOrProvince": "WA",
"zipCodeOrPostalCode": "98000"
},
"shippingAddress": {
"companyName": "Example Retailer DC",
"address1": "200 Sample Ave",
"address2": "Dock 4",
"city": "Anytown",
"stateOrProvince": "WA",
"zipCodeOrPostalCode": "98000"
},
"shippingCarrier": "UPS",
"transport": {
"billOfLadingNumber": "BOL123",
"proNumber": "455",
"ssccCode": "106141411234567897"
},
"extOrderId": "PO-1001",
"destination": {
"department": "100",
"distributionCenter": "200",
"store": "300"
},
"casepack": "3",
"cartonMax": "2",
"cartonNumber": "1"
}'
The response body is the label in ZPL. With --output label.zpl, curl saves it to a file. Without it, copy the response into a text file and save it with the .zpl extension. See the attached file example_label.zpl for a sample response.
View and print the label
- Send the
.zplfile to a ZPL-compatible thermal label printer. - To preview the label, open it in any ZPL viewer, such as Labelary.
- Check that the barcode under the SSCC is readable and that the carton count (for example, carton 1 of 2) is right.
Troubleshooting
- The request returns 403 with "Not authorized".
Thex-api-keyheader doesn't match the access key saved on the integration. Check the key on the Connection Details tab, click Save if you changed it, and send the request again. - The request returns 400 with
INVALID_PAYLOAD.
Orderful rejected the label data. TheerrorMessagein the response names the problem, such as a missing or invalid field for the retailer's template. Fix the field and send the request again. - The request fails before it reaches the label step.
The body is empty or isn't valid JSON, or thex-api-keyheader is missing. Check the JSON, and send thex-api-keyandContent-Type: application/jsonheaders. - The label prints with the wrong template, or shows
UNKNOWN,-, or1000.
A field was left out, so the app used its placeholder. Ifretaileris missing, the app uses theNORDSTROMtemplate. Send every field the retailer needs. - The integration shows Error right after you connect.
The app couldn't reach the label service. Click Save on the Connection Details tab to try again. If it still shows Error, contact Pipe17 support. - Shipping requests stay in Pending Shipping Label.
Check that Fetch labels for shipping requests is on and the integration switch is on. Labels are created about every 5 minutes.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We’re here to help you succeed with your operations.
Comments
0 comments