All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
create_invoice | POST /invoices | Create a new invoice |
download_invoice | POST /invoices/{id}/download | Download an existing invoice |
finalize_invoice | PUT /invoices/{id}/finalize | Finalize a draft invoice |
find_all_invoices | GET /invoices | Find all invoices |
find_invoice | GET /invoices/{id} | Find invoice by ID |
refresh_invoice | PUT /invoices/{id}/refresh | Refresh a draft invoice |
retry_payment | POST /invoices/{id}/retry_payment | Retry invoice payment |
update_invoice | PUT /invoices/{id} | Update an existing invoice status |
crate::models::Invoice create_invoice(invoice_one_off_input) Create a new invoice
Create a new one off Invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
invoice_one_off_input | InvoiceOneOffInput | Invoice payload | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Invoice download_invoice(id) Download an existing invoice
Download an existing invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Invoice | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Invoice finalize_invoice(id) Finalize a draft invoice
Finalize a draft invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the draft Lago Invoice | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::InvoicesPaginated find_all_invoices(page, per_page, external_customer_id, issuing_date_from, issuing_date_to, status) Find all invoices
Find all invoices in certain organisation
Name | Type | Description | Required | Notes |
---|---|---|---|---|
page | Option<i32> | Number of page | ||
per_page | Option<i32> | Number of records per page | ||
external_customer_id | Option<String> | External customer ID | ||
issuing_date_from | Option<String> | Date from | ||
issuing_date_to | Option<String> | Date to | ||
status | Option<String> | Status |
crate::models::InvoicesPaginated
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Invoice find_invoice(id) Find invoice by ID
Return a single invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Invoice | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Invoice refresh_invoice(id) Refresh a draft invoice
Refresh a draft invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Invoice | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retry_payment(id) Retry invoice payment
Retry invoice payment
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Invoice | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Invoice update_invoice(id, invoice_input) Update an existing invoice status
Update an existing invoice
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Invoice | [required] | |
invoice_input | InvoiceInput | Update an existing invoice | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]