POST api/Accounting/StatementOfAccount

Request Information

URI Parameters

None.

Body Parameters

StatementOfAccountCriteriaViewModel
NameDescriptionTypeAdditional information
CatId

integer

None.

CustomerId

integer

None.

CustomerCode

string

None.

FromDate

string

None.

ToDate

string

None.

PeriodReport

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CatId": 1,
  "CustomerId": 2,
  "CustomerCode": "sample string 3",
  "FromDate": "sample string 4",
  "ToDate": "sample string 5",
  "PeriodReport": true
}

application/xml, text/xml

Sample:
<StatementOfAccountCriteriaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <CatId>1</CatId>
  <CustomerCode>sample string 3</CustomerCode>
  <CustomerId>2</CustomerId>
  <FromDate>sample string 4</FromDate>
  <PeriodReport>true</PeriodReport>
  <ToDate>sample string 5</ToDate>
</StatementOfAccountCriteriaViewModel>

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 'StatementOfAccountCriteriaViewModel'.

Response Information

Resource Description

StatementOfAccountModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

CustomerName

string

None.

Balance

decimal number

None.

Debit

decimal number

None.

Credit

decimal number

None.

BalanceAccountCurrency

decimal number

None.

DebitAccountCurrency

decimal number

None.

CreditAccountCurrency

decimal number

None.

Details

Collection of StatementOfAccountDetailModel

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "CustomerName": "sample string 2",
  "Balance": 3.1,
  "Debit": 4.1,
  "Credit": 5.1,
  "BalanceAccountCurrency": 6.1,
  "DebitAccountCurrency": 7.1,
  "CreditAccountCurrency": 8.1,
  "Details": [
    {
      "AccountId": 1,
      "AccountNo": "sample string 2",
      "AccountName": "sample string 3",
      "Voucher_Type_ID": 4,
      "VoucherTypeDesc": "sample string 5",
      "DebitAmount": 6.1,
      "CreditAmount": 7.1,
      "VoucherCurrencyId": 8,
      "CurrencyName": "sample string 9",
      "CurrencyRate": 10.1,
      "CurrencySymbol": "sample string 11",
      "VoucherAmount": 12.1,
      "VoucherDate": "sample string 13",
      "VoucherStatusId": 14,
      "VoucherStatusDesc": "sample string 15",
      "OtherAccountName": "sample string 16",
      "Balance": 17.1,
      "VoucherId": 18,
      "VoucherTransId": 19,
      "VoucherTypeId": 20,
      "VoucherTransDetails": "sample string 21",
      "VoucherNo": 22,
      "ChequeBankNo": "sample string 23",
      "ChequeNo": "sample string 24",
      "ChequeDueDate": "2024-10-07T06:36:08.8013739-07:00",
      "ChequeID": 26,
      "BankName": "sample string 27"
    },
    {
      "AccountId": 1,
      "AccountNo": "sample string 2",
      "AccountName": "sample string 3",
      "Voucher_Type_ID": 4,
      "VoucherTypeDesc": "sample string 5",
      "DebitAmount": 6.1,
      "CreditAmount": 7.1,
      "VoucherCurrencyId": 8,
      "CurrencyName": "sample string 9",
      "CurrencyRate": 10.1,
      "CurrencySymbol": "sample string 11",
      "VoucherAmount": 12.1,
      "VoucherDate": "sample string 13",
      "VoucherStatusId": 14,
      "VoucherStatusDesc": "sample string 15",
      "OtherAccountName": "sample string 16",
      "Balance": 17.1,
      "VoucherId": 18,
      "VoucherTransId": 19,
      "VoucherTypeId": 20,
      "VoucherTransDetails": "sample string 21",
      "VoucherNo": 22,
      "ChequeBankNo": "sample string 23",
      "ChequeNo": "sample string 24",
      "ChequeDueDate": "2024-10-07T06:36:08.8013739-07:00",
      "ChequeID": 26,
      "BankName": "sample string 27"
    }
  ]
}

application/xml, text/xml

Sample:
<StatementOfAccountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models">
  <Balance>3.1</Balance>
  <BalanceAccountCurrency>6.1</BalanceAccountCurrency>
  <Credit>5.1</Credit>
  <CreditAccountCurrency>8.1</CreditAccountCurrency>
  <CustomerId>1</CustomerId>
  <CustomerName>sample string 2</CustomerName>
  <Debit>4.1</Debit>
  <DebitAccountCurrency>7.1</DebitAccountCurrency>
  <Details>
    <StatementOfAccountDetailModel>
      <AccountId>1</AccountId>
      <AccountName>sample string 3</AccountName>
      <AccountNo>sample string 2</AccountNo>
      <Balance>17.1</Balance>
      <BankName>sample string 27</BankName>
      <ChequeBankNo>sample string 23</ChequeBankNo>
      <ChequeDueDate>2024-10-07T06:36:08.8013739-07:00</ChequeDueDate>
      <ChequeID>26</ChequeID>
      <ChequeNo>sample string 24</ChequeNo>
      <CreditAmount>7.1</CreditAmount>
      <CurrencyName>sample string 9</CurrencyName>
      <CurrencyRate>10.1</CurrencyRate>
      <CurrencySymbol>sample string 11</CurrencySymbol>
      <DebitAmount>6.1</DebitAmount>
      <OtherAccountName>sample string 16</OtherAccountName>
      <VoucherAmount>12.1</VoucherAmount>
      <VoucherCurrencyId>8</VoucherCurrencyId>
      <VoucherDate>sample string 13</VoucherDate>
      <VoucherId>18</VoucherId>
      <VoucherNo>22</VoucherNo>
      <VoucherStatusDesc>sample string 15</VoucherStatusDesc>
      <VoucherStatusId>14</VoucherStatusId>
      <VoucherTransDetails>sample string 21</VoucherTransDetails>
      <VoucherTransId>19</VoucherTransId>
      <VoucherTypeDesc>sample string 5</VoucherTypeDesc>
      <VoucherTypeId>20</VoucherTypeId>
      <Voucher_Type_ID>4</Voucher_Type_ID>
    </StatementOfAccountDetailModel>
    <StatementOfAccountDetailModel>
      <AccountId>1</AccountId>
      <AccountName>sample string 3</AccountName>
      <AccountNo>sample string 2</AccountNo>
      <Balance>17.1</Balance>
      <BankName>sample string 27</BankName>
      <ChequeBankNo>sample string 23</ChequeBankNo>
      <ChequeDueDate>2024-10-07T06:36:08.8013739-07:00</ChequeDueDate>
      <ChequeID>26</ChequeID>
      <ChequeNo>sample string 24</ChequeNo>
      <CreditAmount>7.1</CreditAmount>
      <CurrencyName>sample string 9</CurrencyName>
      <CurrencyRate>10.1</CurrencyRate>
      <CurrencySymbol>sample string 11</CurrencySymbol>
      <DebitAmount>6.1</DebitAmount>
      <OtherAccountName>sample string 16</OtherAccountName>
      <VoucherAmount>12.1</VoucherAmount>
      <VoucherCurrencyId>8</VoucherCurrencyId>
      <VoucherDate>sample string 13</VoucherDate>
      <VoucherId>18</VoucherId>
      <VoucherNo>22</VoucherNo>
      <VoucherStatusDesc>sample string 15</VoucherStatusDesc>
      <VoucherStatusId>14</VoucherStatusId>
      <VoucherTransDetails>sample string 21</VoucherTransDetails>
      <VoucherTransId>19</VoucherTransId>
      <VoucherTypeDesc>sample string 5</VoucherTypeDesc>
      <VoucherTypeId>20</VoucherTypeId>
      <Voucher_Type_ID>4</Voucher_Type_ID>
    </StatementOfAccountDetailModel>
  </Details>
</StatementOfAccountModel>