POST api_v2/accounts/{accountId}/invoice-creation/fasta/calculator

Построить калькуляция инвойса

Request Information

Parameters

NameDescriptionAdditional information
accountId
ID аккаунта

Define this parameter in the request URI.

request
Модель запроса

Define this parameter in the request body.

Request body formats

application/xml, text/xml

Sample:
<RecalculateInvoiceRequestApiModel>
  <PayPeriod>1</PayPeriod>
  <Products>
    <RecalculateInvoiceProductRequestApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <Quantity>3</Quantity>
    </RecalculateInvoiceProductRequestApiModel>
    <RecalculateInvoiceProductRequestApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <Quantity>3</Quantity>
    </RecalculateInvoiceProductRequestApiModel>
    <RecalculateInvoiceProductRequestApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <Quantity>3</Quantity>
    </RecalculateInvoiceProductRequestApiModel>
  </Products>
</RecalculateInvoiceRequestApiModel>

application/json, text/json

Sample:
{
  "PayPeriod": 1,
  "Products": [
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "Quantity": 3
    },
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "Quantity": 3
    },
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "Quantity": 3
    }
  ]
}

Response Information

Калькуляция инвойса

Response body formats

application/xml, text/xml

Sample:
<InvoiceCalculationApiModel>
  <PayPeriod>1</PayPeriod>
  <Products>
    <InvoiceProductCalculationApiModel>
      <Identifier>sample string 1</Identifier>
      <Quantity>2</Quantity>
      <PayPeriod>1</PayPeriod>
      <IsActive>true</IsActive>
      <Rate>4</Rate>
      <TotalPrice>5</TotalPrice>
      <TotalBonus>6</TotalBonus>
    </InvoiceProductCalculationApiModel>
    <InvoiceProductCalculationApiModel>
      <Identifier>sample string 1</Identifier>
      <Quantity>2</Quantity>
      <PayPeriod>1</PayPeriod>
      <IsActive>true</IsActive>
      <Rate>4</Rate>
      <TotalPrice>5</TotalPrice>
      <TotalBonus>6</TotalBonus>
    </InvoiceProductCalculationApiModel>
    <InvoiceProductCalculationApiModel>
      <Identifier>sample string 1</Identifier>
      <Quantity>2</Quantity>
      <PayPeriod>1</PayPeriod>
      <IsActive>true</IsActive>
      <Rate>4</Rate>
      <TotalPrice>5</TotalPrice>
      <TotalBonus>6</TotalBonus>
    </InvoiceProductCalculationApiModel>
  </Products>
  <TotalBeforeVAT>1</TotalBeforeVAT>
  <VAT>2</VAT>
  <TotalAfterVAT>3</TotalAfterVAT>
  <TotalBonus>4</TotalBonus>
</InvoiceCalculationApiModel>

application/json, text/json

Sample:
{
  "PayPeriod": 1,
  "Products": [
    {
      "Identifier": "sample string 1",
      "Quantity": 2,
      "PayPeriod": 1,
      "IsActive": true,
      "Rate": 4.0,
      "TotalPrice": 5.0,
      "TotalBonus": 6.0
    },
    {
      "Identifier": "sample string 1",
      "Quantity": 2,
      "PayPeriod": 1,
      "IsActive": true,
      "Rate": 4.0,
      "TotalPrice": 5.0,
      "TotalBonus": 6.0
    },
    {
      "Identifier": "sample string 1",
      "Quantity": 2,
      "PayPeriod": 1,
      "IsActive": true,
      "Rate": 4.0,
      "TotalPrice": 5.0,
      "TotalBonus": 6.0
    }
  ],
  "TotalBeforeVAT": 1.0,
  "VAT": 2.0,
  "TotalAfterVAT": 3.0,
  "TotalBonus": 4.0
}