Shipping integration: what it is and how to set it up (API, labels, tracking numbers)

What is shipping integration and how is it set up? The flow from order to label, tracking number and automatic customer notification, plus the API scope.

FUFerhat UğurluYazSis TeamPublished: December 2, 20268 min read
In short

Shipping integration means passing an e-commerce order automatically to the carrier’s system, receiving the label and tracking number, and writing the delivery status back to the order. It is usually built on the API the carrier provides; the tracking number is sent to the customer automatically by a notification tied to the order status. The scope is defined in the project analysis, based on the number of carriers, label needs and notification channels.

In the afternoon there are three messages in the customer service inbox: “What is the status of my order?”, “I didn’t get a tracking number”, “You said it shipped yesterday, but it still doesn’t show up.” The parcels may really be on their way; but the tracking number sits in a carrier panel, the order on another screen, and the message to the customer in nobody’s hands. Most messages of this kind come not from a shipping problem but from information being stuck in three places. In this article we answer, in order, what shipping integration is, which steps and which API logic it is built on, and how the tracking number reaches the customer automatically.

Shipping integration is the software connection that passes an e-commerce order automatically to the carrier’s system, retrieves the shipping label and tracking number, and writes the delivery status back to the order. The goal is to keep order and shipment information in the same record and to pass the right information to the customer automatically.

What does shipping integration do between order and delivery?

  1. The order is ready: payment is complete, the items are packed and the shipping details (recipient, address, number of parcels, weight) are complete.
  2. The shipment record is sent: the order data is transferred to the carrier’s system as a shipment record.
  3. Label and tracking number come back: the carrier issues the tracking number and the label becomes printable.
  4. The parcel leaves: the warehouse attaches the label and hands the parcel to the carrier; the order status changes to “shipped”.
  5. Status updates flow in: events such as in transit, out for delivery and delivered are written to the order.
  6. The customer is informed: the tracking number and important status changes are passed on to the customer.

How is shipping integration set up?

Setup is as much a data-organisation job as a technical one. Most projects cannot move forward until these points are resolved:

  • Access credentials: the credentials needed for the connection are obtained under the agreement with the carrier. What they cover varies from carrier to carrier.
  • Address and field mapping: the address fields on the site (province, district, neighbourhood, phone) are mapped to the format the carrier expects. An address that does not match causes an error in the shipment record.
  • Weight and parcel data: where will the parcel’s weight or volume come from? From the product record, or entered during packing?
  • Carrier selection rule: one carrier or several? If several, will the choice follow a rule based on weight, region or cost?
  • Label output: where and in what format will the label be printed, and on which screen will the warehouse see it?
  • Error handling: if the record is rejected, is the order put on hold, who is alerted and how is it retried?

Where are the shipping fee and the dispatch warehouse decided?

Integration does more than create a shipment record; the calculation of the shipping fee shown in the cart and the choice of warehouse the shipment leaves from are linked to the same data chain. If there is more than one warehouse, the warehouse that holds the item determines the shipment’s point of origin. And seeing in a report the difference between the shipping fee shown to the customer and the amount the carrier charges you is only possible when the order and the shipment are kept in the same record.

How does shipping integration work via API?

A shipping integration API is a standard request-and-response channel between the e-commerce system and the carrier’s system. The e-commerce side sends a shipment request; the carrier side returns the tracking number and label data. Status information can be obtained in two ways: the e-commerce system queries the carrier at set intervals, or the carrier notifies the other system when the status changes. The second way is closer to real time; which one can be used depends on the methods the carrier offers.

The API’s limits are part of the design too: request limits, supported service types, error codes. That is why the scope is worked out separately for each carrier.

Which scenarios should be tested before going live?

Testing should not just be a check that “I placed an order and a label came out”. Test at least these scenarios with real data: an order made up of several parcels, a missing or incorrect address, an order cancelled after the shipment was created, an undeliverable parcel and a customer return. In each scenario, verify that the order status, the tracking number and the message to the customer are correct, and that an error sends an alert to the right person.

How is the tracking number sent to the customer automatically?

For the tracking number to go out by itself, the creation of the shipment record counts as an event that changes the order status. This event triggers a notification rule: an email or text message is sent containing the tracking number and the tracking link. The table below shows a typical mapping.

Order statusTriggering eventInformation sent to the customerWho on the team handles it?
ProcessingPayment completedYour order has been receivedWarehouse: packing
ShippedShipment record and tracking number createdTracking number and tracking linkWarehouse: label and handover
In transit or out for deliveryStatus update from the carrierStatus information (optional)Operations: delay monitoring
DeliveredDelivery confirmation from the carrierDelivery notificationCustomer service: return window monitoring
Delivery failedCarrier exceptionInformation and optionsCustomer service: reshipment or cancellation

The content of the message is part of the rule too: order number, tracking number, tracking link and where to turn if there is a problem. Sending notifications from a central, traceable communication layer makes the question “Did the message go out?” answerable.

The most common setup errors

  • The record is rejected because the address line does not fit the carrier’s field limit.
  • The shipment is not created because the phone number is missing or entered in a different format.
  • Two shipment records are created for the same order and two tracking numbers are generated.
  • The tracking number is generated correctly but not written back to the order; the customer gets no information.
  • The delivered status never arrives, and the order shows “in transit” forever.

Each of these errors is handled with its own alert and retry rule. Without an alert, it is the customer who finds the error first.

Creating shipments by hand in the carrier panel: where it works and where it breaks

For a shop sending a few orders a day, creating the shipment record in the carrier’s own panel, printing the label and sending the tracking number to the customer by hand is a reasonable setup; no extra installation is needed.

As order volumes grow, the same information is entered three times: on the site, in the carrier panel and in the message to the customer. Every entry carries the risk of a typo or of something being forgotten; a tracking number goes to the wrong order, and some customers never hear anything. When several carriers are used, tracking which order went to which carrier in a spreadsheet gets harder. At this point, integration reduces errors and the tracking workload more than it saves time.

Questions to ask before setting up shipping integration

  • How many carriers do you work with, and which rule decides between them?
  • Where will the parcel weight and parcel data come from?
  • Where will the label be printed, and on which screen will the warehouse see it?
  • Will status updates arrive in real time or be pulled at set intervals?
  • Who will be alerted about faulty or rejected shipment records?
  • Who will create the label for return shipments, and through which flow?
  • Through which channel and with what content will messages be sent to the customer?

The shipping flow in YazSis Smart E-Commerce

YazSis Smart E-Commerce keeps the flow from order to payment, from payment to shipping and from shipping to delivery in a single data chain; shipping, delivery and status notifications are part of this chain. Carrier connections are set up in the project’s integration step: which carriers are connected, with which fields and how often is clarified during discovery. The general logic of the connection rests on the principles we describe on the integration page: a single source for each data field, the direction of the flow and error scenarios, logging and retries, and visible integration health.

To set up the shipping flow around your own order structure, take a look at the setup model on the Smart E-Commerce page.

Frequently asked questions

What is shipping integration?

It is the software connection that passes an e-commerce order automatically to the carrier’s system, retrieves the label and tracking number, and writes the delivery status back to the order.

How is shipping integration set up?

You make an agreement with the carrier and obtain access credentials, map the site’s address and parcel fields to the format the carrier expects, define the carrier selection rule and the label output, and design and test the error scenarios. The scope is worked out per carrier in the project analysis.

What does a shipping integration API do?

It is a standard channel for exchanging data between the e-commerce system and the carrier’s system. A shipment request is sent, the tracking number and label data are received, and the delivery status is queried or reported by the carrier.

How is the tracking number sent to the customer automatically?

When the shipment record is created, the order status changes to “shipped”, and this event triggers a notification rule. The tracking number and tracking link are sent to the customer by email or text message. The content and channel of the message are defined in the project.

Can I work with several carriers?

Yes. Which order goes to which carrier is decided by a rule based on weight, region or cost, for example. The connection method of each carrier is scoped separately.

Should an online shop sign the carrier agreement before the integration?

Yes. The access credentials needed for the connection are obtained under the agreement with the carrier, and what they cover varies from carrier to carrier. During the agreement talks, also ask about the connection method, the supported service types and how return shipments will work.

FU
Ferhat Uğurlu · YazSis Team

Builds enterprise software, AI and digital transformation products together with the YazSis team.