Skip to content

Latest commit

 

History

History
158 lines (115 loc) · 4.92 KB

BillingAccountControllerApi.md

File metadata and controls

158 lines (115 loc) · 4.92 KB

BillingAccountControllerApi

All URIs are relative to https://api.flexify.io

Method HTTP request Description
getCostsForCurrentUserBillingAccount GET /backend/rest/account/costs Get costs for current user
getCurrentUserBillingAccount GET /backend/rest/account Get billing account for current user
getPaymentsForCurrentUser GET /backend/rest/account/payments Get payments for current user

getCostsForCurrentUserBillingAccount

List<CostDetails> getCostsForCurrentUserBillingAccount()

Get costs for current user

Example

// Import classes:
//import io.flexify.apiclient.handler.ApiClient;
//import io.flexify.apiclient.handler.ApiException;
//import io.flexify.apiclient.handler.Configuration;
//import io.flexify.apiclient.handler.auth.*;
//import io.flexify.apiclient.api.BillingAccountControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");

BillingAccountControllerApi apiInstance = new BillingAccountControllerApi();
try {
    List<CostDetails> result = apiInstance.getCostsForCurrentUserBillingAccount();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BillingAccountControllerApi#getCostsForCurrentUserBillingAccount");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<CostDetails>

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json;charset=UTF-8

getCurrentUserBillingAccount

BillingAccount getCurrentUserBillingAccount()

Get billing account for current user

Example

// Import classes:
//import io.flexify.apiclient.handler.ApiClient;
//import io.flexify.apiclient.handler.ApiException;
//import io.flexify.apiclient.handler.Configuration;
//import io.flexify.apiclient.handler.auth.*;
//import io.flexify.apiclient.api.BillingAccountControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");

BillingAccountControllerApi apiInstance = new BillingAccountControllerApi();
try {
    BillingAccount result = apiInstance.getCurrentUserBillingAccount();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BillingAccountControllerApi#getCurrentUserBillingAccount");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

BillingAccount

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json;charset=UTF-8

getPaymentsForCurrentUser

List<Payment> getPaymentsForCurrentUser()

Get payments for current user

Example

// Import classes:
//import io.flexify.apiclient.handler.ApiClient;
//import io.flexify.apiclient.handler.ApiException;
//import io.flexify.apiclient.handler.Configuration;
//import io.flexify.apiclient.handler.auth.*;
//import io.flexify.apiclient.api.BillingAccountControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");

BillingAccountControllerApi apiInstance = new BillingAccountControllerApi();
try {
    List<Payment> result = apiInstance.getPaymentsForCurrentUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BillingAccountControllerApi#getPaymentsForCurrentUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<Payment>

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json;charset=UTF-8