# Connect Order Data

To initiate the returns process, parcelLab will need to receive all the necessary order-related information. With the order data, we can display the purchased articles for each order, so your customers can select the items they want to return.

There are two ways you can provide the order data required for the Returns Portal to work.

{% stepper %}
{% step %}

#### Using outbound order data

Using this method, we reference order data that is sent to parcelLab via a file or API connection for outbound trackings. We store the data for up to 90 days and reference this database whenever your customers use your Returns Portal.

For more information on using this method of data transmission, please refer to the following documentation pages:

{% content-ref url="/pages/U7MQ07RqCyYjsccBgGn0" %}
[Create Orders/Trackings](/docs/developers/orders/create-orders-trackings.md)
{% endcontent-ref %}
{% endstep %}

{% step %}

#### Using real-time API connection

Using this method, we call an API endpoint the moment a customer logs into your Returns Portal. This real-time API connection ensures that the order data is up to date and stored only when necessary.

This integration enables the handling of use cases that require the returns window to be longer than 90 days.

For information on using this method of data transmission, please refer to the order data required section below.

For details on the Real-time API see:

{% content-ref url="/pages/xRoeFG5VSPCQLCjgB0IB" %}
[Real-time API Connection for Returns](/docs/developers/returns/connect-order-data/real-time-api-connection-for-returns.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parcellab.com/docs/developers/returns/connect-order-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
