All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
create_customer | POST /customers | Create a customer |
delete_applied_coupon | DELETE /customers/{customer_external_id}/applied_coupons/{applied_coupon_id} | Delete customer's appplied coupon |
destroy_customer | DELETE /customers/{external_id} | Delete a customer |
find_all_customers | GET /customers | Find customers |
find_customer | GET /customers/{external_id} | Find customer by external ID |
find_customer_current_usage | GET /customers/{customer_external_id}/current_usage | Find customer current usage |
get_customer_portal_url | GET /customers/{customer_external_id}/portal_url | Get customer portal URL |
crate::models::Customer create_customer(customer_input) Create a customer
Create a new customer
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_input | CustomerInput | Customer 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::AppliedCoupon delete_applied_coupon(customer_external_id, applied_coupon_id) Delete customer's appplied coupon
Delete customer's appplied coupon
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_external_id | String | External ID of the existing customer | [required] | |
applied_coupon_id | String | Applied Coupon Lago ID | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Customer destroy_customer(external_id) Delete a customer
Return the deleted customer
Name | Type | Description | Required | Notes |
---|---|---|---|---|
external_id | String | External ID of the existing customer | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CustomersPaginated find_all_customers(page, per_page) Find customers
Find all customers 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::CustomersPaginated
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Customer find_customer(external_id) Find customer by external ID
Return a single customer
Name | Type | Description | Required | Notes |
---|---|---|---|---|
external_id | String | External ID of the existing customer | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CustomerUsage find_customer_current_usage(customer_external_id, external_subscription_id) Find customer current usage
Return a customer current usage
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_external_id | String | External ID of the existing customer | [required] | |
external_subscription_id | String | External subscription ID | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetCustomerPortalUrl200Response get_customer_portal_url(customer_external_id) Get customer portal URL
Get customer portal URL
Name | Type | Description | Required | Notes |
---|---|---|---|---|
customer_external_id | String | External ID of the existing customer | [required] |
crate::models::GetCustomerPortalUrl200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]