GET v{version}/{lang}/bookingTotal?currency={currency}&wp={wp}&isBorgunEnabled={isBorgunEnabled}
Final total retrieved on checkout page includes custom extras and promo codes
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| currency | string |
Required |
|
| wp | string |
Default value is GG |
|
| isBorgunEnabled | boolean |
Default value is False |
|
| version |
The requested API version |
string |
Required Default value is 1.0 |
| lang | string |
None. |
Body Parameters
None.
Response Information
Resource Description
DetailedInvoiceCalculated| Name | Description | Type | Additional information |
|---|---|---|---|
| totalDiscounted | decimal number |
None. |
|
| totalDiscountedISK | decimal number |
None. |
|
| totalRemaining | decimal number |
None. |
|
| totalDiscountedUSD | decimal number |
None. |
|
| totalRemainingUSD | decimal number |
None. |
|
| activities | Collection of ActivityInvoiceCalculated |
None. |
Response Formats
application/json, text/json
Sample:
{
"totalDiscounted": 1.0,
"totalDiscountedISK": 2.0,
"totalRemaining": 3.0,
"totalDiscountedUSD": 4.0,
"totalRemainingUSD": 5.0,
"activities": [
{
"bookingId": 1,
"activityTotal": 2.0,
"activityTotalDiscount": 3.0,
"activityTotalDiscounted": 4.0,
"promoUsed": true,
"upsellUsed": true,
"priceCategoryInvoices": [
{
"quantity": 1,
"title": "sample string 2",
"pricingCategoryId": 3,
"price": 4.0,
"total": 5.0,
"totalDiscounted": 6.0,
"totalDiscountedISK": 7.0
},
{
"quantity": 1,
"title": "sample string 2",
"pricingCategoryId": 3,
"price": 4.0,
"total": 5.0,
"totalDiscounted": 6.0,
"totalDiscountedISK": 7.0
}
],
"extraTotal": 7.0,
"extraTotalDiscount": 8.0,
"extraTotalDiscounted": 9.0,
"extraInvoices": [
{
"quantity": 1,
"title": "sample string 2",
"extraId": "sample string 3",
"price": 4.0,
"total": 5.0,
"totalDiscount": 6.0,
"totalDiscounted": 7.0,
"totalDiscountedISK": 8.0
},
{
"quantity": 1,
"title": "sample string 2",
"extraId": "sample string 3",
"price": 4.0,
"total": 5.0,
"totalDiscount": 6.0,
"totalDiscounted": 7.0,
"totalDiscountedISK": 8.0
}
],
"total": 10.0,
"totalISK": 11.0
},
{
"bookingId": 1,
"activityTotal": 2.0,
"activityTotalDiscount": 3.0,
"activityTotalDiscounted": 4.0,
"promoUsed": true,
"upsellUsed": true,
"priceCategoryInvoices": [
{
"quantity": 1,
"title": "sample string 2",
"pricingCategoryId": 3,
"price": 4.0,
"total": 5.0,
"totalDiscounted": 6.0,
"totalDiscountedISK": 7.0
},
{
"quantity": 1,
"title": "sample string 2",
"pricingCategoryId": 3,
"price": 4.0,
"total": 5.0,
"totalDiscounted": 6.0,
"totalDiscountedISK": 7.0
}
],
"extraTotal": 7.0,
"extraTotalDiscount": 8.0,
"extraTotalDiscounted": 9.0,
"extraInvoices": [
{
"quantity": 1,
"title": "sample string 2",
"extraId": "sample string 3",
"price": 4.0,
"total": 5.0,
"totalDiscount": 6.0,
"totalDiscounted": 7.0,
"totalDiscountedISK": 8.0
},
{
"quantity": 1,
"title": "sample string 2",
"extraId": "sample string 3",
"price": 4.0,
"total": 5.0,
"totalDiscount": 6.0,
"totalDiscounted": 7.0,
"totalDiscountedISK": 8.0
}
],
"total": 10.0,
"totalISK": 11.0
}
]
}
application/xml, text/xml
Sample:
<DetailedInvoiceCalculated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models">
<activities>
<ActivityInvoiceCalculated>
<activityTotal>2</activityTotal>
<activityTotalDiscount>3</activityTotalDiscount>
<activityTotalDiscounted>4</activityTotalDiscounted>
<bookingId>1</bookingId>
<extraInvoices>
<ExtraInvoiceCalculated>
<extraId>sample string 3</extraId>
<price>4</price>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscount>6</totalDiscount>
<totalDiscounted>7</totalDiscounted>
<totalDiscountedISK>8</totalDiscountedISK>
</ExtraInvoiceCalculated>
<ExtraInvoiceCalculated>
<extraId>sample string 3</extraId>
<price>4</price>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscount>6</totalDiscount>
<totalDiscounted>7</totalDiscounted>
<totalDiscountedISK>8</totalDiscountedISK>
</ExtraInvoiceCalculated>
</extraInvoices>
<extraTotal>7</extraTotal>
<extraTotalDiscount>8</extraTotalDiscount>
<extraTotalDiscounted>9</extraTotalDiscounted>
<priceCategoryInvoices>
<PriceCategoryInvoiceCalculated>
<price>4</price>
<pricingCategoryId>3</pricingCategoryId>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscounted>6</totalDiscounted>
<totalDiscountedISK>7</totalDiscountedISK>
</PriceCategoryInvoiceCalculated>
<PriceCategoryInvoiceCalculated>
<price>4</price>
<pricingCategoryId>3</pricingCategoryId>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscounted>6</totalDiscounted>
<totalDiscountedISK>7</totalDiscountedISK>
</PriceCategoryInvoiceCalculated>
</priceCategoryInvoices>
<promoUsed>true</promoUsed>
<total>10</total>
<totalISK>11</totalISK>
<upsellUsed>true</upsellUsed>
</ActivityInvoiceCalculated>
<ActivityInvoiceCalculated>
<activityTotal>2</activityTotal>
<activityTotalDiscount>3</activityTotalDiscount>
<activityTotalDiscounted>4</activityTotalDiscounted>
<bookingId>1</bookingId>
<extraInvoices>
<ExtraInvoiceCalculated>
<extraId>sample string 3</extraId>
<price>4</price>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscount>6</totalDiscount>
<totalDiscounted>7</totalDiscounted>
<totalDiscountedISK>8</totalDiscountedISK>
</ExtraInvoiceCalculated>
<ExtraInvoiceCalculated>
<extraId>sample string 3</extraId>
<price>4</price>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscount>6</totalDiscount>
<totalDiscounted>7</totalDiscounted>
<totalDiscountedISK>8</totalDiscountedISK>
</ExtraInvoiceCalculated>
</extraInvoices>
<extraTotal>7</extraTotal>
<extraTotalDiscount>8</extraTotalDiscount>
<extraTotalDiscounted>9</extraTotalDiscounted>
<priceCategoryInvoices>
<PriceCategoryInvoiceCalculated>
<price>4</price>
<pricingCategoryId>3</pricingCategoryId>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscounted>6</totalDiscounted>
<totalDiscountedISK>7</totalDiscountedISK>
</PriceCategoryInvoiceCalculated>
<PriceCategoryInvoiceCalculated>
<price>4</price>
<pricingCategoryId>3</pricingCategoryId>
<quantity>1</quantity>
<title>sample string 2</title>
<total>5</total>
<totalDiscounted>6</totalDiscounted>
<totalDiscountedISK>7</totalDiscountedISK>
</PriceCategoryInvoiceCalculated>
</priceCategoryInvoices>
<promoUsed>true</promoUsed>
<total>10</total>
<totalISK>11</totalISK>
<upsellUsed>true</upsellUsed>
</ActivityInvoiceCalculated>
</activities>
<totalDiscounted>1</totalDiscounted>
<totalDiscountedISK>2</totalDiscountedISK>
<totalDiscountedUSD>4</totalDiscountedUSD>
<totalRemaining>3</totalRemaining>
<totalRemainingUSD>5</totalRemainingUSD>
</DetailedInvoiceCalculated>