---
title: "Get totals of selected available transactions for fiscal documents"
method: POST
path: "/fiscal-document/v1/fiscal-documents/transactions/summary"
tags: ["Fiscal Documents"]
---

# Get totals of selected available transactions for fiscal documents

`POST /fiscal-document/v1/fiscal-documents/transactions/summary`

## Request

- Base URL: `https://api.cloudbeds.com`
- URL: `https://api.cloudbeds.com/fiscal-document/v1/fiscal-documents/transactions/summary`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.cloudbeds.com/auth/oauth/authorize`
    - Token URL: `https://api.cloudbeds.com/auth/oauth/token` scopes: `read:reservation`

Get totals of selected available transactions for fiscal documents based on the document type.
Supports partial transaction amounts via transactionIdToAmount.

## Headers

- `X-Property-ID` integer, required

## Request body

- TransactionsSummaryRequest
  - `documentKind` 'INVOICE' | 'CREDIT_NOTE' | 'RECEIPT' | 'RECTIFY_INVOICE' | 'PRO_FORMA_INVOICE' | 'REFUND_RECEIPT' | 'INVOICE_RECEIPT' | 'ADVANCE_INVOICE' | 'SETTLEMENT_INVOICE' | 'TAX_WITHHOLDING': Kind of fiscal document
  - `sourceId` integer, required: Source ID.
  - `sourceKind` 'GROUP_PROFILE' | 'RESERVATION' | 'HOUSE_ACCOUNT' | 'ACCOUNTS_RECEIVABLE_LEDGER', required: Kind of the source entity
  - `folioIds` integer[]: Filter by folio IDs.
  - `excludeTransactionIds` integer[]: Transaction IDs to exclude.
  - `includeTransactionIds` integer[]: Transaction IDs to include.
  - `transactionIdToAmount` object, nullable: Map of transaction ID to amount (in major currency units, e.g., 10.50 for $10.50) for partial transaction inclusion.
  - `transactionIdToDisplayAmount` object, nullable: Map of transaction ID to amount in the invoice currency (major units, as in displayAmount) for partial transaction inclusion, recorded on the document exactly as given. Takes precedence over transactionIdToAmount for the same transaction. When the invoice currency is the property currency it behaves like transactionIdToAmount.
  - `currency` string: Invoice currency to express the totals in. When provided, totals are converted from the property currency using the property's configured exchange rates. Defaults to the property currency when omitted.

## Response `200`

OK

- FiscalDocumentTransactionsSummary
  - `chargesAndAdjustments` string
  - `taxes` object[]
    - `name` string
    - `amount` string
  - `paid` string
  - `refunded` string
  - `total` string
  - `currency` string: Currency the totals are expressed in. For an existing document, the currency it was issued in; for a selection, the requested invoice currency (converted at the property's configured rates), otherwise the property currency.
  - `propertyCurrency` string: The property's base currency code.
  - `propertyCurrencyTotal` string: The total in the property's base currency, shown as a reference alongside the total when the totals are expressed in another currency.
  - `exchangeRate` string: The property's configured rate from its base currency into the currency the totals are expressed in (1 base unit = exchangeRate units), the rate an invoice issued now is locked at. Absent when the totals are in the property currency or no rate is configured.
  - `transactionCount` integer: Number of transactions the current selection resolves to. Lets the caller warn before submitting a selection that would be rejected for exceeding maxTransactions.
  - `maxTransactions` integer: Maximum number of transactions allowed on a single fiscal document.
  - `replacedReceipts` string[]: For an invoice selection on a property whose invoice replaces the receipts that already declared its charges: the receipts issuing it would void, by number (or id while one is still waiting for its number), in issue order. Absent when nothing would be replaced.
  - `receiptReplacementConflict` string: Why an invoice over this selection could not replace the receipts behind it — a receipt still being signed, or a covered charge not taken in full. The same message the create request refuses with, so a client can block issuing before submit. Absent when it can.

---

[API](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api/revisions/9c2a47775e5e?raw)
