GET API/Billing

Returns billing information for reporting month.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Name Description Type Additional Information
CurrentSpaceUsed Amount of Space Used by All Users at the Moment. This Value is Updated Once a Day integer None
AverageSpaceUsed An Average Amount of Space Used by All Users for Specified month. Calculated Basing on Backup Plans Information integer None
TotalRestore Total Value of Restores integer None
StatisticBilling - Collection of StatisticBillingModels None

Response Formats

application/json, text/json

{
  "CurrentSpaceUsed": 1,
  "AverageSpaceUsed": 2,
  "TotalRestore": 3,
  "StatisticBilling": [
    {
      "UserId": "a53b43a0-1f3d-4243-a7f8-0edfea1a9ead",
      "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": "a53b43a0-1f3d-4243-a7f8-0edfea1a9ead",
      "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

<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>a53b43a0-1f3d-4243-a7f8-0edfea1a9ead</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>a53b43a0-1f3d-4243-a7f8-0edfea1a9ead</UserId>
    </StatisticBillingModels>
  </StatisticBilling>
  <TotalRestore>3</TotalRestore>
</BillingModels>
https://git.cloudberrylab.com/egor.m/doc-help-mbs.git