> ## Documentation Index
> Fetch the complete documentation index at: https://developers.e-cross.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# List orders

> Retrieve a list of orders with optional filtering and pagination

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://order.api.e-cross.tech/ext/orders?status=READY_TO_SHIP&nextPageToken=' \
    -H 'Authorization: Bearer YOUR_TOKEN'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "orders": [
      {
        "orderId": "ACME-ECOM-TEST-003",
        "merchantId": "ACME",
        "salesChannelOrderId": "TEST-003",
        "salesChannel": "ECOM",
        "status": "READY_TO_SHIP",
        "fulfillmentWarehouseType": "MERCHANT",
        "value": 234,
        "taxType": "DDU",
        "currency": "BRL",
        "foreignCurrency": "USD",
        "customerDocument": "1234567890",
        "creationDate": "2023-10-27T19:10:00Z",
        "lastUpdateDate": "2023-10-27T19:18:54.301Z",
        "totals": {
          "orderValue": 234,
          "itemsGross": 234,
          "itemsDiscount": 0,
          "shippingGross": 0,
          "shippingDiscount": 0,
          "taxes": 0,
          "grossInboundValue": 234,
          "fees": 0,
          "netInboundValue": 234
        },
        "totalsForeignCurrency": {
          "orderValue": 45,
          "itemsGross": 45,
          "itemsDiscount": 0,
          "shippingGross": 0,
          "shippingDiscount": 0,
          "taxes": 0,
          "grossOutboundValue": 45,
          "fees": 0,
          "netOutboundValue": 45
        },
        "items": [
          {
            "id": "c62c9ca2-de02-4580-94e5-e1fef5cb8e7c",
            "skuId": "ACME-1",
            "salesChannelSkuId": "1",
            "ean": "0799439112766",
            "quantity": 1,
            "name": "Awesome Toy",
            "listPrice": 234,
            "salePrice": 234,
            "foreignListPrice": 45,
            "foreignSalePrice": 45,
            "invoicedPrice": 45,
            "weight": 0.16,
            "hsCode": "29362900"
          }
        ],
        "customer": {
          "type": "PERSON",
          "firstName": "John",
          "lastName": "Doe",
          "document": "1234567890",
          "email": "john.doe@e-cross.tech",
          "phone": {
            "countryCode": "55",
            "areaCode": "11",
            "number": "999999994"
          },
          "billingAddress": {
            "country": "BR",
            "state": "SP",
            "city": "São Paulo",
            "postalCode": "01218-000",
            "street": "Alameda Cleveland",
            "number": "31",
            "neighborhood": "Campos Elíseos",
            "receiverName": "John Doe"
          }
        },
        "shipping": {
          "outboundCountry": "CN",
          "deliveryAddress": {
            "country": "BR",
            "state": "SP",
            "city": "São Paulo",
            "postalCode": "01218-000",
            "street": "Alameda Cleveland",
            "number": "31",
            "neighborhood": "Campos Elíseos",
            "receiverName": "John Doe"
          },
          "deliveries": [
            {
              "name": "Normal",
              "company": "Company",
              "clearance": "Postal",
              "lastMileTrackingNumber": "NL970165916BR",
              "leadTime": 7,
              "listPrice": 0,
              "salePrice": 0,
              "deliveryTime": 7,
              "deliveryEstimateDate": "2023-11-07T19:10:00Z",
              "items": [
                "c62c9ca2-de02-4580-94e5-e1fef5cb8e7c"
              ],
              "parcels": [
                {
                  "name": "Cardboard Small",
                  "code": "CARD_SMALL",
                  "parcelId": "ACME800413194788BR",
                  "length": 15,
                  "width": 10,
                  "height": 8,
                  "weight": 0.04,
                  "netWeight": 0.16,
                  "grossWeight": 0.2,
                  "items": [
                    {
                      "salesChannelSkuId": "1",
                      "quantity": 1
                    }
                  ],
                  "documents": [
                    {
                      "name": "Label",
                      "url": "https://pdfobject.com/pdf/sample.pdf"
                    }
                  ],
                  "events": [
                    {
                      "eventId": "evt_20231027_01",
                      "eventDate": "2023-10-27T19:20:00Z",
                      "code": "AWAITING_PICK_UP",
                      "macroStep": "SHIPMENT_CREATED",
                      "carrierId": "ACME_FULFILLMENT",
                      "externalCode": "AWAITING_PICK_UP",
                      "description": "Order packed and ready for first mile pickup",
                      "location": "Sao Paulo, SP, BR"
                    }
                  ]
                }
              ]
            }
          ]
        },
        "payments": [
          {
            "type": "BILL",
            "value": 234
          }
        ]
      }
    ],
    "nextPageToken": "eyJjcmVhdGlvbkRhdGUiOiIyMDIzLTA5LTE2VDIyOjI1OjM5LjkzNloiLCJvcmRlcklkIjoiTVZQLVRFU1QtRUNPTS0wMDEiLCJ0eXBlIjoib3JkZXIifQ=="
  }
  ```
</ResponseExample>

### Query Parameters

<ParamField query="status" type="string">
  A single or comma-separated list of order statuses to filter. Refer to the [Order Statuses](/api-reference/overview/order-status) page for the list of available order statuses.
</ParamField>

<ParamField query="fulfillmentWarehouseType" type="string">
  Filter orders by fulfillment warehouse type. Accepts `MERCHANT`, `RETURNS`, or a comma-separated list such as `MERCHANT,RETURNS`. If omitted, only `MERCHANT` orders are returned by default.
</ParamField>

<ParamField query="creationDateFrom" type="string">
  Filter only orders created after the specified date and time, in ISO 8601 format, inclusive. Example: `2025-03-06T17:14:53Z`.
</ParamField>

<ParamField query="creationDateUntil" type="string">
  Filter only orders created before the specified date and time, in ISO 8601 format, inclusive. Example: `2025-03-06T17:14:53Z`.
</ParamField>

<ParamField query="lastUpdateDateFrom" type="string">
  Filter only orders last updated on or after the specified date and time, in ISO 8601 format, inclusive. Example: `2025-03-06T17:14:53Z`.
</ParamField>

<ParamField query="lastUpdateDateUntil" type="string">
  Filter only orders last updated on or before the specified date and time, in ISO 8601 format, inclusive. Example: `2025-03-06T17:14:53Z`.
</ParamField>

<ParamField query="nextPageToken" type="string">
  The token to fetch the next page of results. Use the value returned in the `nextPageToken` field of the previous request.
</ParamField>

### Response Fields

<ResponseField name="orders" type="array">
  Array containing [Orders](/api-reference/orders/list-orders#order-object-fields) that match the specified filters.
</ResponseField>

<ResponseField name="nextPageToken" type="string">
  The token to be used in the query parameter to retrieve the next page of results. If there are no more results, this field won't be returned.
</ResponseField>

### Order object fields

<ResponseField name="orderId" type="string">
  The unique identifier of the order within e-CROSS. Use this in subsequent API calls.
</ResponseField>

<ResponseField name="merchantId" type="string">
  The unique identifier of the merchant in the e-CROSS platform.
</ResponseField>

<ResponseField name="salesChannelOrderId" type="string">
  The order identifier in the sales channel.
</ResponseField>

<ResponseField name="salesChannel" type="string">
  The sales channel where the order was placed. Refer to the [Sales Channels](/api-reference/overview/sales-channels) page for the list of available sales channels.
</ResponseField>

<ResponseField name="status" type="string">
  The current status of the order. Refer to the [Order Statuses](/api-reference/overview/order-status) page for the list of available order statuses.
</ResponseField>

<ResponseField name="fulfillmentWarehouseType" type="string">
  The warehouse type responsible for fulfilling the order: `MERCHANT` for the regular international flow or `RETURNS` for orders fulfilled locally by the returns partner.
</ResponseField>

<ResponseField name="value" type="number">
  The total value of the order.
</ResponseField>

<ResponseField name="taxType" type="string">
  `DDP` if taxes are already included in prices. `DDU` if prices do not have taxes.
</ResponseField>

<ResponseField name="currency" type="string">
  The currency used by the buyer to place the order.
</ResponseField>

<ResponseField name="foreignCurrency" type="string">
  The currency used by the merchant to price the products, a.k.a. "merchant foreign currency".
</ResponseField>

<ResponseField name="customerDocument" type="string">
  The document of the customer who placed the order.
</ResponseField>

<ResponseField name="creationDate" type="string">
  The date when the order was created.
</ResponseField>

<ResponseField name="approvalDate" type="string">
  The date when the order was approved. If the order is not approved, this field won't be returned.
</ResponseField>

<ResponseField name="cancelDate" type="string">
  The date when the order was canceled. If the order is not canceled, this field won't be returned.
</ResponseField>

<ResponseField name="startHandlingDate" type="string">
  The date when the order started to be handled. If the order is not being handled, this field won't be returned.
</ResponseField>

<ResponseField name="onHoldDate" type="string">
  The date when the order was put on hold. If the order is not on hold, this field won't be returned.
</ResponseField>

<ResponseField name="packedDate" type="string">
  The date when the order was packed. If the order is not packed, this field won't be returned.
</ResponseField>

<ResponseField name="invoicedDate" type="string">
  The date when the order was invoiced. If the order is not invoiced, this field won't be returned.
</ResponseField>

<ResponseField name="shipmentDate" type="string">
  The date when the order was shipped. If the order is not shipped, this field won't be returned.
</ResponseField>

<ResponseField name="deliveredDate" type="string">
  The date when the order was delivered. If the order is not delivered, this field won't be returned.
</ResponseField>

<ResponseField name="lastUpdateDate" type="string">
  The date when the order was last updated. Every time a status changes, this field is updated.
</ResponseField>

<ResponseField name="totals" type="object">
  Order amounts summary in the buyer's local currency.

  <Expandable title="totals fields">
    <ResponseField name="orderValue" type="number">Total order value.</ResponseField>
    <ResponseField name="itemsGross" type="number">Total items gross amount (sum of item.listPrice × item.quantity).</ResponseField>
    <ResponseField name="itemsDiscount" type="number">Total items discount amount.</ResponseField>
    <ResponseField name="shippingGross" type="number">Total shipping gross amount.</ResponseField>
    <ResponseField name="shippingDiscount" type="number">Shipping discounts total amount.</ResponseField>
    <ResponseField name="taxes" type="number">Total of taxes (import duty and sales taxes).</ResponseField>
    <ResponseField name="fees" type="number">Fees that will be discounted from the order.</ResponseField>
    <ResponseField name="grossInboundValue" type="number">Gross amount that will be sent for settlement in local currency.</ResponseField>
    <ResponseField name="netInboundValue" type="number">Net amount that will be sent for settlement in local currency.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="totalsForeignCurrency" type="object">
  Order amounts summary in the merchant currency. Same structure as `totals` but in the merchant's foreign currency.
</ResponseField>

<ResponseField name="items" type="array">
  Array with one line for each order item.

  <Expandable title="order item fields">
    <ResponseField name="id" type="string">Unique identifier for this line within the order. Used to define which delivery this line belongs to.</ResponseField>
    <ResponseField name="skuId" type="string">SKU ID within the e-CROSS platform.</ResponseField>
    <ResponseField name="salesChannelSkuId" type="string">SKU ID of this item in the sales channel.</ResponseField>
    <ResponseField name="ean" type="string">SKU EAN-13 code.</ResponseField>
    <ResponseField name="quantity" type="integer">How many pieces of this SKU are being bought.</ResponseField>
    <ResponseField name="name" type="string">The name of the SKU.</ResponseField>
    <ResponseField name="listPrice" type="number">Unit price, in local currency, with no discounts applied.</ResponseField>
    <ResponseField name="salePrice" type="number">Unit price, in local currency, with all discounts applied.</ResponseField>
    <ResponseField name="foreignListPrice" type="number">Unit price converted to foreign currency.</ResponseField>
    <ResponseField name="foreignSalePrice" type="number">Unit price with discounts, converted to foreign currency.</ResponseField>
    <ResponseField name="invoicedPrice" type="number">Unit price of the item in the commercial invoice.</ResponseField>
    <ResponseField name="imageUrl" type="string">URL to the SKU image.</ResponseField>
    <ResponseField name="weight" type="number">Product weight in kilograms (kg).</ResponseField>
    <ResponseField name="hsCode" type="string">SKU Harmonized System (HS) code.</ResponseField>

    <ResponseField name="shippingDocuments" type="object">
      Array of documents related to the item shipping. If there is no document, this field won't be returned.

      <Expandable title="shippingDocuments fields">
        <ResponseField name="name" type="string">Document name</ResponseField>
        <ResponseField name="url" type="string">Document URL</ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="customer" type="object">
  Information about the customer who placed the order.

  <Expandable title="customer fields">
    <ResponseField name="type" type="string">Type of customer: `PERSON` (individual) or `COMPANY` (company).</ResponseField>
    <ResponseField name="firstName" type="string">Customer first name.</ResponseField>
    <ResponseField name="lastName" type="string">Customer last name.</ResponseField>
    <ResponseField name="document" type="string">Customer identification document.</ResponseField>
    <ResponseField name="email" type="string">Customer's email address.</ResponseField>
    <ResponseField name="phone" type="object">Customer contact phone number.</ResponseField>

    <ResponseField name="billingAddress" type="object">
      Customer billing address.

      <Expandable title="billingAddress fields">
        <ResponseField name="addressName" type="string">Name of the address.</ResponseField>
        <ResponseField name="receiverName" type="string">Name of the person who will receive the order.</ResponseField>
        <ResponseField name="street" type="string">Street name.</ResponseField>
        <ResponseField name="number" type="string">Building number.</ResponseField>
        <ResponseField name="complement" type="string">Any relevant address complement.</ResponseField>
        <ResponseField name="neighborhood" type="string">Neighborhood name.</ResponseField>
        <ResponseField name="city" type="string">City name.</ResponseField>
        <ResponseField name="state" type="string">State or province name.</ResponseField>
        <ResponseField name="country" type="string">Country code, in the ISO-3166 3-digit format.</ResponseField>
        <ResponseField name="postalCode" type="string">Postal code.</ResponseField>
        <ResponseField name="reference" type="string">Any relevant reference text.</ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="shipping" type="object">
  Shipping information including delivery address and deliveries (packages).

  <Expandable title="Shipping Fields">
    <ResponseField name="outboundCountry" type="string">
      The 2-digit country code where this order will be shipped from.
    </ResponseField>

    <ResponseField name="deliveryAddress" type="object">
      The buyer's delivery address in the destination country.

      <Expandable title="deliveryAddress fields">
        <ResponseField name="addressName" type="string">Name of the address.</ResponseField>
        <ResponseField name="receiverName" type="string">Name of the person who will receive the order.</ResponseField>
        <ResponseField name="street" type="string">Street name.</ResponseField>
        <ResponseField name="number" type="string">Building number.</ResponseField>
        <ResponseField name="complement" type="string">Any relevant address complement.</ResponseField>
        <ResponseField name="neighborhood" type="string">Neighborhood name.</ResponseField>
        <ResponseField name="city" type="string">City name.</ResponseField>
        <ResponseField name="state" type="string">State or province name.</ResponseField>
        <ResponseField name="country" type="string">Country code, in the ISO-3166 3-digit format.</ResponseField>
        <ResponseField name="postalCode" type="string">Postal code.</ResponseField>
        <ResponseField name="reference" type="string">Any relevant reference text.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="freightForwarderAddress" type="object">
      The address of the consolidation hub, where the order should be dispatched to in the first mile.

      <Warning>
        This field is only available for orders that must be shipped to a consolidation hub. In routes configured for the pickup directly in the Merchant warehouse this field doesn't appear.
      </Warning>

      <Expandable title="freightForwarderAddress fields">
        <ResponseField name="address" type="string">The full address (receiver, street, number, complement).</ResponseField>
        <ResponseField name="city" type="string">The city name.</ResponseField>
        <ResponseField name="state" type="string">The state or province name.</ResponseField>
        <ResponseField name="postalCode" type="string">The address postal code.</ResponseField>
        <ResponseField name="country" type="string">The country code, ISO-3166 3-digit format.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="deliveries" type="array">
      Array of deliveries. Each delivery is composed by one or more packages that must be shipped to the customer.

      <Expandable title="delivery fields">
        <ResponseField name="name" type="string">The name of this shipping type. This is the text that the customer saw in the website when placing the order.</ResponseField>
        <ResponseField name="company" type="string">The name or ID of the company that will be in charge of transporting and delivering this order.</ResponseField>
        <ResponseField name="clearance" type="string">Type of customs clearance in the destination country: `POSTAL` or `COURIER`.</ResponseField>
        <ResponseField name="lastMileTrackingNumber" type="string">The tracking number of the last mile carrier.</ResponseField>
        <ResponseField name="listPrice" type="number">The price of this shipping, in the local currency, without discounts.</ResponseField>
        <ResponseField name="salePrice" type="number">The price of this shipping, in the local currency, with all discounts applied.</ResponseField>
        <ResponseField name="deliveryTime" type="integer">The number of business days from order pick-up / receival in the consolidation hub until final delivery.</ResponseField>
        <ResponseField name="deliveryEstimateDate" type="string">The estimated delivery date and time.</ResponseField>
        <ResponseField name="items" type="array">Array containing the order item IDs that are in this delivery.</ResponseField>

        <ResponseField name="parcels" type="array">
          The information about all the parcels (packages) within this delivery.

          <Expandable title="parcel fields">
            <ResponseField name="items" type="array">
              Array containing a list of items that are in this parcel.

              <Expandable title="parcel item fields">
                <ResponseField name="salesChannelSkuId" type="string">The SKU ID which are in this parcel.</ResponseField>
                <ResponseField name="quantity" type="integer">How many pieces of the SKU are in this parcel.</ResponseField>
              </Expandable>
            </ResponseField>

            <ResponseField name="height" type="number">The total parcel height.</ResponseField>
            <ResponseField name="length" type="number">The total parcel length.</ResponseField>
            <ResponseField name="width" type="number">The total parcel width.</ResponseField>
            <ResponseField name="grossWeight" type="number">The total parcel weight (items + packaging).</ResponseField>
            <ResponseField name="weight" type="number">Parcel's packaging weight.</ResponseField>
            <ResponseField name="netWeight" type="number">Parcel's net weight (items only).</ResponseField>
            <ResponseField name="name" type="string">The name of this parcel size.</ResponseField>
            <ResponseField name="code" type="string">The code of this parcel size.</ResponseField>

            <ResponseField name="parcelId" type="string">
              The e-CROSS parcel identifier. This field becomes available once the order reaches `READY_TO_SHIP`.
            </ResponseField>

            <ResponseField name="documents" type="array">
              The documents that are in this parcel. If there's no document, this field won't be returned.

              <Expandable title="document fields">
                <ResponseField name="name" type="string">Document name.</ResponseField>
                <ResponseField name="url" type="string">URL to the document.</ResponseField>
              </Expandable>
            </ResponseField>

            <ResponseField name="events" type="array">
              The current parcel tracking events available directly on the order. Use this field as the primary source to monitor tracking for a known order. Events are sorted by `eventDate`. If no tracking updates were received yet, this field won't be returned.

              <Expandable title="parcel event fields">
                <ResponseField name="eventId" type="string">Unique identifier of the tracking event.</ResponseField>
                <ResponseField name="eventDate" type="string">Date and time when the event happened, in ISO 8601 format.</ResponseField>
                <ResponseField name="code" type="string">Normalized e-CROSS tracking code for the event.</ResponseField>
                <ResponseField name="macroStep" type="string">Macro step of the logistics route associated with the event.</ResponseField>
                <ResponseField name="carrierId" type="string">Identifier of the carrier or fulfillment partner that sent the event.</ResponseField>
                <ResponseField name="externalCode" type="string">Tracking code used by the external carrier or fulfillment system.</ResponseField>
                <ResponseField name="description" type="string">Human-readable description of the event, when available.</ResponseField>
                <ResponseField name="location" type="string">Location associated with the event, when available.</ResponseField>
              </Expandable>
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="payments" type="array">
  Array of payments made for the order.

  <Expandable title="payment fields">
    <ResponseField name="type" type="string">
      Type of payment: `CREDIT_CARD`, `DEBIT_CARD`, `PIX`, `BILL`, `GIFT_CARD` or `OTHER`.
    </ResponseField>

    <ResponseField name="value" type="number">Total amount paid using this payment method.</ResponseField>
    <ResponseField name="installments" type="number">Number of installments if the payment was made using installments. (only available for credit card payments)</ResponseField>
    <ResponseField name="giftCardId" type="string">ID of the gift card if the payment was made using a gift card. (only available for gift card payments)</ResponseField>
  </Expandable>
</ResponseField>
