getExcel


SoftLayer_Billing_Invoice::getExcel

Retrieve a Microsoft Excel copy of an invoice.

Description

Retrieve a Microsoft Excel spreadsheet of a SoftLayer invoice. You must have a Microsoft Excel reader installed in order to view these invoice files.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • base64Binary

Error Handling

  • Throw the exception “Excel workbook does not exist: invoice has not yet been closed.” when trying to retrieve an open invoice. This service is not design to generate spreadsheet for open invoices.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Billing_Invoice/{SoftLayer_Billing_InvoiceID}/getExcel'