---
title: "INTEGRATIONS - Importing orders into Qargo"
description: "Learn how to import orders into Qargo via API or partner integrations. Covers mapping, validation and troubleshooting."
url: https://help.qargo.com/en/articles/450378-integrations-importing-orders-into-qargo
locale: en
updated: 2026-02-12
---

# INTEGRATIONS - Importing orders into Qargo

## Introduction {#h_dd2958ae7f}

Qargo supports multiple ways to bring orders into the platform at scale. This article explains the key concepts and the main import paths used by most customers: integration partners and Qargo’s public API. You will also find links to resources for manual imports and pallet network workflows, plus a troubleshooting guide with common errors and how to resolve them.

## Terminology {#h_59ca24e154}

| **Term** | **Description** |
| --- | --- |
| Order | A shipment or consignment record in Qargo. Orders can include one or more stops and associated documents. |
| Import | The process of creating or updating orders in Qargo by sending structured data from an external system. |
| Source system | The system that originates the data, for example your TMS, ERP, WMS, or marketplace. |
| Mapping | The transformation of fields from the source system to Qargo’s order schema. |
| DTO (Data Transfer Object) | The structured payload used to carry order data into Qargo via integrations, EDI, or API. |
| Validation | Qargo’s checks to ensure incoming data is complete, correctly formatted, and consistent with business rules. |
| Acknowledgement | The response returned to the sender indicating success, partial success with warnings, or failure with errors. |
| Idempotency key | A unique identifier generated by client & included with a request, typically in HTTP header; whose purpose is to ensure a request can be safely retried without unintended side effects, ie: duplication. |

### Import paths overview {#h_847e06915f}

Qargo supports several import methods. This article focuses on the three most common automated paths.

-   Integration partners (pre-built connectors)
-   EDI partners (industry-standard document flows)
-   Qargo API (direct programmatic integration)

For manual file uploads and pallet network–specific flows, see:

-   [Data Import - Importing order data](https://help.qargo.com/en/articles/418636-data-import-importing-order-data)
-   [PalletLine Order Import](https://help.qargo.com/en/articles/143830-pn-palletline-order-import-export#h_34e1be7ccf)

### Import via integration partners {#h_6e0d048f1b}

Best for organisations using popular ERPs, WMSs, or logistics platforms that already have a Qargo-certified connector.

-   How it works

    -   Your partner connector exports order data on a schedule or event.
    -   The connector maps the partner’s schema to Qargo’s order DTO.
    -   Data is transmitted to Qargo via a secure channel defined by the connector.
    -   Qargo validates, ingests, and returns acknowledgements and error details.
-   Typical capabilities

    -   Field mapping presets maintained by the partner
    -   Incremental updates for order changes
    -   Attachments support when the partner shares documents
    -   Automatic retries and dead-letter handling
-   What you configure

    -   Credentials or API keys provided by Qargo or the partner
    -   Optional field overrides and value normalisation rules
    -   Default behaviours for missing optional fields
    -   Notification preferences for import failures
-   When to choose this

    -   You want the fastest path to go-live with the least custom code
    -   Your partner already supports Qargo or a very similar schema

### Import via Qargo API {#h_baa8e418df}

Best for teams that want full control and immediate feedback, or when a partner connector is not available.

-   Endpoint model

    -   Create order
    -   Update order
    -   Attach documents and references
    -   Retrieve and search orders for confirmation
-   Payload guidance

    -   Use ISO 8601 for date-times with timezone offsets
    -   Provide consistent units for weights, volumes, and counts
    -   Include stable external IDs for idempotency and de-duplication
    -   Send complete address blocks where possible, including country codes
-   Reliability patterns

    -   Use idempotency keys to safely retry on network failures
    -   Implement exponential backoff for 429 and transient 5xx responses
    -   Log and surface validation errors to operations teams
-   Security

    -   Use scoped API keys or OAuth as provided
    -   Rotate credentials regularly and avoid hard-coding secrets
-   When to choose this

    -   You control the source system and can build quickly
    -   You need fine-grained control over payload shape, timing, and retries

:::callout{tone="info"}
**🧰 Qargo API technical documentation available [HERE](https://api.qargo.com/docs).**
:::

* * *

### Data mapping checklist {#h_1e6174b22f}

Before go-live, confirm the following are aligned between your source and Qargo:

| Parties | Customer, shipper, consignee, payer, and contact roles consistently mapped. |
| --- | --- |
| Locations | Names, addresses, country codes, and optional geo; avoid ambiguous free text. |
| Dates and times | Pickup, delivery, and ready-by windows in ISO 8601 with explicit timezones. |
| Goods details | Item lines, packages, pallets, dimensions, dangerous goods flags. |
| Accessorials and addons | Surcharges and service-level options mapped to Qargo’s addon model. |
| References | Customer order numbers, purchase orders, and trading-partner references. |
| Documents | Attachments for CMR, POD, labels, and customs docs if available. |

### Operational controls {#h_d12ae0008a}

| De-duplication | Provide a stable external ID. Qargo can reject duplicates or upsert as configured. |
| --- | --- |
| Partial updates | Decide whether updates replace full objects or patch specific fields. |
| Status handling | Agree which events can be set by import vs. those driven by operations. |
| Cutover strategy | Define a window when both old and new systems may run, and how to avoid double-booking. |

* * *

### Best practices to prevent issues {#h_4c7206bfe1}

-   **Validate before send**\
    Run a pre-check in your source system for required fields, date-time formats, and units.

-   **Standardise codes**\
    Maintain a lookup for services, equipment types, and accessorials that maps to Qargo codes.

-   **Use idempotency**\
    Always send idempotency keys for creates. Log the key-to-order ID mapping.

-   **Monitor and alert**\
    Set up notifications for failed imports and integrate error logs with your observability tools.

-   **Document your mapping**\
    Keep a living mapping document so future changes do not break imports.


-   Ensure all data, particularly dates, adheres to valid formats.
-   Use unique identifiers for new orders to avoid misclassification.
-   Regularly validate import files for typographical errors or data inconsistencies.

## Troubleshooting {#h_b734cbfbc8}

Below are common errors seen during order imports, their likely causes, and how to resolve them. Error text may vary slightly depending on the import path.

:::callout{tone="info"}
**_Missing required field: customer\_id_**

-   Symptom

    -   Error: Missing required field: customer\_id
-   Cause

    -   The source did not provide a mapped customer or provided an unknown value.
-   Fix

    -   Ensure the customer master exists in Qargo and the mapping uses the correct external key.
    -   For partners, update the connector mapping.
    -   For API, include customer\_id or a resolvable external\_customer\_ref.
:::

:::callout{tone="info"}
**_Invalid date-time format for pickup\_window.start_**

-   Symptom

    -   Error: Invalid date-time. Expected ISO 8601 with timezone
-   Cause

    -   Datetime sent without timezone or in a non-ISO format.
-   Fix

    -   Send ISO 8601 strings, for example 2025-03-12T08:00:00+01:00.
    -   Validate formats in your source before sending.
:::

:::callout{tone="info"}
**_Unknown location: consignee\_address_**

-   Symptom

    -   Error: Location validation failed for consignee
-   Cause

    -   Incomplete or ambiguous address, or a reference to a non-existent saved location.
-   Fix

    -   Provide full address including country code.
    -   If using location references, synchronise master data first.
:::

:::callout{tone="info"}
**_Unsupported addon code: LIFTGATE\_PREMIUM_**

-   Symptom

    -   Error: Addon code not recognised
-   Cause

    -   Source uses a service code that is not configured in Qargo.
-   Fix

    -   Add or map the code to a supported addon in Qargo.
    -   Normalise codes in your connector before transmission.
:::

:::callout{tone="info"}
**_Duplicate order detected with external\_id=ABC-123_**

-   Symptom

    -   Error: Duplicate order
-   Cause

    -   Idempotency or de-duplication flagged a repeated create.
-   Fix

    -   If intentional retry, reuse the same idempotency key and check the previous result.
    -   If a true duplicate, change the external\_id or convert to update.
:::

:::callout{tone="info"}
**_Document attachment rejected: file type not allowed_**

-   Symptom

    -   Error: File type not supported
-   Cause

    -   Attachment type not on the allowed list.
-   Fix

    -   Convert to a supported format, typically PDF or image types configured for your workspace.
    -   Ensure your integration sends MIME types correctly.\
        ​
:::

:::callout{tone="info"}
**_API 429 Too Many Requests_**

-   Symptom

    -   HTTP 429 responses and throttling headers.
-   Cause

    -   Burst traffic exceeds rate limits.
-   Fix

    -   Implement exponential backoff and respect retry-after headers.
    -   Smooth batch sizes and schedule imports to off-peak windows.
:::

:::callout{tone="info"}
**_“Fix errors?” prompt on the Order Import screen_**

-   Symptom

    -   User sees a banner or inline prompts during review.
-   Cause

    -   One or more imported orders have validation issues requiring operator input.
-   Fix

    -   Open the order, review highlighted fields, and correct the values.
    -   If the same issue reoccurs, update your mapping rules at the source.
:::

### Order Pre-fills (configured by Qargo Admin) {#h_3ac5923fbb}

If pre-filled order data appears incorrect or not as expected, it could be related to Order Import mapping.

![](https://help.qargo.com/media/19487907ce21-image.png)

-   Fields included in the order import mapping will take priority over any other default values elsewhere in the platform; pre-fills from the customer profile for instance.
-   Where other options are defined, that include **_multiple options to select_** (ie: extras), the values from the order import are included, along with any options that are already selected.

![](https://help.qargo.com/media/d020757bc01f-image.png)

### FAQ - Pre-fills {#h_c3aa0333a8}

**Q. How to give precedence to certain pre-fills if it can come from different sources for the same target field.**\
**Example: Start / End time windows - pre-fills can be defined:**

-   **Transport service**
-   **Customer**
-   **Location**
-   **Time Window**

**_A. The most specific pre-fill will be applied._** In the example above, the logic follows how granular the selections are: First, select transport service, then customer and locations, followed by time window for the stop. So in this instance, the pre-fill is taken for the last selection (Time window) as this would be considered the most specific option

**Q. Is there a way to pre-fill with the opening hours of the location, or does this have to be manually entered for each imported order? Is there a quick way to pull in times when the locations are available for collection / delivery?**

**_A. Yes, it's possible to pre-fill opening hours for locations when importing orders, and including that in the stop time window settings._** This ensures there is clear visibility of when the stop action can be completed, if no specific appointment or time window is required. There is a feature flag that can be enabled, which will automatically use the opening hours defined on the location for order imports.

::video{src="/media/video/25c8b24b68d9-2025-11-17_11-49-48-1-.mp4"}

:::callout{tone="note"}
💬 Contact Qargo Support, or your Account Manager if you would like to enable this feature.
:::

* * *

### Best practices to prevent issues {#h_c79fd5b2a4}

-   Validate before send\
    Run a pre-check in your source system for required fields, date-time formats, and units.

-   Standardise codes\
    Maintain a lookup for services, equipment types, and accessorials that maps to Qargo codes.

-   Use idempotency\
    Always send idempotency keys for creates. Log the key-to-order ID mapping.

-   Monitor and alert\
    Set up notifications for failed imports and integrate error logs with your observability tools.

-   Document your mapping\
    Keep a living mapping document so future changes do not break imports.


## Related articles

- [INTEGRATIONS - Qargo API - What, Why & How](https://help.qargo.com/en/articles/865547-integrations-qargo-api-what-why-how.md)
- [ORDER IMPORT — Template-Based Order Routing — What, Why & How.](https://help.qargo.com/en/articles/681640-order-import-template-based-order-routing-what-why-how.md)
- [DATA IMPORT - Importing Location Data](https://help.qargo.com/en/articles/413082-data-import-importing-location-data.md)
- [ORDERS - Departments: Overview](https://help.qargo.com/en/articles/454842-orders-departments-overview.md)
- [DATA IMPORT - What , why, how](https://help.qargo.com/en/articles/169976-data-import-what-why-how.md)
