GET api_v2/accounts/{accountId}/invoice-creation/subscription-services/calculator

Получить калькулятор для сервисов подписки

Request Information

Parameters

NameDescriptionAdditional information
accountId
ID аккаунта для которого запрашивается калькулятор

Define this parameter in the request URI.

Response Information

Калькулятор инвойса для подписочных сервисов

Response body formats

application/xml, text/xml

Sample:
<InvoiceCalculatorApiModel>
  <AccountId>607bac58-bd4c-46d2-b6a1-6846bb50b405</AccountId>
  <BuyerName>sample string 2</BuyerName>
  <SupplierName>sample string 3</SupplierName>
  <Currency>
    <CurrencyCode>1</CurrencyCode>
    <Currency>sample string 1</Currency>
  </Currency>
  <PayPeriod>1</PayPeriod>
  <TotalBeforeVAT>4</TotalBeforeVAT>
  <VAT>5</VAT>
  <TotalAfterVAT>6</TotalAfterVAT>
  <TotalBonus>7</TotalBonus>
  <Products>
    <InvoiceProductCalculatorApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <PayPeriod>1</PayPeriod>
      <Rate>3</Rate>
      <TotalPrice>4</TotalPrice>
      <TotalBonus>5</TotalBonus>
      <Quantity>6</Quantity>
      <Name>sample string 7</Name>
      <Description>sample string 8</Description>
      <QuantityControl>
        <Type>sample string 1</Type>
        <Settings>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
        </Settings>
      </QuantityControl>
    </InvoiceProductCalculatorApiModel>
    <InvoiceProductCalculatorApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <PayPeriod>1</PayPeriod>
      <Rate>3</Rate>
      <TotalPrice>4</TotalPrice>
      <TotalBonus>5</TotalBonus>
      <Quantity>6</Quantity>
      <Name>sample string 7</Name>
      <Description>sample string 8</Description>
      <QuantityControl>
        <Type>sample string 1</Type>
        <Settings>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
        </Settings>
      </QuantityControl>
    </InvoiceProductCalculatorApiModel>
    <InvoiceProductCalculatorApiModel>
      <Identifier>sample string 1</Identifier>
      <IsActive>true</IsActive>
      <PayPeriod>1</PayPeriod>
      <Rate>3</Rate>
      <TotalPrice>4</TotalPrice>
      <TotalBonus>5</TotalBonus>
      <Quantity>6</Quantity>
      <Name>sample string 7</Name>
      <Description>sample string 8</Description>
      <QuantityControl>
        <Type>sample string 1</Type>
        <Settings>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
          <KeyValuePairApiModelOfStringString>
            <Key>sample string 1</Key>
            <Value>sample string 2</Value>
          </KeyValuePairApiModelOfStringString>
        </Settings>
      </QuantityControl>
    </InvoiceProductCalculatorApiModel>
  </Products>
  <PayPeriodControl>
    <Type>sample string 1</Type>
    <Settings>
      <KeyValuePairApiModelOfStringString>
        <Key>sample string 1</Key>
        <Value>sample string 2</Value>
      </KeyValuePairApiModelOfStringString>
      <KeyValuePairApiModelOfStringString>
        <Key>sample string 1</Key>
        <Value>sample string 2</Value>
      </KeyValuePairApiModelOfStringString>
      <KeyValuePairApiModelOfStringString>
        <Key>sample string 1</Key>
        <Value>sample string 2</Value>
      </KeyValuePairApiModelOfStringString>
    </Settings>
  </PayPeriodControl>
</InvoiceCalculatorApiModel>

application/json, text/json

Sample:
{
  "AccountId": "607bac58-bd4c-46d2-b6a1-6846bb50b405",
  "BuyerName": "sample string 2",
  "SupplierName": "sample string 3",
  "Currency": {
    "CurrencyCode": 1,
    "Currency": "sample string 1"
  },
  "PayPeriod": 1,
  "TotalBeforeVAT": 4.0,
  "VAT": 5.0,
  "TotalAfterVAT": 6.0,
  "TotalBonus": 7.0,
  "Products": [
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "PayPeriod": 1,
      "Rate": 3.0,
      "TotalPrice": 4.0,
      "TotalBonus": 5.0,
      "Quantity": 6,
      "Name": "sample string 7",
      "Description": "sample string 8",
      "QuantityControl": {
        "Type": "sample string 1",
        "Settings": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      }
    },
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "PayPeriod": 1,
      "Rate": 3.0,
      "TotalPrice": 4.0,
      "TotalBonus": 5.0,
      "Quantity": 6,
      "Name": "sample string 7",
      "Description": "sample string 8",
      "QuantityControl": {
        "Type": "sample string 1",
        "Settings": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      }
    },
    {
      "Identifier": "sample string 1",
      "IsActive": true,
      "PayPeriod": 1,
      "Rate": 3.0,
      "TotalPrice": 4.0,
      "TotalBonus": 5.0,
      "Quantity": 6,
      "Name": "sample string 7",
      "Description": "sample string 8",
      "QuantityControl": {
        "Type": "sample string 1",
        "Settings": [
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Key": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      }
    }
  ],
  "PayPeriodControl": {
    "Type": "sample string 1",
    "Settings": [
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  }
}