POST api/account/{id}/statement

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

GetStatementDataContract
NameDescriptionTypeAdditional information
StartDate

date

None.

EndDate

date

None.

ExplicitDate

date

None.

Description

string

None.

PageSize

integer

None.

PageNumber

integer

None.

Types

Collection of LedgerType

None.

AccountTypes

Collection of AccountType

None.

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "2018-11-15T00:21:05.2940291Z",
  "EndDate": "2018-11-15T00:21:05.2940291Z",
  "ExplicitDate": "2018-11-15T00:21:05.2940291Z",
  "Description": "sample string 1",
  "PageSize": 2,
  "PageNumber": 3,
  "Types": [
    1,
    1
  ],
  "AccountTypes": [
    0,
    0
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetStatementDataContract'.

Response Information

Resource Description

StatementDataContract
NameDescriptionTypeAdditional information
OpeningBalance

decimal number

None.

ClosingBalance

decimal number

None.

StartDate

date

None.

EndDate

date

None.

StatementType

string

None.

Items

Collection of 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": "2018-11-15T00:21:05.3096532Z",
  "EndDate": "2018-11-15T00:21:05.3096532Z",
  "StatementType": "sample string 5",
  "Items": [
    {
      "Amount": 1.0,
      "Description": "sample string 2",
      "Balance": 3.0,
      "DrCr": "sample string 4",
      "DateTime": "2018-11-15T00:21:05.3096532Z",
      "AccountId": 6,
      "AccountType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "TranscationType": {
        "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,
      "OriginalTotal": 13.0,
      "PaymentType": 0,
      "Id": 14
    },
    {
      "Amount": 1.0,
      "Description": "sample string 2",
      "Balance": 3.0,
      "DrCr": "sample string 4",
      "DateTime": "2018-11-15T00:21:05.3096532Z",
      "AccountId": 6,
      "AccountType": {
        "Name": "sample string 1",
        "SystemName": "sample string 2",
        "Id": 1
      },
      "TranscationType": {
        "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,
      "OriginalTotal": 13.0,
      "PaymentType": 0,
      "Id": 14
    }
  ],
  "Credits": 6.0,
  "Debits": 7.0,
  "PageSize": 8,
  "PageNumber": 9,
  "TotalCount": 10
}