#nopCommerce

The shipping label is a small PDF with a large amount of responsibility

Zulu Shack illustration for “The shipping label is a small PDF with a large amount of responsibility”: parcel with barcode label

A shipping label looks like a document. Inside a commerce system, creating it can also mean asking an external service to perform a chargeable operation, assigning a tracking number and making a commitment about a parcel.

That is quite a workload for something staff may describe as “the print button.”

A dependable label integration needs to connect the order, package, carrier request and returned document. It also needs to distinguish creating a label from downloading, printing and using it. A printer producing paper does not prove a parcel has left the building, however encouragingly it whirs.

Let’s follow a fictional nopCommerce store’s label workflow.1 This is a design example, not a claim about a particular client or an implemented bulk-print feature.

Identify the package before requesting its label

An order may contain several packages, and a package may need a replacement label. Treating the order number as the only identifier can make those relationships difficult to recover.

Give the intended shipping operation a stable internal identity. Record the package details and the carrier information needed to explain what was requested.

Keep each kind of identifier in its own role

The order identifier tells staff which customer transaction is involved. A package identifier distinguishes the shipment unit. A request identifier helps correlate the external operation. The carrier’s tracking number identifies what the carrier created.

Those values can be related without becoming interchangeable.

For the sample store, staff should be able to move from an order to its packages and see the relevant label attempts. An error log containing a tracking number nobody can connect to an order is technically evidence, but it is not yet much help.

A nopCommerce plugin can provide an extension point for this behavior. The workflow still needs to fit the installed platform version and the business’s actual shipping process.

As nopCommerce Silver Partners, we’ve put this into practice. See the nopCommerce store we built for Freddy’s Jewelry.

Separate an uncertain request from a failed request

Suppose the carrier creates a label but the response never reaches the store. The application sees a timeout. That does not establish that no label exists.

Immediately sending a new create request may produce a duplicate operation, depending on the provider’s behavior.

Make retry behavior part of the integration contract

Where the provider supports idempotency, use its documented mechanism with a stable key for the same intended operation. Stripe’s writing explains the broader purpose: retrying a request should not cause the business action to happen again.2

That does not mean a carrier implements Stripe’s API behavior. Check the carrier’s actual guarantees, lookup options and error responses.

Where a result is uncertain, use the supported way to reconcile it or route the case for review before creating another label. Distinguish that from a validation failure that requires correcting the address or package information.

For transient failures, use bounded retries with delays and jitter as appropriate. AWS’s guidance on retries is valuable background here.3 A temporary outage should not receive an enthusiastic chorus of every waiting job asking again at precisely the same moment.

Worth reading next: An ERP integration should reduce spreadsheets, not breed them.

Reprint the document without recreating the shipment

Once a label exists, downloading or printing it again should follow the stored label relationship. The user may need another copy because paper jammed, the wrong tray was selected or the first copy has joined the office’s unexplained collection of missing things.

A reprint action should not silently submit another shipment request.

Replacement and cancellation are different actions with different rules. If staff change the package or shipping service, the application should make clear whether the existing label must be voided or a new operation is required. Follow the provider’s actual support for those actions.

Give staff a view of the unfinished work

For a single label, show whether creation is waiting, confirmed, uncertain or needs attention. For a batch, keep an individual outcome for each package.

A batch should be able to complete partially without presenting every item as failed or every item as successful. Staff need to see which labels are ready, which require correction and which are awaiting reconciliation.

Don’t make them rerun the successful items to recover one failed item. Store the results durably and offer a scoped recovery action.

I would rehearse duplicate clicks, a lost response, an interrupted download and a batch containing one invalid package. Then check whether a support person can understand the result from the operational screen.

The integration has done its job when staff can confidently create, find and recover the correct label. The PDF is the visible output. The responsibility is knowing exactly which package it belongs to and what has already happened.

Turn reading into results

Like what you’re reading? Let’s put it to work on your brand.