Request Information

Method calculates statistics data for issued and received invoices

Example URL:
v2.0/Agendas/GetInvoicingForPeriod?periodType={periodType}
NameDescriptionTypeAdditional information
periodType

PeriodType

Required

periodType

PeriodType

Required

None.

Response Information

InvoicingForPeriodGetModel
NameDescriptionTypeAdditional information
IssuedInvoices

Issued invoices

Collection of InvoicingForPeriodPricesGetModel

None.

ReceivedInvoices

Received invoices

Collection of InvoicingForPeriodPricesGetModel

None.

Sample:
{
  "IssuedInvoices": [
    {
      "Period": "sample string 1",
      "TotalPaid": 2.0,
      "TotalUnpaid": 3.0,
      "TotalWithoutVat": 4.0,
      "TotalWithVat": 5.0
    }
  ],
  "ReceivedInvoices": [
    {
      "Period": "sample string 1",
      "TotalPaid": 2.0,
      "TotalUnpaid": 3.0,
      "TotalWithoutVat": 4.0,
      "TotalWithVat": 5.0
    }
  ]
}
Sample:
<InvoicingForPeriodGetModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.Statistics">
  <IssuedInvoices>
    <InvoicingForPeriodPricesGetModel>
      <Period>sample string 1</Period>
      <TotalPaid>2</TotalPaid>
      <TotalUnpaid>3</TotalUnpaid>
      <TotalWithoutVat>4</TotalWithoutVat>
    </InvoicingForPeriodPricesGetModel>
  </IssuedInvoices>
  <ReceivedInvoices>
    <InvoicingForPeriodPricesGetModel>
      <Period>sample string 1</Period>
      <TotalPaid>2</TotalPaid>
      <TotalUnpaid>3</TotalUnpaid>
      <TotalWithoutVat>4</TotalWithoutVat>
    </InvoicingForPeriodPricesGetModel>
  </ReceivedInvoices>
</InvoicingForPeriodGetModel>