Skip to main content

Expanding resources

Some resources allow you to request additional information as an expanded resource by using the expands request parameter. When an object contains related data, you can expand it inline rather than making separate API calls.

The expands parameter is available on selected retrieve and search endpoints, not on every request. The supported values are specific to each endpoint and the casing differs per resource: order-related endpoints use uppercase values such as ORDER_ITEMS, while catalog endpoints use lowercase values such as translations. Check the endpoint in the REST API Reference for the exact values it accepts.

Supported expand values per resource

ResourceEndpointsExpand values
OrdersGET /v2/orders/id/{id}ORDER_ITEMS, ADDRESSES, SOURCES, SHIPMENTS
Order searchPOST /v2/orders/searchORDER_ITEMS, ADDRESSES, SOURCES, SHIPMENTS, SHIPMENT_ITEMS, TRACK_AND_TRACES
Order itemsGET /v2/orders/id/{id}/itemsSOURCES
ShipmentsGET /v2/orders/shipments/{id}, POST /v2/orders/shipments/searchSHIPMENT_ITEMS, TRACK_AND_TRACES
ProductsGET /v2/products/{lookupKey}/{key}, POST /v2/products/searchsources, metadata, translations, categories
ClustersGET /v2/clusters/{lookupKey}/{key}, POST /v2/clusters/searchcategories, products
Cluster productsGET /v2/clusters/{lookupKey}/{key}/productssources, translation
Cluster option productsGET /v2/clusteroptions/{lookupKey}/{key}/productssources, translation
Cluster configurationsGET /v2/clustersconfigsources
Category searchPOST /v2/categories/searchsources
BundlesGET /v2/bundles, GET /v2/bundles/{id}items, price
Order statusesGET /v2/order-statuses and related endpointssets
InventoryGET /v2/products/{lookupKey}/{key}/inventory, POST /v2/inventory/searchexpands inventory balance details
Companies, contacts and customersGET /v2/{resource}/{lookupKey}/{lookupValue}related entities, see the endpoint reference

Multiple expansions

Combine multiple expansions in a single request by separating them with commas:

GET /v2/products/123?expands=sources,translations

See also