You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Query Params
customer
string
optional
Only return invoices for the customer specified by this customer ID.
subscription
string
optional
Only return invoices for the subscription specified by this subscription ID.
limit
integer
optional
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
ending_before
string
optional
A cursor for use in pagination. ending_before is an object ID that defines your place in the list.
starting_after
string
optional
A cursor for use in pagination. starting_after is an object ID that defines your place in the list.
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://apitest.wooshpay.com/v1/invoices?customer=&subscription=&limit=&ending_before=&starting_after=' \
--header'Accept;' \
--header'Authorization: Basic Og=='