DOCS

Retrieve service levels

/

Retrieve service levels

View available service levels for shared customers.

GraphQL

If you are a partner of Zonos that will be fulfilling shipments via API, you can pull back a list of service levels available for those shipments.

Query service levels 

To view available service levels for a merchant, 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
query {
  shippingProfiles {
    customServiceLevelCode
    id
    landedCostMethod
    serviceLevel {
      availability
      carrier {
        name
      }
      carrierApiCode
      carrierLabelApiCode
      code
      deliveryType
      id
      name
    }
  }
}

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "data": {
    "shippingProfiles": [
      {
        "customServiceLevelCode": "USPS_PRIORITY_MAIL_INTERNATIONAL",
        "id": "shipping_profile_457d4bb6-ef05-4e7e-939e-2a5b7fb2dccf",
        "landedCostMethod": "DAP_FORCED",
        "serviceLevel": {
          "availability": "GENERAL",
          "carrier": {
            "name": "USPS"
          },
          "carrierApiCode": "2",
          "carrierLabelApiCode": "691",
          "code": "usps.priority_intl",
          "deliveryType": null,
          "id": "service_level_56489602-42fb-4f47-afb3-2135e87d215d",
          "name": "USPS Priority Int'l"
        }
      }
    ]
  }
}

Was this page helpful?