---
title: "addPriceCalculation"
slug: "api/basket/operations/addpricecalculation"
sidebar:
  order: 470
---

<a id="ref-5f6e35cc8c2e"></a>
<a id="ref-f9e1506802ff"></a>
<a id="ref-be1820a20773"></a>

## Synopsis

```text
void addPriceCalculation(
    SessionId sessionId,
    string ppName,
    boolean?    makeDefault)
throws BasketServiceFault;
```

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

Adds the price calculation with name `ppName` to the current basket. Multiple price calculations can be added.

The argument `makeDefault`, if `true`, configures the newly added calculation as the basket's default calculation. The default value of `makeDefault` is `false`.

The operation `addPriceCalculation` causes a reload of views that use a merge mode other than `None`.
