---
title: "POST /jobs/quotes/{quoteId}/totals"
method: POST
path: "/jobs/quotes/{quoteId}/totals"
tags: ["Jobs - Quotes"]
---

# POST /jobs/quotes/{quoteId}/totals

`POST /jobs/quotes/{quoteId}/totals`

## Request

- Base URL: `https://api.fergus.com`
- URL: `https://api.fergus.com/jobs/quotes/{quoteId}/totals`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://auth.fergus.com/oauth2/authorize`
    - Token URL: `https://auth.fergus.com/oauth2/token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/fergus/apis/fergus-api/docs/jobs/quotes/:quoteId/totals/post.ts> (a function with typed inputs; its response is checked against the schema)

Get totals for a quote. Fixed sections are always included. Optionally provide optional/multiselect section IDs to include in the totals.

## Path parameters

- `quoteId` integer, required

## Request body

- object
  - `selectedSectionIds` integer[]: [] — returns totals for fixed sections only. [1, 2, 3] — returns totals for fixed sections + the provided optional/multiselect section IDs.

## Response `200`

Successful Response

- QuoteTotalsResponse
  - `result` string, required
  - `data` QuoteTotals, required
    - `sectionTotals` object[], required
      - `sectionId` integer, required
      - `subTotal` number, required
      - `discount` number, required
      - `discountedSubTotal` number, required
      - `gst` number, required
      - `total` number, required
    - `quoteTotal` QuoteTotal, required
      - `subTotal` number, required
      - `discount` number, required
      - `discountedSubTotal` number, required
      - `gst` number, required
      - `total` number, required

## Other responses

- `4XX`: Client Request Errors
- `5XX`: Server Errors

---

[API](https://skmtc.dev/fergus/apis/fergus-api.md) - [All operations](https://skmtc.dev/fergus/apis/fergus-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fergus/apis/fergus-api/revisions/6135f517c3bf?raw)
