Facades: merchant
Overview
An aged list of invoices can be retrieved using method parameters that map to URL parameters on the API.
Parameters
| Parameter | Description |
|---|---|
| date_start * | The first date for the query filter |
| date_end * | The last date for the query filter |
| status | The invoice status you want to query on |
| order_id | The optional order id specified at time of invoice creation |
| limit | Maximum results that the query will return (useful for paging results) |
| offset | Number of results to offset |
Example
NoteIn this example, we assume that a Client has already been initialized and assigned to the
bitpayvariable.
invoices = bitpay.get_invoices('2023-04-14', '2023-04-17')