SoftLayer Billing Invoice
From SoftLayer Development Network Wiki
This page refers to the SoftLayer_Billing_Invoice service. For information on the SoftLayer_Billing_Invoice data type please see SoftLayer_Billing_Invoice (type).
Contents |
Overview
The SoftLayer_Billing_Invoice service controls the invoices that are created whenever a SoftLayer customer's account balance changes. Invoices exist in three states:
- OPEN: Invoices which have not been paid yet. Invoices are created in the OPEN state.
- CLOSED: Invoices that SoftLayer has received payment for.
- CLOSED_FAILED: Invoices which were closed but were not paid for. Customers who are terminated for non-payment typically have invoices in this state.
Once an invoice is paid it moves from OPEN to CLOSED state. Invoices are created under varying types, which are defined in the type property of the SoftLayer_Invoice data type. Invoices are created under one of the following type categories:
- NEW: An invoice for new service. A SoftLayer customer's first invoice is of the NEW type.
- RECURRING: Invoices that are generated on a SoftLayer customer's anniversary billing date for monthly services.
- ONE-TIME-CHARGE: Invoices that are generated when one-time charges are applied to an account, such as for bandwidth overages or support fees.
- CREDIT: Invoices that are generated whenever SoftLayer applies a credit against an account's balance. There are two special types of service credits.
- REFUND: Account credits that are applied against a customer's account balance along with the receivables on their account. REFUND type invoices are generated whenever a customer receives a service credit on their account balance and has their invoice items changed due to the credit.
- MANUAL_PAYMENT_CREDIT: Invoice credits that are generated whenever a customer makes an unscheduled payment.
Invoices are created with contact information duplicated from the SoftLayer_Account data type. We do this in order to maintain a history of an account's contact information as invoices are generated. Likewise each invoice record keeps track of an account's balance as the invoice is opened and closed.
Query the SoftLayer_Account service to get a list of invoices for your account.
Endpoints
| SOAP WSDL | http://api.service.softlayer.com/soap/v3/SoftLayer_Billing_Invoice?wsdl |
| XML-RPC | http://api.service.softlayer.com/xmlrpc/v3/SoftLayer_Billing_Invoice |
Methods
getAccount
Retrieve the account that an invoice belongs to.
- returns
- parameters
- None
getInvoiceTopLevelItems
Retrieve a list of top-level invoice items that are on the currently pending invoice.
- returns
- parameters
- None
getItems
Retrieve the items that belong to this invoice.
- returns
- parameters
- None
getObject
Retrieve a SoftLayer_Billing_Invoice record.
- returns
- parameters
- None
getPdf
Retrieve a PDF copy of an invoice.
- returns
- parameters
- None

