# \InvoiceApi
All URIs are relative to *http://localhost*
[**get_get_invoice**](InvoiceApi.md#get_get_invoice) | **GET** /api/invoices/{id} | Returns one invoice.
[**get_get_invoices**](InvoiceApi.md#get_get_invoices) | **GET** /api/invoices | Returns a paginated collection of invoices.
## get_get_invoice
> models::Invoice get_get_invoice(id)
Returns one invoice.
Needs permission: view_invoice
### Parameters
**id** | **String** | | [required] |
### Return type
[**models::Invoice**](Invoice.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_get_invoices
> Vec<models::InvoiceCollection> get_get_invoices(begin, end, customers_left_square_bracket_right_square_bracket, status_left_square_bracket_right_square_bracket, page, size)
Returns a paginated collection of invoices.
Needs permission: view_invoice
### Parameters
**begin** | Option<**String**> | Only records after this date will be included (format: HTML5 datetime-local, e.g. YYYY-MM-DDThh:mm:ss) | |
**end** | Option<**String**> | Only records before this date will be included (format: HTML5 datetime-local, e.g. YYYY-MM-DDThh:mm:ss) | |
**customers_left_square_bracket_right_square_bracket** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | List of customer IDs to filter, e.g.: customers[]=1&customers[]=2 | |[default to []]
**status_left_square_bracket_right_square_bracket** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | Invoice status: pending, paid, canceled, new. Default: all | |[default to []]
**page** | Option<**String**> | The page to display, renders a 404 if not found (default: 1) | |
**size** | Option<**String**> | The amount of entries for each page (default: 50) | |
### Return type
[**Vec<models::InvoiceCollection>**](InvoiceCollection.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)