POST api/account/statement/csv

Get a statement for an account

Request Information

URI Parameters

None.

Body Parameters

Dezrez.Core.DataContracts.External.Api.Lists.Accounting.Filter.TransactionListFilterDataContract
NameDescriptionTypeAdditional information
AccountId

integer

None.

AccountIds

Collection of integer

None.

StartDate

date

None.

ExplicitDate

date

None.

EndDate

date

None.

TransactionTypes

Collection of string

None.

ExcludedTypes

Collection of string

None.

Description

string

None.

PageSize

integer

None.

PageNumber

integer

None.

ExcludeUncleared

boolean

None.

ClearedStatuses

Collection of string

None.

DrOrCrSide

string

None.

PaymentTypes

Collection of string

None.

AccountTypes

Collection of string

None.

IncludeReversals

boolean

None.

TenantRoleId

integer

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "AccountId": 1,
  "AccountIds": [
    1,
    2
  ],
  "StartDate": "2024-03-28T09:21:34.1281896Z",
  "ExplicitDate": "2024-03-28T09:21:34.1281896Z",
  "EndDate": "2024-03-28T09:21:34.1281896Z",
  "TransactionTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "ExcludedTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "Description": "sample string 2",
  "PageSize": 3,
  "PageNumber": 4,
  "ExcludeUncleared": true,
  "ClearedStatuses": [
    "sample string 1",
    "sample string 2"
  ],
  "DrOrCrSide": "sample string 5",
  "PaymentTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "AccountTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "IncludeReversals": true,
  "TenantRoleId": 1
}

Response Information

Resource Description

Dezrez.Core.DataContracts.Accounts.Financial.Query.Statement.StatementDataContract
NameDescriptionTypeAdditional information
OpeningBalance

decimal number

None.

ClosingBalance

decimal number

None.

StartDate

date

None.

EndDate

date

None.

StatementType

string

None.

Items

Collection of Dezrez.Core.DataContracts.Accounts.Financial.Query.Ledger.LedgerItemDataContract

None.

Credits

decimal number

None.

Debits

decimal number

None.

PageSize

integer

None.

PageNumber

integer

None.

TotalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "OpeningBalance": 1.0,
  "ClosingBalance": 2.0,
  "StartDate": "2024-03-28T09:21:34.1281896Z",
  "EndDate": "2024-03-28T09:21:34.1281896Z",
  "StatementType": "sample string 5",
  "Items": [
    {
      "Amount": 1.0,
      "Description": "sample string 2",
      "Balance": 3.0,
      "DrCr": "sample string 4",
      "DateTime": "2024-03-28T09:21:34.1281896Z",
      "AccountId": 6,
      "AccountType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "TransactionType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "InvoiceSubType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "ClearedStatus": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "LedgerEntryId": 7,
      "IsCrPositive": true,
      "FromTo": "sample string 9",
      "FromToGroupId": 10,
      "IsAdjustment": true,
      "IsReversal": true,
      "IsUnsuspended": true,
      "OriginalTotal": 14.0,
      "PaymentType": 0,
      "IsReconciled": true,
      "PaymentId": 16,
      "PaymentItemId": 1,
      "PaymentReziDocumentId": 1,
      "IsInReversedPayment": true,
      "IsProtected": true,
      "IsReleased": true,
      "RefundedTotal": 20.0,
      "InvoiceAllocationsTotal": 21.0,
      "Batch": {
        "IsProcessed": true,
        "Id": 2
      },
      "CreatedById": 22,
      "Id": 23
    },
    {
      "Amount": 1.0,
      "Description": "sample string 2",
      "Balance": 3.0,
      "DrCr": "sample string 4",
      "DateTime": "2024-03-28T09:21:34.1281896Z",
      "AccountId": 6,
      "AccountType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "TransactionType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "InvoiceSubType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "ClearedStatus": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "LedgerEntryId": 7,
      "IsCrPositive": true,
      "FromTo": "sample string 9",
      "FromToGroupId": 10,
      "IsAdjustment": true,
      "IsReversal": true,
      "IsUnsuspended": true,
      "OriginalTotal": 14.0,
      "PaymentType": 0,
      "IsReconciled": true,
      "PaymentId": 16,
      "PaymentItemId": 1,
      "PaymentReziDocumentId": 1,
      "IsInReversedPayment": true,
      "IsProtected": true,
      "IsReleased": true,
      "RefundedTotal": 20.0,
      "InvoiceAllocationsTotal": 21.0,
      "Batch": {
        "IsProcessed": true,
        "Id": 2
      },
      "CreatedById": 22,
      "Id": 23
    }
  ],
  "Credits": 6.0,
  "Debits": 7.0,
  "PageSize": 8,
  "PageNumber": 9,
  "TotalCount": 10
}