Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Invoices

bradrydzewski edited this page Jun 5, 2012 · 3 revisions

Retrieve an existing invoice

stripe.SetKey("vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE")

invoice, err := stripe.Invoices.Retrieve("in_rlYxhO6MDmG23j")

Retrieve an upcoming invoice

stripe.SetKey("vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE")

invoice, err := stripe.Invoices.RetrieveCustomer("cus_Lt6VFhU30fptWh")

List invoices

stripe.SetKey("vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE")

invoices, err := stripe.Invoices.List()

List a range of Invoices:

// get a list of 10 invoices, starting at position 40 in the list of invoices
invoices, err := stripe.Invoices.ListN(10, 40)

List Invoices for a specified Customer:

invoices, err := stripe.Invoices.CustomerList("cus_Lt6VFhU30fptWh")

List Invoices for a specified Customer and range:

invoices, err := stripe.Invoices.CustomerList("cus_Lt6VFhU30fptWh", 10, 40)
Clone this wiki locally