PUT api/Billing

Get Filtered Billing records

Request Information

URI Parameters

None.

Body Parameters

FilterTotalModels
NameDescriptionTypeAdditional information
CompanyName

If empty or pass will be ignored

string

None.

Date

If empty or pass will set current month

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyName": "sample string 1",
  "Date": "2019-10-15T17:02:28.5839075+00:00"
}

application/xml, text/xml

Sample:
<FilterTotalModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <CompanyName>sample string 1</CompanyName>
  <Date>2019-10-15T17:02:28.5839075+00:00</Date>
</FilterTotalModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BillingModels
NameDescriptionTypeAdditional information
CurrentSpaceUsed

A space used by all users at the moment. This value is updated once a day

integer

None.

AverageSpaceUsed

An average of a space used by all users for selected month. It is calculated based on backup plans information

integer

None.

TotalRestore

Total restore value

integer

None.

StatisticBilling

Collection of StatisticBillingModels

None.

Response Formats

application/json, text/json

Sample:
{
  "CurrentSpaceUsed": 1,
  "AverageSpaceUsed": 2,
  "TotalRestore": 3,
  "StatisticBilling": [
    {
      "UserId": "231c9497-db28-4905-bb47-a225fb8d86b9",
      "Email": "sample string 2",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "CompanyName": "sample string 5",
      "AverageSpace": 6,
      "TotalVolumeRestore": 7,
      "PlanCost": 8.0,
      "StorageCost": 9.0,
      "RestoreCost": 10.0,
      "TotalCost": 11.0
    },
    {
      "UserId": "231c9497-db28-4905-bb47-a225fb8d86b9",
      "Email": "sample string 2",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "CompanyName": "sample string 5",
      "AverageSpace": 6,
      "TotalVolumeRestore": 7,
      "PlanCost": 8.0,
      "StorageCost": 9.0,
      "RestoreCost": 10.0,
      "TotalCost": 11.0
    }
  ]
}

application/xml, text/xml

Sample:
<BillingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AverageSpaceUsed>2</AverageSpaceUsed>
  <CurrentSpaceUsed>1</CurrentSpaceUsed>
  <StatisticBilling>
    <StatisticBillingModels>
      <AverageSpace>6</AverageSpace>
      <CompanyName>sample string 5</CompanyName>
      <Email>sample string 2</Email>
      <FirstName>sample string 3</FirstName>
      <LastName>sample string 4</LastName>
      <PlanCost>8</PlanCost>
      <RestoreCost>10</RestoreCost>
      <StorageCost>9</StorageCost>
      <TotalCost>11</TotalCost>
      <TotalVolumeRestore>7</TotalVolumeRestore>
      <UserId>231c9497-db28-4905-bb47-a225fb8d86b9</UserId>
    </StatisticBillingModels>
    <StatisticBillingModels>
      <AverageSpace>6</AverageSpace>
      <CompanyName>sample string 5</CompanyName>
      <Email>sample string 2</Email>
      <FirstName>sample string 3</FirstName>
      <LastName>sample string 4</LastName>
      <PlanCost>8</PlanCost>
      <RestoreCost>10</RestoreCost>
      <StorageCost>9</StorageCost>
      <TotalCost>11</TotalCost>
      <TotalVolumeRestore>7</TotalVolumeRestore>
      <UserId>231c9497-db28-4905-bb47-a225fb8d86b9</UserId>
    </StatisticBillingModels>
  </StatisticBilling>
  <TotalRestore>3</TotalRestore>
</BillingModels>