getInvoiceForSubscriptionAsPdf method

Future<void> getInvoiceForSubscriptionAsPdf(
  1. String invoiceId
)

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.

Parameters:

  • String invoiceId (required): Invoice ID

Implementation

Future<void> getInvoiceForSubscriptionAsPdf(
  String invoiceId,
) async {
  final response = await getInvoiceForSubscriptionAsPdfWithHttpInfo(
    invoiceId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}