All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
create_billable_metric | POST /billable_metrics | Create a new billable metric |
destroy_billable_metric | DELETE /billable_metrics/{code} | Delete a billable metric |
find_all_billable_metric_groups | GET /billable_metrics/{code}/groups | Find Billable metric groups |
find_all_billable_metrics | GET /billable_metrics | Find Billable metrics |
find_billable_metric | GET /billable_metrics/{code} | Find billable metric by code |
update_billable_metric | PUT /billable_metrics/{code} | Update an existing billable metric |
crate::models::BillableMetric create_billable_metric(billable_metric_input) Create a new billable metric
Create a new billable metric
Name | Type | Description | Required | Notes |
---|---|---|---|---|
billable_metric_input | BillableMetricInput | Billable metric 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::BillableMetric destroy_billable_metric(code) Delete a billable metric
Delete a billable metric
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing billable metric | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GroupsPaginated find_all_billable_metric_groups(code, page, per_page) Find Billable metric groups
Find all billable metric groups in certain organisation
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing billable metric | [required] | |
page | Option<i32> | Number of page | ||
per_page | Option<i32> | Number of records per page |
crate::models::GroupsPaginated
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::BillableMetricsPaginated find_all_billable_metrics(page, per_page) Find Billable metrics
Find all billable metrics 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::BillableMetricsPaginated
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::BillableMetric find_billable_metric(code) Find billable metric by code
Return a single billable metric
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing billable metric | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::BillableMetric update_billable_metric(code, billable_metric_input) Update an existing billable metric
Update an existing billable metric by code
Name | Type | Description | Required | Notes |
---|---|---|---|---|
code | String | Code of the existing billable metric | [required] | |
billable_metric_input | BillableMetricInput | Update an existing billable metric | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]