GET api/Billing

Get Billing information for current month

Request Information

URI Parameters

None.

Body Parameters

None.

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": "a2c8263c-d23c-48c4-b130-f7287034a2f3",
      "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": "a2c8263c-d23c-48c4-b130-f7287034a2f3",
      "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>a2c8263c-d23c-48c4-b130-f7287034a2f3</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>a2c8263c-d23c-48c4-b130-f7287034a2f3</UserId>
    </StatisticBillingModels>
  </StatisticBilling>
  <TotalRestore>3</TotalRestore>
</BillingModels>