getInvoiceForSubscriptionAsPdfWithHttpInfo method
Get cloud invoice PDF
Retrieves the PDF for the invoice passed as parameter ##### Permissions Must have manage_system
permission and be licensed for Cloud. Minimum server version: 5.30 Note: This is intended for internal use and is subject to change.
Note: This method returns the HTTP Response
.
Parameters:
- String invoiceId (required): Invoice ID
Implementation
Future<Response> getInvoiceForSubscriptionAsPdfWithHttpInfo(
String invoiceId,
) async {
// ignore: prefer_const_declarations
final path = r'/cloud/subscription/invoices/{invoice_id}/pdf'.replaceAll('{invoice_id}', invoiceId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
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,
);
}