Connect your WMS, ERP or e-commerce platform to carrier APIs for automated label printing, real-time tracking and multi-carrier booking.
Manual shipping — logging into carrier portals, entering parcel details one by one, downloading and printing labels — does not scale. Businesses processing 50+ shipments per day need their shipping to be automated: order comes in, label is generated, carrier is booked and tracking number is returned to the customer — all without manual intervention. Carrier API integration makes this possible. This guide explains how shipping API integration works, the options available to Portuguese businesses, and how Cargosender's API simplifies multi-carrier connectivity.
Generate carrier labels automatically when an order is confirmed — no manual portal entry. Saves 2–5 minutes per shipment.
Pull tracking events back into your OMS, CRM or customer portal — customers see live status without leaving your site.
Cargosender API connects to DHL, FedEx, UPS, DPD and GLS — one integration, all carriers. No need to maintain separate API connections per carrier.
Query rates across carriers at the moment of booking — always select the cheapest or fastest option for each order's weight and destination.
A shipping API integration connects your order management or fulfilment system directly to carrier systems. When an order is ready to ship, your system calls the carrier (or aggregator) API with the parcel details — weight, dimensions, destination address, service type — and receives back a shipping label (PDF or ZPL for thermal printers), a tracking number and estimated delivery date. This happens in milliseconds and eliminates the manual step of entering parcel details into a carrier portal.
You can integrate directly with each carrier's own API, or use Cargosender's unified API that connects to all carriers from a single endpoint. Both approaches have trade-offs:
If you sell via Shopify, WooCommerce, PrestaShop, Magento or other e-commerce platforms, shipping integrations are available without writing custom API code:
Setting up a shipping API integration requires a few things in place before development begins:
For custom WMS/ERP or direct REST API integration: yes, a developer is needed. Most shipping API integrations take 1–5 days of development time for an experienced developer. For standard e-commerce platforms (Shopify, WooCommerce, PrestaShop): no developer needed — install the carrier or Cargosender plugin, enter your account credentials and configure service mapping. If you use a bespoke or enterprise system (SAP, Microsoft Dynamics, custom-built OMS), API integration requires your internal development team or a systems integrator.
Yes — Cargosender's API provides access to DHL, FedEx, UPS, DPD and GLS through a single endpoint and authentication. You make one API call to get rates across all carriers and another to book with your chosen carrier. This is significantly simpler than maintaining separate API integrations with each carrier's own authentication system, rate format and error codes. For most Portuguese businesses, a multi-carrier aggregator API is the right approach.
Once a shipment is booked via API, you receive a tracking number. Tracking events (picked up, in transit, out for delivery, delivered) are available via two methods: polling (your system queries the tracking API every hour/day to pull latest status) or webhooks (the carrier or Cargosender pushes event updates to a URL you provide in real time when status changes). Webhooks are more efficient for high-volume operations. Most platforms use tracking data to automatically update customers and trigger post-delivery flows (review requests, loyalty points).
PDF labels (A4 or A6): print on any laser, inkjet or thermal label printer. Suitable for low-to-medium volume (under 100 labels/day). A6 PDF on a thermal label printer is common for small e-commerce operations. ZPL (Zebra Programming Language): direct thermal printing, very fast (1–2 seconds per label), low consumable cost (no ink). Standard for high-volume fulfilment (100+ shipments/day). Requires a Zebra-compatible thermal label printer (Zebra GK420d, ZD420 or similar). ZPL is the professional standard for warehouse fulfilment — if you are scaling up, invest in a thermal printer.
Cargosender API includes address validation as part of the shipment creation request — invalid postal codes or addresses return an error before the shipment is committed, preventing wasted labels and failed deliveries. For proactive validation (at checkout, before the order is placed): consider integrating a dedicated address validation API (Google Places, Loqate, Melissa Data) in your checkout flow. Catching address errors at checkout is far cheaper than a failed delivery surcharge from the carrier (typically €3–€8 per failed attempt).
Compare live rates from DHL, FedEx, UPS, DPD and GLS. No account required to get a quote.
Get a Business Quote →