Class BillingApi

java.lang.Object
com.mypurecloud.sdk.v2.api.BillingApi

public class BillingApi extends Object
  • Constructor Details

    • BillingApi

      public BillingApi()
    • BillingApi

      public BillingApi(ApiClient apiClient)
  • Method Details

    • getBillingReportsBillableusage

      public BillingUsageReport getBillingReportsBillableusage(Date startDate, Date endDate) throws IOException, ApiException
      Get a report of the billable license usages Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If response's status is InProgress, wait a few seconds, then try the same request again.
      Parameters:
      startDate - The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (required)
      endDate - The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (required)
      Returns:
      BillingUsageReport
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getBillingReportsBillableusageWithHttpInfo

      public ApiResponse<BillingUsageReport> getBillingReportsBillableusageWithHttpInfo(Date startDate, Date endDate) throws IOException
      Get a report of the billable license usages Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If response's status is InProgress, wait a few seconds, then try the same request again.
      Parameters:
      startDate - The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (required)
      endDate - The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (required)
      Returns:
      BillingUsageReport
      Throws:
      IOException - if the request fails to be processed
    • getBillingReportsBillableusage

      public BillingUsageReport getBillingReportsBillableusage(GetBillingReportsBillableusageRequest request) throws IOException, ApiException
      Get a report of the billable license usages Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If response's status is InProgress, wait a few seconds, then try the same request again.
      Parameters:
      request - The request object
      Returns:
      BillingUsageReport
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getBillingReportsBillableusage

      public ApiResponse<BillingUsageReport> getBillingReportsBillableusage(ApiRequest<Void> request) throws IOException
      Get a report of the billable license usages Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If response's status is InProgress, wait a few seconds, then try the same request again.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getBillingTrusteebillingoverviewTrustorOrgId

      public TrusteeBillingOverview getBillingTrusteebillingoverviewTrustorOrgId(String trustorOrgId, Integer billingPeriodIndex) throws IOException, ApiException
      Get the billing overview for an organization that is managed by a partner. Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/
      Parameters:
      trustorOrgId - The organization ID of the trustor (customer) organization. (required)
      billingPeriodIndex - 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (optional, default to 0)
      Returns:
      TrusteeBillingOverview
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getBillingTrusteebillingoverviewTrustorOrgIdWithHttpInfo

      public ApiResponse<TrusteeBillingOverview> getBillingTrusteebillingoverviewTrustorOrgIdWithHttpInfo(String trustorOrgId, Integer billingPeriodIndex) throws IOException
      Get the billing overview for an organization that is managed by a partner. Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/
      Parameters:
      trustorOrgId - The organization ID of the trustor (customer) organization. (required)
      billingPeriodIndex - 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (optional, default to 0)
      Returns:
      TrusteeBillingOverview
      Throws:
      IOException - if the request fails to be processed
    • getBillingTrusteebillingoverviewTrustorOrgId

      public TrusteeBillingOverview getBillingTrusteebillingoverviewTrustorOrgId(GetBillingTrusteebillingoverviewTrustorOrgIdRequest request) throws IOException, ApiException
      Get the billing overview for an organization that is managed by a partner. Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/
      Parameters:
      request - The request object
      Returns:
      TrusteeBillingOverview
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getBillingTrusteebillingoverviewTrustorOrgId

      public ApiResponse<TrusteeBillingOverview> getBillingTrusteebillingoverviewTrustorOrgId(ApiRequest<Void> request) throws IOException
      Get the billing overview for an organization that is managed by a partner. Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed