All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
apply_add_on | POST /applied_add_ons | Apply an add-on to a customer |
create_add_on | POST /add_ons | Create a new add-on |
destroy_add_on | DELETE /add_ons/{code} | Delete an add-on |
find_add_on | GET /add_ons/{code} | Find add-on by code |
find_all_add_ons | GET /add_ons | Find add-ons |
update_add_on | PUT /add_ons/{code} | Update an existing add-on |
crate::models::AppliedAddOn apply_add_on(applied_add_on_input) Apply an add-on to a customer
Apply an add-on to a customer
Name | Type | Description | Required | Notes |
---|---|---|---|---|
applied_add_on_input | AppliedAddOnInput | Apply add-on 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::AddOn create_add_on(add_on_input) Create a new add-on
Create a new add-on
Name | Type | Description | Required | Notes |
---|---|---|---|---|
add_on_input | AddOnInput | Add-on 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::AddOn destroy_add_on(code) Delete an add-on
Delete an add-on
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing add-on | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::AddOn find_add_on(code) Find add-on by code
Return a single add-on
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing add-on | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::AddOnsPaginated find_all_add_ons(page, per_page) Find add-ons
Find all add-ons in certain organisation
Name | Type | Description | Required | Notes |
---|---|---|---|---|
page | Option<i32> | Number of page | ||
per_page | Option<i32> | Number of records per page |
crate::models::AddOnsPaginated
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::AddOn update_add_on(code, add_on_input) Update an existing add-on
Update an existing add-on by code
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing add-on | [required] | |
add_on_input | AddOnInput | Update an existing add-on | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]