code: public ApiResponse<SubscriptionEnvelope> getSubscriptionWithHttpInfo(String subId) throws ApiException {
          com.squareup.okhttp.Call call = getSubscriptionValidateBeforeCall(subId, null, null);
          Type localVarReturnType = new TypeToken<SubscriptionEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get Subscription
  Get Subscription
  @param subId Subscription ID. (required)
  @return ApiResponse&lt;SubscriptionEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body