POST api_v2/accounts/{accountId}/invoice-creation/subscription-services

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

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:
<CreateInvoiceFromCalculationApiModel>
  <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>
  <NotifyAccountUserId>a1b6298d-0e94-439a-b52d-449bf0bed424</NotifyAccountUserId>
</CreateInvoiceFromCalculationApiModel>

application/json, text/json

Sample:
{
  "NotifyAccountUserId": "a1b6298d-0e94-439a-b52d-449bf0bed424",
  "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
}

Response Information

ID созданного инвойса

Response body formats

application/xml, text/xml

Sample:
<CreateInvoiceResultApiModel>
  <Id>ab6ea72c-be5a-4b0a-ae2e-aa834f1fe6c3</Id>
</CreateInvoiceResultApiModel>

application/json, text/json

Sample:
{
  "Id": "ab6ea72c-be5a-4b0a-ae2e-aa834f1fe6c3"
}