---
title: "setTaxInformation"
slug: "api/basket/operations/settaxinformation"
sidebar:
  order: 486
---

<a id="ref-fc2d41272b50"></a>
<a id="ref-9bb62a026c59"></a>
<a id="ref-0bfb6f193aa6"></a>

## Synopsis

```text
void setTaxInformation(SessionId sessionId,
    BItemId itemId,
    string taxType,
    string taxCategory)
throws BasketServiceFault;
```

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

The operation `setTaxInformation` may be used to set the tax category which is to be used for the given tax type for the specified article. The article must be an user article. The tax type must be part of the current tax scheme, and the tax category must be valid for the tax type (according to the tax scheme).

An empty taxCategory removes the entry for taxType. If there is no such entry, this has no observable effect. Removing an entry does not remove other tax types in its group.

When setting a category, the server removes other tax types belonging to the same tax group with the same order number as the newly set type, preventing conflicts in tax group selection. See [TaxGroup](/pCon/configuratorOnline/specs/api/basket/types/taxgroup).
