All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
create_credit_note | POST /credit_notes | Create a new Credit note |
download_credit_note | POST /credit_notes/{id}/download | Download an existing credit note |
find_all_credit_notes | GET /credit_notes | Find Credit notes |
find_credit_note | GET /credit_notes/{id} | Find credit note |
update_credit_note | PUT /credit_notes/{id} | Update an existing credit note |
void_credit_note | PUT /credit_notes/{id}/void | Void existing credit note |
crate::models::CreditNote create_credit_note(credit_note_input) Create a new Credit note
Create a new credit note
Name | Type | Description | Required | Notes |
---|---|---|---|---|
credit_note_input | CreditNoteInput | Credit note 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::CreditNote download_credit_note(id) Download an existing credit note
Download an existing credit note
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Credit note | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CreditNotes find_all_credit_notes(page, per_page, external_customer_id) Find Credit notes
Find all credit notes 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 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CreditNote find_credit_note(id) Find credit note
Return a single credit note
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | Id of the existing credit note | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CreditNote update_credit_note(id, credit_note_update_input) Update an existing credit note
Update an existing credit note
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | String | Id of the existing credit note | [required] | |
credit_note_update_input | CreditNoteUpdateInput | Update an existing credit note | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CreditNote void_credit_note(id) Void existing credit note
Void an existing credit note
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | uuid::Uuid | ID of the existing Lago Credit note | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]