DOCS

Retrieve order details

/

Retrieve order details

Fetch Zonos orders for shared customers.

GraphQL

If you are a partner of Zonos and we share mutual customers, you can check to see if we have created an order that can be used by your platform to display those orders or use them to retrieve labels generated by Zonos. You can also surface details about the landedCost that was used to create the order.

Query orders 

To pull in order details, you can use the following query:

Query

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
query {
  orders(first: 10) {
    edges {
      cursor
      node {
        id
        accountOrderNumber
        landedCosts {
          amountSubtotals {
            duties
            fees
            items
            landedCostTotal
            shipping
            taxes
          }
          id
          landedCostGuaranteeCode
        }
      }
    }
  }
}

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  "data": {
    "orders": {
      "edges": [
        {
          "cursor": "c2ltcGxlLW9mZnNldC1jdXJzb3Iw",
          "node": {
            "id": "order_d221c2d2-a26a-46b9-a5ee-c9984381944f",
            "accountOrderNumber": "31124",
            "landedCosts": [
              {
                "amountSubtotals": {
                  "duties": 0.0,
                  "fees": 8.19,
                  "items": 50.0,
                  "landedCostTotal": 51.15,
                  "shipping": 176.11,
                  "taxes": 42.96
                },
                "id": "landed_cost_9cbbb49c-3742-4d25-b79d-d8b2054ad15a",
                "landedCostGuaranteeCode": "ZONOS"
              }
            ]
          }
        }
      ]
    }
  }
}

Was this page helpful?