---
title: "getSubItemIds"
slug: "api/basket/operations/getsubitemids"
sidebar:
  order: 426
---

<a id="ref-1779335df62c"></a>
<a id="ref-a897048cbc27"></a>
<a id="ref-3b35564021a3"></a>

## Synopsis

```text
BItemId[] getSubItemIds(SessionId sessionId,
    BItemId itemId,
    ViewId viewId)
throws BasketServiceFault;
```

See also: [BItemId](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [SessionId](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), ViewId *(unresolved source reference)*, [BasketServiceFault](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

The `getSubItemIds` operation returns a sequence of basket item IDs for the child items of the basket item identified by the `itemId` parameter.

The `itemId` parameter must identify a basket item that is part of the basket item tree maintained by the basket service for the session identified by the `sessionId` parameter.

The `itemId` parameter may identify basket items of any type. If the item does not have child items, the operation returns an empty sequence.

If the argument `viewId` is present and neither an empty string nor the NIL-UUID then it must be the ID of a current basket view, the `itemId` argument must be the ID of an item of this view, and the returned item IDs will be IDs of items of this view.

A [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault) is returned if any of the following conditions occurs:

- The `sessionId` parameter is not a valid string representation of an UUID or does not represent an open session.

- The `itemId` parameter does not represent an UUID.

- The `itemId` parameter does not identify a basket item.
