getOrganizationBillingSubscriptionWithHttpInfo method

Future<Response> getOrganizationBillingSubscriptionWithHttpInfo(
  1. String organizationId
)

Retrieve an organization's billing subscription

Retrieves the billing subscription for the specified organization. This includes subscription details, active plans, billing information, and payment status. The subscription contains subscription items which represent the individual plans the organization is subscribed to.

Note: This method returns the HTTP Response.

Parameters:

  • String organizationId (required): The ID of the organization whose subscription to retrieve

Implementation

Future<http.Response> getOrganizationBillingSubscriptionWithHttpInfo(
  String organizationId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/organizations/{organization_id}/billing/subscription'
      .replaceAll('{organization_id}', organizationId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}