diff --git a/source/includes/management-api/_management-api.md b/source/includes/management-api/_management-api.md index 519136f..a7512f7 100644 --- a/source/includes/management-api/_management-api.md +++ b/source/includes/management-api/_management-api.md @@ -83,7 +83,7 @@ curl -X POST https://api.moesif.com/v1/search/~/companies \ -d '{ "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -94,7 +94,7 @@ curl -X POST https://api.moesif.com/v1/search/~/companies \ const fetch = require('node-fetch'); const inputBody = { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -128,13 +128,13 @@ headers = { } input_body = { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} } -r = requests.post('https://api.moesif.com/v1/search/~/companies', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/companies', headers = headers, json = input_data) print(r.json()) @@ -152,7 +152,7 @@ headers = { input_payload = JSON.parse('{ "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -181,7 +181,7 @@ $headers = array( $inputPayload = json_decode('{ "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -223,7 +223,7 @@ func main() { } jsonPayload := `{ "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -271,7 +271,7 @@ public class HttpExample string json = @"{ ""company_id"": ""string"", - ""modified_time"": ""2024-04-11T04:01:35.090Z"", + ""modified_time"": ""2025-01-09T17:18:58.560Z"", ""session_token"": ""string"", ""company_domain"": ""string"", ""metadata"": {} @@ -331,7 +331,7 @@ con.setDoOutput(true); String jsonPayload = """{ "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -366,7 +366,7 @@ System.out.println(response.toString()); ```json { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -410,7 +410,7 @@ curl -X POST https://api.moesif.com/v1/search/~/companies/batch \ -d '[ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -423,7 +423,7 @@ const fetch = require('node-fetch'); const inputBody = [ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -459,14 +459,14 @@ headers = { input_body = [ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} } ] -r = requests.post('https://api.moesif.com/v1/search/~/companies/batch', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/companies/batch', headers = headers, json = input_data) print(r.json()) @@ -485,7 +485,7 @@ headers = { input_payload = JSON.parse('[ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -516,7 +516,7 @@ $headers = array( $inputPayload = json_decode('[ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -560,7 +560,7 @@ func main() { jsonPayload := `[ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -610,7 +610,7 @@ public class HttpExample string json = @"[ { ""company_id"": ""string"", - ""modified_time"": ""2024-04-11T04:01:35.090Z"", + ""modified_time"": ""2025-01-09T17:18:58.560Z"", ""session_token"": ""string"", ""company_domain"": ""string"", ""metadata"": {} @@ -672,7 +672,7 @@ con.setDoOutput(true); String jsonPayload = """[ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -709,7 +709,7 @@ System.out.println(response.toString()); [ { "company_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "session_token": "string", "company_domain": "string", "metadata": {} @@ -1232,7 +1232,7 @@ input_body = false r = requests.post('https://api.moesif.com/v1/search/~/count/companies', params={ 'app_id': 'string' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -1506,7 +1506,7 @@ headers = { } input_body = false -r = requests.post('https://api.moesif.com/v1/search/~/search/companymetrics/companies', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/search/companymetrics/companies', headers = headers, json = input_data) print(r.json()) @@ -1971,9 +1971,9 @@ curl -X POST https://api.moesif.com/v1/search/~/subscriptions \ -H 'Authorization: Bearer YOUR_MANAGEMENT_API_KEY' -d '{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -1987,27 +1987,27 @@ curl -X POST https://api.moesif.com/v1/search/~/subscriptions \ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }' ``` ```javascript--nodejs const fetch = require('node-fetch'); const inputBody = { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2021,18 +2021,18 @@ const inputBody = { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }; const headers = { 'Content-Type':'application/json', @@ -2062,9 +2062,9 @@ headers = { 'Authorization': 'Bearer YOUR_MANAGEMENT_API_KEY' } input_body = { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2078,21 +2078,21 @@ input_body = { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" } -r = requests.post('https://api.moesif.com/v1/search/~/subscriptions', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/subscriptions', headers = headers, json = input_data) print(r.json()) @@ -2109,9 +2109,9 @@ headers = { } input_payload = JSON.parse('{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2125,18 +2125,18 @@ input_payload = JSON.parse('{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }') result = RestClient.post 'https://api.moesif.com/v1/search/~/subscriptions', @@ -2161,9 +2161,9 @@ $headers = array( ); $inputPayload = json_decode('{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2177,18 +2177,18 @@ $inputPayload = json_decode('{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }') $client = new \GuzzleHttp\Client(); @@ -2226,9 +2226,9 @@ func main() { "Authorization": []string{"Bearer YOUR_MANAGEMENT_API_KEY"}, } jsonPayload := `{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2242,18 +2242,18 @@ func main() { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }` data := bytes.NewBuffer([]byte(jsonPayload)) req, err := http.NewRequest("POST", "https://api.moesif.com/v1/search/~/subscriptions", data) @@ -2297,9 +2297,9 @@ public class HttpExample string url = "https://api.moesif.com/v1/search/~/subscriptions"; string json = @"{ - ""trial_start"": ""2024-04-11T04:01:35.090Z"", + ""trial_start"": ""2025-01-09T17:18:58.560Z"", ""company_id"": ""string"", - ""start_date"": ""2024-04-11T04:01:35.090Z"", + ""start_date"": ""2025-01-09T17:18:58.560Z"", ""collection_method"": ""string"", ""provider"": ""string"", ""items"": [ @@ -2313,18 +2313,18 @@ public class HttpExample ""subscription_item_id"": ""string"" } ], - ""current_period_start"": ""2024-04-11T04:01:35.090Z"", + ""current_period_start"": ""2025-01-09T17:18:58.560Z"", ""company_external_id"": ""string"", ""payment_status"": ""string"", - ""cancel_time"": ""2024-04-11T04:01:35.090Z"", + ""cancel_time"": ""2025-01-09T17:18:58.560Z"", ""status"": ""string"", - ""trial_end"": ""2024-04-11T04:01:35.090Z"", + ""trial_end"": ""2025-01-09T17:18:58.560Z"", ""external_id"": ""string"", ""metadata"": {}, ""subscription_id"": ""string"", ""version_id"": ""string"", - ""current_period_end"": ""2024-04-11T04:01:35.090Z"", - ""created"": ""2024-04-11T04:01:35.090Z"" + ""current_period_end"": ""2025-01-09T17:18:58.560Z"", + ""created"": ""2025-01-09T17:18:58.560Z"" }"; var content = JsonConvert.DeserializeObject(json); await PostAsync(content, url); @@ -2380,9 +2380,9 @@ con.setRequestProperty("Authorization",'Bearer YOUR_MANAGEMENT_API_KEY'); con.setDoOutput(true); String jsonPayload = """{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2396,18 +2396,18 @@ String jsonPayload = """{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }"""; // Write payload to the request @@ -2438,9 +2438,9 @@ System.out.println(response.toString()); ```json { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2454,18 +2454,18 @@ System.out.println(response.toString()); "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" } ``` @@ -2481,9 +2481,9 @@ System.out.println(response.toString()); ```json { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2497,22 +2497,22 @@ System.out.println(response.toString()); "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "modified_time": "2024-04-11T04:01:35.090Z", - "cancel_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "app_id": "string", "subscription_id": "string", "version_id": "string", "type": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", + "current_period_end": "2025-01-09T17:18:58.560Z", "org_id": "string", - "created": "2024-04-11T04:01:35.090Z" + "created": "2025-01-09T17:18:58.560Z" } ``` @@ -2541,9 +2541,9 @@ curl -X POST https://api.moesif.com/v1/search/~/subscriptions/batch \ -H 'Authorization: Bearer YOUR_MANAGEMENT_API_KEY' -d '{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2557,27 +2557,27 @@ curl -X POST https://api.moesif.com/v1/search/~/subscriptions/batch \ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }' ``` ```javascript--nodejs const fetch = require('node-fetch'); const inputBody = { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2591,18 +2591,18 @@ const inputBody = { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }; const headers = { 'Content-Type':'application/json', @@ -2632,9 +2632,9 @@ headers = { 'Authorization': 'Bearer YOUR_MANAGEMENT_API_KEY' } input_body = { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2648,21 +2648,21 @@ input_body = { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" } -r = requests.post('https://api.moesif.com/v1/search/~/subscriptions/batch', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/subscriptions/batch', headers = headers, json = input_data) print(r.json()) @@ -2679,9 +2679,9 @@ headers = { } input_payload = JSON.parse('{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2695,18 +2695,18 @@ input_payload = JSON.parse('{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }') result = RestClient.post 'https://api.moesif.com/v1/search/~/subscriptions/batch', @@ -2731,9 +2731,9 @@ $headers = array( ); $inputPayload = json_decode('{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2747,18 +2747,18 @@ $inputPayload = json_decode('{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }') $client = new \GuzzleHttp\Client(); @@ -2796,9 +2796,9 @@ func main() { "Authorization": []string{"Bearer YOUR_MANAGEMENT_API_KEY"}, } jsonPayload := `{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2812,18 +2812,18 @@ func main() { "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }` data := bytes.NewBuffer([]byte(jsonPayload)) req, err := http.NewRequest("POST", "https://api.moesif.com/v1/search/~/subscriptions/batch", data) @@ -2867,9 +2867,9 @@ public class HttpExample string url = "https://api.moesif.com/v1/search/~/subscriptions/batch"; string json = @"{ - ""trial_start"": ""2024-04-11T04:01:35.090Z"", + ""trial_start"": ""2025-01-09T17:18:58.560Z"", ""company_id"": ""string"", - ""start_date"": ""2024-04-11T04:01:35.090Z"", + ""start_date"": ""2025-01-09T17:18:58.560Z"", ""collection_method"": ""string"", ""provider"": ""string"", ""items"": [ @@ -2883,18 +2883,18 @@ public class HttpExample ""subscription_item_id"": ""string"" } ], - ""current_period_start"": ""2024-04-11T04:01:35.090Z"", + ""current_period_start"": ""2025-01-09T17:18:58.560Z"", ""company_external_id"": ""string"", ""payment_status"": ""string"", - ""cancel_time"": ""2024-04-11T04:01:35.090Z"", + ""cancel_time"": ""2025-01-09T17:18:58.560Z"", ""status"": ""string"", - ""trial_end"": ""2024-04-11T04:01:35.090Z"", + ""trial_end"": ""2025-01-09T17:18:58.560Z"", ""external_id"": ""string"", ""metadata"": {}, ""subscription_id"": ""string"", ""version_id"": ""string"", - ""current_period_end"": ""2024-04-11T04:01:35.090Z"", - ""created"": ""2024-04-11T04:01:35.090Z"" + ""current_period_end"": ""2025-01-09T17:18:58.560Z"", + ""created"": ""2025-01-09T17:18:58.560Z"" }"; var content = JsonConvert.DeserializeObject(json); await PostAsync(content, url); @@ -2950,9 +2950,9 @@ con.setRequestProperty("Authorization",'Bearer YOUR_MANAGEMENT_API_KEY'); con.setDoOutput(true); String jsonPayload = """{ - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -2966,18 +2966,18 @@ String jsonPayload = """{ "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" }"""; // Write payload to the request @@ -3008,9 +3008,9 @@ System.out.println(response.toString()); ```json { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -3024,18 +3024,18 @@ System.out.println(response.toString()); "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "cancel_time": "2024-04-11T04:01:35.090Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "subscription_id": "string", "version_id": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", - "created": "2024-04-11T04:01:35.090Z" + "current_period_end": "2025-01-09T17:18:58.560Z", + "created": "2025-01-09T17:18:58.560Z" } ``` @@ -3051,9 +3051,9 @@ System.out.println(response.toString()); ```json { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -3067,22 +3067,22 @@ System.out.println(response.toString()); "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "modified_time": "2024-04-11T04:01:35.090Z", - "cancel_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "app_id": "string", "subscription_id": "string", "version_id": "string", "type": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", + "current_period_end": "2025-01-09T17:18:58.560Z", "org_id": "string", - "created": "2024-04-11T04:01:35.090Z" + "created": "2025-01-09T17:18:58.560Z" } ``` @@ -3314,9 +3314,9 @@ System.out.println(response.toString()); ```json { - "trial_start": "2024-04-11T04:01:35.090Z", + "trial_start": "2025-01-09T17:18:58.560Z", "company_id": "string", - "start_date": "2024-04-11T04:01:35.090Z", + "start_date": "2025-01-09T17:18:58.560Z", "collection_method": "string", "provider": "string", "items": [ @@ -3330,22 +3330,22 @@ System.out.println(response.toString()); "subscription_item_id": "string" } ], - "current_period_start": "2024-04-11T04:01:35.090Z", + "current_period_start": "2025-01-09T17:18:58.560Z", "company_external_id": "string", "payment_status": "string", - "modified_time": "2024-04-11T04:01:35.090Z", - "cancel_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", + "cancel_time": "2025-01-09T17:18:58.560Z", "status": "string", - "trial_end": "2024-04-11T04:01:35.090Z", + "trial_end": "2025-01-09T17:18:58.560Z", "external_id": "string", "metadata": {}, "app_id": "string", "subscription_id": "string", "version_id": "string", "type": "string", - "current_period_end": "2024-04-11T04:01:35.090Z", + "current_period_end": "2025-01-09T17:18:58.560Z", "org_id": "string", - "created": "2024-04-11T04:01:35.090Z" + "created": "2025-01-09T17:18:58.560Z" } ``` @@ -3411,9 +3411,9 @@ headers = { input_body = false r = requests.post('https://api.moesif.com/v1/search/~/count/events', params={ - 'from': '2024-04-11T04:01:35.090Z', 'to': '2024-04-11T04:01:35.090Z' + 'from': '2025-01-09T17:18:58.560Z', 'to': '2025-01-09T17:18:58.560Z' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -3683,7 +3683,7 @@ headers = { } r = requests.get('https://api.moesif.com/v1/search/~/events/{id}', params={ - 'event_time': '2024-04-11T04:01:35.090Z' + 'event_time': '2025-01-09T17:18:58.560Z' }, headers = headers) @@ -3986,9 +3986,9 @@ headers = { input_body = false r = requests.post('https://api.moesif.com/v1/search/~/search/events', params={ - 'from': '2024-04-11T04:01:35.090Z', 'to': '2024-04-11T04:01:35.090Z' + 'from': '2025-01-09T17:18:58.560Z', 'to': '2025-01-09T17:18:58.560Z' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -4197,6 +4197,7 @@ false |---|---|---|---|---| |from|query|string(date-time)|true|The start date, which can be absolute such as 2023-07-01T00:00:00Z or relative such as -24h| |to|query|string(date-time)|true|The end date, which can be absolute such as 2023-07-02T00:00:00Z or relative such as now| +|includes|query|string|false|none| > Example responses @@ -4299,9 +4300,9 @@ headers = { input_body = false r = requests.post('https://api.moesif.com/v1/search/~/workspaces/{workspaceId}/search', params={ - 'from': '2024-04-11T04:01:35.090Z', 'to': '2024-04-11T04:01:35.090Z' + 'from': '2025-01-09T17:18:58.560Z', 'to': '2025-01-09T17:18:58.560Z' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -4513,6 +4514,7 @@ false |workspaceId|path|string|true|none| |include_details|query|boolean|false|none| |take|query|integer(int32)|false|none| +|includes|query|string|false|none| > Example responses @@ -4615,7 +4617,7 @@ input_body = false r = requests.post('https://api.moesif.com/v1/search/~/count/users', params={ 'app_id': 'string' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -4889,7 +4891,7 @@ headers = { } input_body = false -r = requests.post('https://api.moesif.com/v1/search/~/search/usermetrics/users', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/search/usermetrics/users', headers = headers, json = input_data) print(r.json()) @@ -5132,7 +5134,7 @@ curl -X POST https://api.moesif.com/v1/search/~/users \ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5149,7 +5151,7 @@ const inputBody = { "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5189,14 +5191,14 @@ input_body = { "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", "phone": "string" } -r = requests.post('https://api.moesif.com/v1/search/~/users', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/users', headers = headers, json = input_data) print(r.json()) @@ -5219,7 +5221,7 @@ input_payload = JSON.parse('{ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5254,7 +5256,7 @@ $inputPayload = json_decode('{ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5302,7 +5304,7 @@ func main() { "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5356,7 +5358,7 @@ public class HttpExample ""email"": ""string"", ""photo_url"": ""string"", ""user_id"": ""string"", - ""modified_time"": ""2024-04-11T04:01:35.090Z"", + ""modified_time"": ""2025-01-09T17:18:58.560Z"", ""last_name"": ""string"", ""metadata"": {}, ""user_name"": ""string"", @@ -5422,7 +5424,7 @@ String jsonPayload = """{ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5463,7 +5465,7 @@ System.out.println(response.toString()); "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5505,12 +5507,12 @@ System.out.println(response.toString()); "region_name": "South Carolina", "continent_code": "NA", "location": { - "lon": -79.85489654541016, - "lat": 32.822898864746094 + "lon": -79.8548965454102, + "lat": 32.8228988647461 }, - "latitude": 32.822898864746094, + "latitude": 32.8228988647461, "timezone": "America/New_York", - "longitude": -79.85489654541016, + "longitude": -79.8548965454102, "dma_code": 519, "postal_code": "29464", "region_code": "SC", @@ -5567,7 +5569,7 @@ curl -X POST https://api.moesif.com/v1/search/~/users/batch \ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5586,7 +5588,7 @@ const inputBody = [ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5628,7 +5630,7 @@ input_body = [ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5636,7 +5638,7 @@ input_body = [ } ] -r = requests.post('https://api.moesif.com/v1/search/~/users/batch', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/search/~/users/batch', headers = headers, json = input_data) print(r.json()) @@ -5660,7 +5662,7 @@ input_payload = JSON.parse('[ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5697,7 +5699,7 @@ $inputPayload = json_decode('[ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5747,7 +5749,7 @@ func main() { "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5803,7 +5805,7 @@ public class HttpExample ""email"": ""string"", ""photo_url"": ""string"", ""user_id"": ""string"", - ""modified_time"": ""2024-04-11T04:01:35.090Z"", + ""modified_time"": ""2025-01-09T17:18:58.560Z"", ""last_name"": ""string"", ""metadata"": {}, ""user_name"": ""string"", @@ -5871,7 +5873,7 @@ String jsonPayload = """[ "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5914,7 +5916,7 @@ System.out.println(response.toString()); "email": "string", "photo_url": "string", "user_id": "string", - "modified_time": "2024-04-11T04:01:35.090Z", + "modified_time": "2025-01-09T17:18:58.560Z", "last_name": "string", "metadata": {}, "user_name": "string", @@ -5957,12 +5959,12 @@ System.out.println(response.toString()); "region_name": "South Carolina", "continent_code": "NA", "location": { - "lon": -79.85489654541016, - "lat": 32.822898864746094 + "lon": -79.8548965454102, + "lat": 32.8228988647461 }, - "latitude": 32.822898864746094, + "latitude": 32.8228988647461, "timezone": "America/New_York", - "longitude": -79.85489654541016, + "longitude": -79.8548965454102, "dma_code": 519, "postal_code": "29464", "region_code": "SC", @@ -6237,12 +6239,12 @@ System.out.println(response.toString()); "region_name": "South Carolina", "continent_code": "NA", "location": { - "lon": -79.85489654541016, - "lat": 32.822898864746094 + "lon": -79.8548965454102, + "lat": 32.8228988647461 }, - "latitude": 32.822898864746094, + "latitude": 32.8228988647461, "timezone": "America/New_York", - "longitude": -79.85489654541016, + "longitude": -79.8548965454102, "dma_code": 519, "postal_code": "29464", "region_code": "SC", @@ -6770,7 +6772,7 @@ headers = { } r = requests.get('https://api.moesif.com/v1/search/~/mappings/events/request/body/properties', params={ - 'app_id': 'string', 'from': '2024-04-11T04:01:35.090Z', 'to': '2024-04-11T04:01:35.090Z' + 'app_id': 'string', 'from': '2025-01-09T17:18:58.560Z', 'to': '2025-01-09T17:18:58.560Z' }, headers = headers) @@ -7005,7 +7007,7 @@ headers = { } r = requests.get('https://api.moesif.com/v1/search/~/mappings/events/response/body/properties', params={ - 'app_id': 'string', 'from': '2024-04-11T04:01:35.090Z', 'to': '2024-04-11T04:01:35.090Z' + 'app_id': 'string', 'from': '2025-01-09T17:18:58.560Z', 'to': '2025-01-09T17:18:58.560Z' }, headers = headers) @@ -7651,6 +7653,7 @@ System.out.println(response.toString()); "_id": "string", "is_template": true, "dashboard": {}, + "height": 0.1, "auth_user_id": "string", "colors": {}, "sequence": [ @@ -7723,7 +7726,7 @@ System.out.println(response.toString()); }, "org_id": "string", "migration": {}, - "created": "2024-04-11T04:01:35.090Z", + "created": "2025-01-09T17:18:58.560Z", "comments": { "summary": { "count": 0, @@ -7735,8 +7738,8 @@ System.out.println(response.toString()); ], "partner_user_id": "string", "message": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "updated_at": "2024-04-11T04:01:35.090Z" + "created_at": "2025-01-09T17:18:58.560Z", + "updated_at": "2025-01-09T17:18:58.560Z" } } } @@ -7772,6 +7775,7 @@ curl -X POST https://api.moesif.com/v1/~/workspaces \ "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -7828,6 +7832,7 @@ const inputBody = { "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -7907,6 +7912,7 @@ input_body = { "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -7955,7 +7961,7 @@ input_body = { } } -r = requests.post('https://api.moesif.com/v1/~/workspaces', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/workspaces', headers = headers, json = input_data) print(r.json()) @@ -7976,6 +7982,7 @@ input_payload = JSON.parse('{ "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -8050,6 +8057,7 @@ $inputPayload = json_decode('{ "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -8137,6 +8145,7 @@ func main() { "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -8230,6 +8239,7 @@ public class HttpExample ""is_default"": true, ""view_count"": 0, ""dashboard"": {}, + ""height"": 0.1, ""colors"": {}, ""drawings"": [ { @@ -8335,6 +8345,7 @@ String jsonPayload = """{ "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -8415,6 +8426,7 @@ System.out.println(response.toString()); "is_default": true, "view_count": 0, "dashboard": {}, + "height": 0.1, "colors": {}, "drawings": [ { @@ -8483,6 +8495,7 @@ System.out.println(response.toString()); "_id": "string", "is_template": true, "dashboard": {}, + "height": 0.1, "auth_user_id": "string", "colors": {}, "sequence": [ @@ -8555,7 +8568,7 @@ System.out.println(response.toString()); }, "org_id": "string", "migration": {}, - "created": "2024-04-11T04:01:35.090Z", + "created": "2025-01-09T17:18:58.560Z", "comments": { "summary": { "count": 0, @@ -8567,8 +8580,8 @@ System.out.println(response.toString()); ], "partner_user_id": "string", "message": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "updated_at": "2024-04-11T04:01:35.090Z" + "created_at": "2025-01-09T17:18:58.560Z", + "updated_at": "2025-01-09T17:18:58.560Z" } } } @@ -8820,6 +8833,7 @@ System.out.println(response.toString()); "_id": "string", "is_template": true, "dashboard": {}, + "height": 0.1, "auth_user_id": "string", "colors": {}, "sequence": [ @@ -8886,7 +8900,7 @@ System.out.println(response.toString()); }, "org_id": "string", "migration": {}, - "created": "2024-04-11T04:01:35.090Z", + "created": "2025-01-09T17:18:58.560Z", "comments": { "summary": { "count": 0, @@ -8898,8 +8912,8 @@ System.out.println(response.toString()); ], "partner_user_id": "string", "message": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "updated_at": "2024-04-11T04:01:35.090Z" + "created_at": "2025-01-09T17:18:58.560Z", + "updated_at": "2025-01-09T17:18:58.560Z" } } } @@ -8926,6 +8940,7 @@ Status Code **200** |» _id|string|false|none|none| |» is_template|boolean|false|none|none| |» dashboard|object|false|none|none| +|» height|number(double)|false|none|none| |» auth_user_id|string|true|none|none| |» colors|object|false|none|none| |» sequence|[[SequenceItem](#schemasequenceitem)]|false|none|none| @@ -9214,6 +9229,7 @@ System.out.println(response.toString()); "_id": "string", "is_template": true, "dashboard": {}, + "height": 0.1, "auth_user_id": "string", "colors": {}, "sequence": [ @@ -9280,7 +9296,7 @@ System.out.println(response.toString()); }, "org_id": "string", "migration": {}, - "created": "2024-04-11T04:01:35.090Z", + "created": "2025-01-09T17:18:58.560Z", "comments": { "summary": { "count": 0, @@ -9292,8 +9308,8 @@ System.out.println(response.toString()); ], "partner_user_id": "string", "message": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "updated_at": "2024-04-11T04:01:35.090Z" + "created_at": "2025-01-09T17:18:58.560Z", + "updated_at": "2025-01-09T17:18:58.560Z" } } } @@ -9320,6 +9336,7 @@ Status Code **200** |» _id|string|false|none|none| |» is_template|boolean|false|none|none| |» dashboard|object|false|none|none| +|» height|number(double)|false|none|none| |» auth_user_id|string|true|none|none| |» colors|object|false|none|none| |» sequence|[[SequenceItem](#schemasequenceitem)]|false|none|none| @@ -9399,6 +9416,7 @@ curl -X POST https://api.moesif.com/v1/~/workspaces/{id} \ -d '{ "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9451,6 +9469,7 @@ curl -X POST https://api.moesif.com/v1/~/workspaces/{id} \ const fetch = require('node-fetch'); const inputBody = { "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9524,6 +9543,7 @@ headers = { } input_body = { "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9571,7 +9591,7 @@ input_body = { } } -r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}', headers = headers, json = input_data) print(r.json()) @@ -9588,6 +9608,7 @@ headers = { input_payload = JSON.parse('{ "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9657,6 +9678,7 @@ $headers = array( $inputPayload = json_decode('{ "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9739,6 +9761,7 @@ func main() { } jsonPayload := `{ "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -9828,6 +9851,7 @@ public class HttpExample string json = @"{ ""name"": ""string"", + ""height"": 0.1, ""colors"": {}, ""drawings"": [ { @@ -9928,6 +9952,7 @@ con.setDoOutput(true); String jsonPayload = """{ "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -10004,6 +10029,7 @@ System.out.println(response.toString()); ```json { "name": "string", + "height": 0.1, "colors": {}, "drawings": [ { @@ -10293,6 +10319,7 @@ System.out.println(response.toString()); "_id": "string", "is_template": true, "dashboard": {}, + "height": 0.1, "auth_user_id": "string", "colors": {}, "sequence": [ @@ -10365,7 +10392,7 @@ System.out.println(response.toString()); }, "org_id": "string", "migration": {}, - "created": "2024-04-11T04:01:35.090Z", + "created": "2025-01-09T17:18:58.560Z", "comments": { "summary": { "count": 0, @@ -10377,8 +10404,8 @@ System.out.println(response.toString()); ], "partner_user_id": "string", "message": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "updated_at": "2024-04-11T04:01:35.090Z" + "created_at": "2025-01-09T17:18:58.560Z", + "updated_at": "2025-01-09T17:18:58.560Z" } } } @@ -10672,7 +10699,7 @@ input_body = { ] } -r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}/comments', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}/comments', headers = headers, json = input_data) print(r.json()) @@ -11194,7 +11221,7 @@ input_body = { ] } -r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}/comments/{commentId}', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/workspaces/{id}/comments/{commentId}', headers = headers, json = input_data) print(r.json()) @@ -12174,7 +12201,7 @@ input_body = { "custom_app_id": "string" } -r = requests.post('https://api.moesif.com/v1/~/apps', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/apps', headers = headers, json = input_data) print(r.json()) @@ -12770,7 +12797,7 @@ input_body = { "custom_app_id": "string" } -r = requests.post('https://api.moesif.com/v1/~/apps/{id}', headers = headers, json = input_body) +r = requests.post('https://api.moesif.com/v1/~/apps/{id}', headers = headers, json = input_data) print(r.json()) @@ -13278,15 +13305,20 @@ curl -X POST https://api.moesif.com/v1/~/billing/catalog/plans?provider=string \ "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13295,21 +13327,26 @@ curl -X POST https://api.moesif.com/v1/~/billing/catalog/plans?provider=string \ "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }' ``` @@ -13324,15 +13361,20 @@ const inputBody = { "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13341,21 +13383,26 @@ const inputBody = { "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }; const headers = { 'Content-Type':'application/json', @@ -13393,15 +13440,20 @@ input_body = { "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13410,27 +13462,32 @@ input_body = { "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" } r = requests.post('https://api.moesif.com/v1/~/billing/catalog/plans', params={ 'provider': 'string' -}, headers = headers, json = input_body) +}, headers = headers, json = input_data) print(r.json()) @@ -13455,15 +13512,20 @@ input_payload = JSON.parse('{ "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13472,21 +13534,26 @@ input_payload = JSON.parse('{ "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }') result = RestClient.post 'https://api.moesif.com/v1/~/billing/catalog/plans', @@ -13520,15 +13587,20 @@ $inputPayload = json_decode('{ "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13537,21 +13609,26 @@ $inputPayload = json_decode('{ "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }') $client = new \GuzzleHttp\Client(); @@ -13597,15 +13674,20 @@ func main() { "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13614,21 +13696,26 @@ func main() { "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }` data := bytes.NewBuffer([]byte(jsonPayload)) req, err := http.NewRequest("POST", "https://api.moesif.com/v1/~/billing/catalog/plans", data) @@ -13680,15 +13767,20 @@ public class HttpExample ""divide_by"": 0, ""round"": ""string"" }, + ""currency_prices"": null, ""provider"": ""string"", + ""revenue_recognition_rule"": ""string"", ""price_in_decimal"": ""string"", ""tiers"": [ { + ""flat_currency_prices"": null, ""up_to"": null, + ""flat_price_in_decimal"": ""string"", ""unit_price_in_decimal"": ""string"", - ""flat_price_in_decimal"": ""string"" + ""unit_currency_prices"": null } ], + ""recognized_revenue_accounting_code"": ""string"", ""period_units"": ""string"", ""plan_id"": ""string"", ""id"": ""string"", @@ -13697,21 +13789,26 @@ public class HttpExample ""tax_behavior"": ""string"", ""currency"": ""string"", ""metadata"": null, - ""created_at"": ""2024-04-11T04:01:35.090Z"", + ""created_at"": ""2025-01-09T17:18:58.560Z"", ""unit"": ""string"", + ""deferred_revenue_accounting_code"": ""string"", ""usage_aggregator"": ""string"", ""period"": 0 } ], ""provider"": ""string"", + ""billing_type"": ""string"", ""description"": ""string"", + ""external_plan_id"": ""string"", ""id"": ""string"", ""status"": ""string"", ""product_id"": ""string"", ""metadata"": null, - ""created_at"": ""2024-04-11T04:01:35.090Z"", + ""created_at"": ""2025-01-09T17:18:58.560Z"", + ""billing_period"": ""string"", ""unit"": ""string"", - ""updated_at"": ""2024-04-11T04:01:35.090Z"" + ""updated_at"": ""2025-01-09T17:18:58.560Z"", + ""reporting_period"": ""string"" }"; var content = JsonConvert.DeserializeObject(json); await PostAsync(content, url); @@ -13775,15 +13872,20 @@ String jsonPayload = """{ "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13792,21 +13894,26 @@ String jsonPayload = """{ "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" }"""; // Write payload to the request @@ -13845,15 +13952,20 @@ System.out.println(response.toString()); "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13862,21 +13974,26 @@ System.out.println(response.toString()); "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" } ``` @@ -13901,15 +14018,20 @@ System.out.println(response.toString()); "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -13918,21 +14040,26 @@ System.out.println(response.toString()); "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" } ``` @@ -14158,7 +14285,7 @@ System.out.println(response.toString()); |---|---|---|---|---| |provider|query|string|false|none| |includes|query|string|false|none| -|limit|query|integer(int32)|false|A limit on the number of objects to be returned. Limit can range between `1` and `1000` (inclusive). Defaults to `1000`.| +|limit|query|integer(int32)|false|none| > Example responses @@ -14175,15 +14302,20 @@ System.out.println(response.toString()); "divide_by": 0, "round": "string" }, + "currency_prices": null, "provider": "string", + "revenue_recognition_rule": "string", "price_in_decimal": "string", "tiers": [ { + "flat_currency_prices": null, "up_to": null, + "flat_price_in_decimal": "string", "unit_price_in_decimal": "string", - "flat_price_in_decimal": "string" + "unit_currency_prices": null } ], + "recognized_revenue_accounting_code": "string", "period_units": "string", "plan_id": "string", "id": "string", @@ -14192,21 +14324,26 @@ System.out.println(response.toString()); "tax_behavior": "string", "currency": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "unit": "string", + "deferred_revenue_accounting_code": "string", "usage_aggregator": "string", "period": 0 } ], "provider": "string", + "billing_type": "string", "description": "string", + "external_plan_id": "string", "id": "string", "status": "string", "product_id": "string", "metadata": null, - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", + "billing_period": "string", "unit": "string", - "updated_at": "2024-04-11T04:01:35.090Z" + "updated_at": "2025-01-09T17:18:58.560Z", + "reporting_period": "string" } ] ``` @@ -14230,12 +14367,17 @@ Status Code **200** |»» transform_quantity|object|false|none|none| |»»» divide_by|integer(int64)|true|none|none| |»»» round|string|true|none|none| +|»» currency_prices|.map[string,string]|false|none|none| |»» provider|string|false|none|none| +|»» revenue_recognition_rule|string|false|none|none| |»» price_in_decimal|string|false|none|none| |»» tiers|[[MoesifPriceTier](#schemamoesifpricetier)]|false|none|none| -|»»» up_to|util.either[scala.long,string]|true|none|none| -|»»» unit_price_in_decimal|string|false|none|none| +|»»» flat_currency_prices|.map[string,string]|false|none|none| +|»»» up_to|util.either[long,string]|true|none|none| |»»» flat_price_in_decimal|string|false|none|none| +|»»» unit_price_in_decimal|string|false|none|none| +|»»» unit_currency_prices|.map[string,string]|false|none|none| +|»» recognized_revenue_accounting_code|string|false|none|none| |»» period_units|string|false|none|none| |»» plan_id|string|false|none|none| |»» id|string|false|none|none| @@ -14246,17 +14388,22 @@ Status Code **200** |»» metadata|.map[string,string]|false|none|none| |»» created_at|string(date-time)|false|none|none| |»» unit|string|false|none|none| +|»» deferred_revenue_accounting_code|string|false|none|none| |»» usage_aggregator|string|false|none|none| |»» period|integer(int64)|false|none|none| |» provider|string|false|none|none| +|» billing_type|string|false|none|none| |» description|string|false|none|none| +|» external_plan_id|string|false|none|none| |» id|string|false|none|none| |» status|string|false|none|none| |» product_id|string|false|none|none| |» metadata|.map[string,string]|false|none|none| |» created_at|string(date-time)|false|none|none| +|» billing_period|string|false|none|none| |» unit|string|false|none|none| |» updated_at|string(date-time)|false|none|none| +|» reporting_period|string|false|none|none| -

Billing Meters

- -## listMeters +## listMoesifUom - + > Code samples ```shell # You can also use wget -curl -X GET https://api.moesif.com/v1/~/billing/meters \ +curl -X GET https://api.moesif.com/v1/~/billing/catalog/uom?provider=string \ -H 'Accept: application/json' \ -H 'Authorization: Bearer YOUR_MANAGEMENT_API_KEY' @@ -17366,7 +17759,7 @@ const headers = { 'Authorization':'Bearer YOUR_MANAGEMENT_API_KEY' }; -fetch('https://api.moesif.com/v1/~/billing/meters', +fetch('https://api.moesif.com/v1/~/billing/catalog/uom?provider=string', { method: 'GET', @@ -17387,7 +17780,10 @@ headers = { 'Authorization': 'Bearer YOUR_MANAGEMENT_API_KEY' } -r = requests.get('https://api.moesif.com/v1/~/billing/meters', headers = headers) +r = requests.get('https://api.moesif.com/v1/~/billing/catalog/uom', params={ + 'provider': 'string' + +}, headers = headers) print(r.json()) @@ -17402,8 +17798,9 @@ headers = { 'Authorization' => 'Bearer YOUR_MANAGEMENT_API_KEY' } -result = RestClient.get 'https://api.moesif.com/v1/~/billing/meters', +result = RestClient.get 'https://api.moesif.com/v1/~/billing/catalog/uom', params: { + 'provider' => 'string' }, headers: headers @@ -17424,7 +17821,7 @@ $headers = array( $client = new \GuzzleHttp\Client(); try { - $response = $client->request('GET','https://api.moesif.com/v1/~/billing/meters', array( + $response = $client->request('GET','https://api.moesif.com/v1/~/billing/catalog/uom', array( 'headers' => $headers, ) ); @@ -17455,7 +17852,7 @@ func main() { } - req, err := http.NewRequest("GET", "https://api.moesif.com/v1/~/billing/meters") + req, err := http.NewRequest("GET", "https://api.moesif.com/v1/~/billing/catalog/uom") req.Header = headers client := &http.Client{} @@ -17492,7 +17889,7 @@ public class HttpExample /// Make a dummy request public async Task MakeGetRequest() { - string url = "https://api.moesif.com/v1/~/billing/meters"; + string url = "https://api.moesif.com/v1/~/billing/catalog/uom"; var result = await GetAsync(url); } @@ -17524,7 +17921,7 @@ public class HttpExample ``` ```java -URL obj = new URL("https://api.moesif.com/v1/~/billing/meters"); +URL obj = new URL("https://api.moesif.com/v1/~/billing/catalog/uom?provider=string"); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); con.setRequestMethod("GET"); @@ -17543,249 +17940,47 @@ System.out.println(response.toString()); ``` -`GET /~/billing/meters` +`GET /~/billing/catalog/uom` -*List Billing Meters* +*Get available Unit Of Measures Moesif Price* -List Billing Meters +Get the available Unit Of Measures for Moesif Price -> `GET https://api.moesif.com/v1/~/billing/meters` +> `GET https://api.moesif.com/v1/~/billing/catalog/uom` -

Parameters

+

Parameters

|Name|In|Type|Required|Description| |---|---|---|---|---| +|provider|query|string|true|none| +|limit|query|integer(int32)|false|none| > Example responses -> 200 Response - -```json -[ - { - "name": "string", - "billing_plan": { - "provider_slug": "string", - "friendly_name": "string", - "params": { - "usage_rounding_mode": "string", - "webhook_params": { - "reporting": {}, - "channel_ids": [ - null - ], - "custom_plan": {} - }, - "recurly_params": { - "plan": {}, - "add_on": {}, - "add_ons": [ - null - ] - }, - "chargebee_params": { - "item_plan": {}, - "item_price": {}, - "item_prices": [ - null - ], - "reporting": {} - }, - "stripe_params": { - "product": {}, - "price": {}, - "prices": [ - null - ], - "reporting": {} - }, - "zuora_params": { - "plan_id": "string", - "price_id": "string", - "price_ids": [ - null - ] - }, - "usage_multiplier": null - } - }, - "url_query": "string", - "_id": "string", - "slug": "string", - "status": "string", - "modified_at": "2024-04-11T04:01:35.090Z", - "es_query": "string", - "created_at": "2024-04-11T04:01:35.090Z", - "zero_balance_behavior": "string", - "app_id": "string", - "org_id": "string" - } -] -``` - -

Responses

+

Responses

|Status|Meaning|Description|Schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|success|Inline| - -

Response Schema

+|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|success|None| -Status Code **200** - -|Name|Type|Required|Restrictions|Description| -|---|---|---|---|---| -|*anonymous*|[[BillingMeterDocument](#schemabillingmeterdocument)]|false|none|none| -|» name|string|true|none|none| -|» billing_plan|object|true|none|none| -|»» provider_slug|string|true|none|none| -|»» friendly_name|string|false|none|none| -|»» params|object|false|none|none| -|»»» usage_rounding_mode|string|false|none|none| -|»»» webhook_params|object|false|none|none| -|»»»» reporting|object|false|none|none| -|»»»»» report_when|[string]|true|none|none| -|»»»» channel_ids|[string]|true|none|none| -|»»»» custom_plan|object|true|none|none| -|»»»»» plan_id|string|true|none|none| -|»»» recurly_params|object|false|none|none| -|»»»» plan|object|false|none|none| -|»»»»» name|string|false|none|none| -|»»»»» id|string|false|none|none| -|»»»»» code|string|true|none|none| -|»»»» add_on|object|false|none|none| -|»»»»» name|string|false|none|none| -|»»»»» currencies|[[RecurlyCurrencyAmount](#schemarecurlycurrencyamount)]|false|none|none| -|»»»»»» currency|string|true|none|none| -|»»»»»» unit_amount|double|false|none|none| -|»»»»»» unit_amount_decimal|string|false|none|none| -|»»»»» usage_percentage|double|false|none|none| -|»»»»» add_on_type|string|false|none|none| -|»»»»» external_sku|string|false|none|none| -|»»»»» state|string|false|none|none| -|»»»»» tiers|[[RecurlyAddOnTier](#schemarecurlyaddontier)]|false|none|none| -|»»»»»» ending_quantity|integer(int64)|false|none|none| -|»»»»»» currencies|[[RecurlyCurrencyAmount](#schemarecurlycurrencyamount)]|true|none|none| -|»»»»» tier_type|string|false|none|none| -|»»»»» code|string|true|none|none| -|»»»»» plan_id|string|false|none|none| -|»»»»» id|string|false|none|none| -|»»»»» percentage_tiers|[[RecurlyAddOnPercentageTiers](#schemarecurlyaddonpercentagetiers)]|false|none|none| -|»»»»»» tiers|[[RecurlyAddOnPercentageTier](#schemarecurlyaddonpercentagetier)]|false|none|none| -|»»»»»»» ending_amount|double|false|none|none| -|»»»»»»» usage_percent|string|false|none|none| -|»»»»»» currency|string|false|none|none| -|»»»»» usage_type|string|false|none|none| -|»»»»» created_at|string|false|none|none| -|»»»»» usage_calculation_type|string|false|none|none| -|»»»»» updated_at|string|false|none|none| -|»»»»» deleted_at|string|false|none|none| -|»»»» add_ons|[[RecurlyPlanAddOn](#schemarecurlyplanaddon)]|false|none|none| -|»»» chargebee_params|object|false|none|none| -|»»»» item_plan|object|false|none|none| -|»»»»» name|string|false|none|none| -|»»»»» item_family_id|string|false|none|none| -|»»»»» description|string|false|none|none| -|»»»»» usage_calculation|string|false|none|none| -|»»»»» external_name|string|false|none|none| -|»»»»» metered|boolean|false|none|none| -|»»»»» id|string|true|none|none| -|»»»»» status|string|false|none|none| -|»»»»» unit|string|false|none|none| -|»»»»» updated_at|integer(int64)|false|none|none| -|»»»»» archived_at|integer(int64)|false|none|none| -|»»»» item_price|object|false|none|none| -|»»»»» name|string|false|none|none| -|»»»»» item_id|string|false|none|none| -|»»»»» description|string|false|none|none| -|»»»»» price|integer(int64)|false|none|none| -|»»»»» price_in_decimal|string|false|none|none| -|»»»»» external_name|string|false|none|none| -|»»»»» tiers|[[ChargebeeItemPriceTier](#schemachargebeeitempricetier)]|false|none|none| -|»»»»»» starting_unit|integer(int32)|true|none|none| -|»»»»»» ending_unit|integer(int32)|false|none|none| -|»»»»»» price|integer(int32)|true|none|none| -|»»»»» trial_end_action|string|false|none|none| -|»»»»» trial_period|integer(int64)|false|none|none| -|»»»»» id|string|true|none|none| -|»»»»» status|string|false|none|none| -|»»»»» pricing_model|string|false|none|none| -|»»»»» created_at|integer(int64)|false|none|none| -|»»»»» period_unit|string|false|none|none| -|»»»»» updated_at|integer(int64)|false|none|none| -|»»»»» trial_period_unit|string|false|none|none| -|»»»»» item_type|string|false|none|none| -|»»»»» currency_code|string|false|none|none| -|»»»»» archived_at|integer(int64)|false|none|none| -|»»»»» free_quantity|integer(int64)|false|none|none| -|»»»»» period|integer(int64)|false|none|none| -|»»»» item_prices|[[ChargebeeItemPrice](#schemachargebeeitemprice)]|false|none|none| -|»»»» reporting|object|false|none|none| -|»»»»» reporting_period|string|false|none|none| -|»»» stripe_params|object|false|none|none| -|»»»» product|object|false|none|none| -|»»»»» name|string|true|none|none| -|»»»»» description|string|false|none|none| -|»»»»» unit_label|string|false|none|none| -|»»»»» id|string|true|none|none| -|»»»»» usage_type|string|false|none|none| -|»»»» price|object|false|none|none| -|»»»»» tiers_mode|string|false|none|none| -|»»»»» transform_quantity|object|false|none|none| -|»»»»»» divide_by|integer(int64)|false|none|none| -|»»»»»» round|string|false|none|none| -|»»»»» price_id|string|true|none|none| -|»»»»» tiers|[[StripeTier](#schemastripetier)]|false|none|none| -|»»»»»» flat_amount_decimal|string|false|none|none| -|»»»»»» up_to|integer(int64)|false|none|none| -|»»»»»» unit_amount_decimal|string|false|none|none| -|»»»»»» flat_amount|integer(int64)|false|none|none| -|»»»»»» unit_amount|integer(int64)|false|none|none| -|»»»»» recurring|object|false|none|none| -|»»»»»» trial_period_days|integer(int64)|false|none|none| -|»»»»»» interval|string|false|none|none| -|»»»»»» usage_type|string|false|none|none| -|»»»»»» interval_count|integer(int64)|false|none|none| -|»»»»»» aggregate_usage|string|false|none|none| -|»»»»» unit_amount_decimal|string|false|none|none| -|»»»»» price_nickname|string|false|none|none| -|»»»»» currency|string|false|none|none| -|»»»»» billing_scheme|string|false|none|none| -|»»»»» unit_amount|integer(int64)|false|none|none| -|»»»»» created|integer(int64)|false|none|none| -|»»»»» active|boolean|false|none|none| -|»»»» prices|[[StripePrice](#schemastripeprice)]|false|none|none| -|»»»» reporting|object|false|none|none| -|»»» zuora_params|object|false|none|none| -|»»»» plan_id|string|false|none|none| -|»»»» price_id|string|false|none|none| -|»»»» price_ids|[string]|false|none|none| -|»»» usage_multiplier|double|false|none|none| -|» url_query|string|true|none|none| -|» _id|string|false|none|none| -|» slug|string|true|none|none| -|» status|string|true|none|none| -|» modified_at|string(date-time)|true|none|none| -|» es_query|string|true|none|none| -|» created_at|string(date-time)|true|none|none| -|» zero_balance_behavior|string|false|none|none -|» app_id|string|true|none|none| -|» org_id|string|true|none|none| +

Response Schema

-## getMeter +

Billing Meters

- +## listMeters + + > Code samples ```shell # You can also use wget -curl -X GET https://api.moesif.com/v1/~/billing/meters/{meterId} \ +curl -X GET https://api.moesif.com/v1/~/billing/meters \ -H 'Accept: application/json' \ -H 'Authorization: Bearer YOUR_MANAGEMENT_API_KEY' @@ -17799,7 +17994,7 @@ const headers = { 'Authorization':'Bearer YOUR_MANAGEMENT_API_KEY' }; -fetch('https://api.moesif.com/v1/~/billing/meters/{meterId}', +fetch('https://api.moesif.com/v1/~/billing/meters', { method: 'GET', @@ -17820,7 +18015,7 @@ headers = { 'Authorization': 'Bearer YOUR_MANAGEMENT_API_KEY' } -r = requests.get('https://api.moesif.com/v1/~/billing/meters/{meterId}', headers = headers) +r = requests.get('https://api.moesif.com/v1/~/billing/meters', headers = headers) print(r.json()) @@ -17835,7 +18030,442 @@ headers = { 'Authorization' => 'Bearer YOUR_MANAGEMENT_API_KEY' } -result = RestClient.get 'https://api.moesif.com/v1/~/billing/meters/{meterId}', +result = RestClient.get 'https://api.moesif.com/v1/~/billing/meters', + params: { + }, + headers: headers + +p JSON.parse(result) + +``` + +```php + 'application/json', + 'Authorization' => 'Bearer YOUR_MANAGEMENT_API_KEY', +); + +$client = new \GuzzleHttp\Client(); + +try { + $response = $client->request('GET','https://api.moesif.com/v1/~/billing/meters', array( + 'headers' => $headers, + ) + ); + print_r($response->getBody()->getContents()); + } + catch (\GuzzleHttp\Exception\BadResponseException $e) { + // handle exception or api errors. + print_r($e->getMessage()); + } + + // ... + +``` + +```go +package main + +import ( + "bytes" + "net/http" +) + +func main() { + + headers := map[string][]string{ + "Accept": []string{"application/json"}, + "Authorization": []string{"Bearer YOUR_MANAGEMENT_API_KEY"}, + } + + + req, err := http.NewRequest("GET", "https://api.moesif.com/v1/~/billing/meters") + req.Header = headers + + client := &http.Client{} + resp, err := client.Do(req) + // ... +} + +``` + +```csharp +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json; + +/// <> +/// Example of Http Client +/// <> +public class HttpExample +{ + private HttpClient Client { get; set; } + + /// <> + /// Setup http client + /// <> + public HttpExample() + { + Client = new HttpClient(); + } + + /// Make a dummy request + public async Task MakeGetRequest() + { + string url = "https://api.moesif.com/v1/~/billing/meters"; + var result = await GetAsync(url); + } + + /// Performs a GET Request + public async Task GetAsync(string url) + { + //Start the request + HttpResponseMessage response = await Client.GetAsync(url); + + //Validate result + response.EnsureSuccessStatusCode(); + + } + + + + + /// Deserialize object from request response + private async Task DeserializeObject(HttpResponseMessage response) + { + //Read body + string responseBody = await response.Content.ReadAsStringAsync(); + + //Deserialize Body to object + var result = JsonConvert.DeserializeObject(responseBody); + } +} + +``` + +```java +URL obj = new URL("https://api.moesif.com/v1/~/billing/meters"); +HttpURLConnection con = (HttpURLConnection) obj.openConnection(); +con.setRequestMethod("GET"); + +con.setRequestProperty("Accept",'application/json'); +con.setRequestProperty("Authorization",'Bearer YOUR_MANAGEMENT_API_KEY'); + +int responseCode = con.getResponseCode(); +BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); +String inputLine; +StringBuffer response = new StringBuffer(); +while ((inputLine = in.readLine()) != null) { + response.append(inputLine); +} +in.close(); +System.out.println(response.toString()); + +``` + +`GET /~/billing/meters` + +*List Billing Meters* + +List Billing Meters + +> `GET https://api.moesif.com/v1/~/billing/meters` + +

Parameters

+ +|Name|In|Type|Required|Description| +|---|---|---|---|---| + +> Example responses + +> 200 Response + +```json +[ + { + "name": "string", + "billing_plan": { + "provider_slug": "string", + "friendly_name": "string", + "params": { + "usage_rounding_mode": "string", + "webhook_params": { + "reporting": {}, + "channel_ids": [ + null + ], + "custom_plan": {} + }, + "recurly_params": { + "plan": {}, + "add_on": {}, + "add_ons": [ + null + ] + }, + "chargebee_params": { + "item_plan": {}, + "item_price": {}, + "item_prices": [ + null + ], + "reporting": {} + }, + "stripe_params": { + "product": {}, + "price": {}, + "prices": [ + null + ], + "reporting": {} + }, + "zuora_params": { + "plan_id": "string", + "price_id": "string", + "price_ids": [ + null + ] + }, + "usage_multiplier": null + } + }, + "url_query": "string", + "_id": "string", + "slug": "string", + "status": "string", + "modified_at": "2025-01-09T17:18:58.560Z", + "es_query": "string", + "created_at": "2025-01-09T17:18:58.560Z", + "app_id": "string", + "zero_balance_behavior": "string", + "org_id": "string" + } +] +``` + +

Responses

+ +|Status|Meaning|Description|Schema| +|---|---|---|---| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|success|Inline| + +

Response Schema

+ +Status Code **200** + +|Name|Type|Required|Restrictions|Description| +|---|---|---|---|---| +|*anonymous*|[[BillingMeterDocument](#schemabillingmeterdocument)]|false|none|none| +|» name|string|true|none|none| +|» billing_plan|object|true|none|none| +|»» provider_slug|string|true|none|none| +|»» friendly_name|string|false|none|none| +|»» params|object|false|none|none| +|»»» usage_rounding_mode|string|false|none|none| +|»»» webhook_params|object|false|none|none| +|»»»» reporting|object|false|none|none| +|»»»»» report_when|[string]|true|none|none| +|»»»» channel_ids|[string]|true|none|none| +|»»»» custom_plan|object|true|none|none| +|»»»»» plan_id|string|true|none|none| +|»»» recurly_params|object|false|none|none| +|»»»» plan|object|false|none|none| +|»»»»» name|string|false|none|none| +|»»»»» id|string|false|none|none| +|»»»»» code|string|true|none|none| +|»»»» add_on|object|false|none|none| +|»»»»» name|string|false|none|none| +|»»»»» currencies|[[RecurlyCurrencyAmount](#schemarecurlycurrencyamount)]|false|none|none| +|»»»»»» currency|string|true|none|none| +|»»»»»» unit_amount|double|false|none|none| +|»»»»»» unit_amount_decimal|string|false|none|none| +|»»»»» usage_percentage|double|false|none|none| +|»»»»» add_on_type|string|false|none|none| +|»»»»» external_sku|string|false|none|none| +|»»»»» state|string|false|none|none| +|»»»»» tiers|[[RecurlyAddOnTier](#schemarecurlyaddontier)]|false|none|none| +|»»»»»» ending_quantity|integer(int64)|false|none|none| +|»»»»»» currencies|[[RecurlyCurrencyAmount](#schemarecurlycurrencyamount)]|true|none|none| +|»»»»» tier_type|string|false|none|none| +|»»»»» code|string|true|none|none| +|»»»»» plan_id|string|false|none|none| +|»»»»» id|string|false|none|none| +|»»»»» percentage_tiers|[[RecurlyAddOnPercentageTiers](#schemarecurlyaddonpercentagetiers)]|false|none|none| +|»»»»»» tiers|[[RecurlyAddOnPercentageTier](#schemarecurlyaddonpercentagetier)]|false|none|none| +|»»»»»»» ending_amount|double|false|none|none| +|»»»»»»» usage_percent|string|false|none|none| +|»»»»»» currency|string|false|none|none| +|»»»»» usage_type|string|false|none|none| +|»»»»» created_at|string|false|none|none| +|»»»»» usage_calculation_type|string|false|none|none| +|»»»»» updated_at|string|false|none|none| +|»»»»» deleted_at|string|false|none|none| +|»»»» add_ons|[[RecurlyPlanAddOn](#schemarecurlyplanaddon)]|false|none|none| +|»»» chargebee_params|object|false|none|none| +|»»»» item_plan|object|false|none|none| +|»»»»» name|string|false|none|none| +|»»»»» item_family_id|string|false|none|none| +|»»»»» description|string|false|none|none| +|»»»»» usage_calculation|string|false|none|none| +|»»»»» external_name|string|false|none|none| +|»»»»» metered|boolean|false|none|none| +|»»»»» id|string|true|none|none| +|»»»»» status|string|false|none|none| +|»»»»» unit|string|false|none|none| +|»»»»» updated_at|integer(int64)|false|none|none| +|»»»»» archived_at|integer(int64)|false|none|none| +|»»»» item_price|object|false|none|none| +|»»»»» name|string|false|none|none| +|»»»»» item_id|string|false|none|none| +|»»»»» description|string|false|none|none| +|»»»»» price|integer(int64)|false|none|none| +|»»»»» price_in_decimal|string|false|none|none| +|»»»»» external_name|string|false|none|none| +|»»»»» tiers|[[ChargebeeItemPriceTier](#schemachargebeeitempricetier)]|false|none|none| +|»»»»»» starting_unit|integer(int32)|true|none|none| +|»»»»»» ending_unit|integer(int32)|false|none|none| +|»»»»»» price|integer(int32)|true|none|none| +|»»»»» trial_end_action|string|false|none|none| +|»»»»» trial_period|integer(int64)|false|none|none| +|»»»»» id|string|true|none|none| +|»»»»» status|string|false|none|none| +|»»»»» pricing_model|string|false|none|none| +|»»»»» created_at|integer(int64)|false|none|none| +|»»»»» period_unit|string|false|none|none| +|»»»»» updated_at|integer(int64)|false|none|none| +|»»»»» trial_period_unit|string|false|none|none| +|»»»»» item_type|string|false|none|none| +|»»»»» currency_code|string|false|none|none| +|»»»»» archived_at|integer(int64)|false|none|none| +|»»»»» free_quantity|integer(int64)|false|none|none| +|»»»»» period|integer(int64)|false|none|none| +|»»»» item_prices|[[ChargebeeItemPrice](#schemachargebeeitemprice)]|false|none|none| +|»»»» reporting|object|false|none|none| +|»»»»» reporting_period|string|false|none|none| +|»»» stripe_params|object|false|none|none| +|»»»» product|object|false|none|none| +|»»»»» name|string|true|none|none| +|»»»»» description|string|false|none|none| +|»»»»» unit_label|string|false|none|none| +|»»»»» id|string|true|none|none| +|»»»»» usage_type|string|false|none|none| +|»»»» price|object|false|none|none| +|»»»»» tiers_mode|string|false|none|none| +|»»»»» transform_quantity|object|false|none|none| +|»»»»»» divide_by|integer(int64)|false|none|none| +|»»»»»» round|string|false|none|none| +|»»»»» price_id|string|true|none|none| +|»»»»» tiers|[[StripeTier](#schemastripetier)]|false|none|none| +|»»»»»» flat_amount_decimal|string|false|none|none| +|»»»»»» up_to|integer(int64)|false|none|none| +|»»»»»» unit_amount_decimal|string|false|none|none| +|»»»»»» flat_amount|integer(int64)|false|none|none| +|»»»»»» unit_amount|integer(int64)|false|none|none| +|»»»»» recurring|object|false|none|none| +|»»»»»» meter_event_name|string|false|none|none| +|»»»»»» trial_period_days|integer(int64)|false|none|none| +|»»»»»» interval|string|false|none|none| +|»»»»»» usage_type|string|false|none|none| +|»»»»»» interval_count|integer(int64)|false|none|none| +|»»»»»» aggregate_usage|string|false|none|none| +|»»»»»» meter_unsupported|boolean|false|none|none| +|»»»»» unit_amount_decimal|string|false|none|none| +|»»»»» price_nickname|string|false|none|none| +|»»»»» currency|string|false|none|none| +|»»»»» billing_scheme|string|false|none|none| +|»»»»» unit_amount|integer(int64)|false|none|none| +|»»»»» created|integer(int64)|false|none|none| +|»»»»» active|boolean|false|none|none| +|»»»» prices|[[StripePrice](#schemastripeprice)]|false|none|none| +|»»»» reporting|object|false|none|none| +|»»» zuora_params|object|false|none|none| +|»»»» plan_id|string|false|none|none| +|»»»» price_id|string|false|none|none| +|»»»» price_ids|[string]|false|none|none| +|»»» usage_multiplier|double|false|none|none| +|» url_query|string|true|none|none| +|» _id|string|false|none|none| +|» slug|string|true|none|none| +|» status|string|true|none|none| +|» modified_at|string(date-time)|true|none|none| +|» es_query|string|true|none|none| +|» created_at|string(date-time)|true|none|none| +|» app_id|string|true|none|none| +|» zero_balance_behavior|string|false|none|none| +|» org_id|string|true|none|none| + + + +## getMeter + + + +> Code samples + +```shell +# You can also use wget +curl -X GET https://api.moesif.com/v1/~/billing/meters/{meterId} \ + -H 'Accept: application/json' \ + -H 'Authorization: Bearer YOUR_MANAGEMENT_API_KEY' + +``` + +```javascript--nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json', + 'Authorization':'Bearer YOUR_MANAGEMENT_API_KEY' +}; + +fetch('https://api.moesif.com/v1/~/billing/meters/{meterId}', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + +```python +import requests +headers = { + 'Accept': 'application/json', + 'Authorization': 'Bearer YOUR_MANAGEMENT_API_KEY' +} + +r = requests.get('https://api.moesif.com/v1/~/billing/meters/{meterId}', headers = headers) + +print(r.json()) + +``` + +```ruby +require 'rest-client' +require 'json' + +headers = { + 'Accept' => 'application/json', + 'Authorization' => 'Bearer YOUR_MANAGEMENT_API_KEY' +} + +result = RestClient.get 'https://api.moesif.com/v1/~/billing/meters/{meterId}', params: { }, headers: headers @@ -18129,10 +18759,11 @@ Get Billing Meter by id "_id": "string", "slug": "string", "status": "string", - "modified_at": "2024-04-11T04:01:35.090Z", + "modified_at": "2025-01-09T17:18:58.560Z", "es_query": "string", - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "app_id": "string", + "zero_balance_behavior": "string", "org_id": "string" } ``` @@ -18585,10 +19216,18 @@ Query audit history of billing reports to external billing providers |company_id|query|string|false|none| |provider|query|string|false|none| |subscription_id|query|string|false|none| +|subscription_item_id|query|string|false|none| +|plan_id|query|string|false|none| +|price_id|query|string|false|none| +|currency|query|string|false|none| |success|query|boolean|false|none| |status_code|query|integer(int32)|false|none| |error_code|query|string|false|none| |`type`|query|string|false|none| +|status|query|array[string]|false|none| +|amount|query|number(double)|false|none| +|meter_metric|query|integer(int32)|false|none| +|report_total_usage|query|integer(int32)|false|none| > Example responses @@ -18604,21 +19243,24 @@ Query audit history of billing reports to external billing providers "available_balance": 0.1 }, "company_id": "string", + "transform_quantity": null, "success": true, "provider": "string", "report_version": 0, - "usage_end_time": "2024-04-11T04:01:35.090Z", + "usage_end_time": "2025-01-09T17:18:58.560Z", "usage": { "invoice": { - "period_start": "2024-04-11T04:01:35.090Z", - "period_end": "2024-04-11T04:01:35.090Z", + "period_start": "2025-01-09T17:18:58.560Z", + "period_end": "2025-01-09T17:18:58.560Z", "id": "string" }, "aggregator": "string" }, "_id": "string", - "meter_usage": 0, - "last_success_time": "2024-04-11T04:01:35.090Z", + "price_id": "string", + "price_in_decimal": 0.1, + "meter_usage": 0.1, + "last_success_time": "2025-01-09T17:18:58.560Z", "beginning_balance": { "sequence_id": 0, "current_balance": 0.1, @@ -18627,7 +19269,8 @@ Query audit history of billing reports to external billing providers }, "billing_meter_id": "string", "amount": 0.1, - "usage_start_time": "2024-04-11T04:01:35.090Z", + "plan_id": "string", + "usage_start_time": "2025-01-09T17:18:58.560Z", "status": "string", "provider_requests": [ { @@ -18636,11 +19279,11 @@ Query audit history of billing reports to external billing providers "job_id": "string", "error_message": "string", "error_code": "string", - "request_time": "2024-04-11T04:01:35.090Z" + "request_time": "2025-01-09T17:18:58.560Z" } ], "currency": "string", - "report_total_usage": 0, + "report_total_usage": 0.1, "channel_requests": [ { "channel_id": "string", @@ -18652,25 +19295,28 @@ Query audit history of billing reports to external billing providers "job_id": "string", "error_message": "string", "error_code": "string", - "request_time": "2024-04-11T04:01:35.090Z" + "request_time": "2025-01-09T17:18:58.560Z" } ] } ], - "created_at": "2024-04-11T04:01:35.090Z", + "created_at": "2025-01-09T17:18:58.560Z", "app_id": "string", "subscription_id": "string", - "subscription_period_start": "2024-04-11T04:01:35.090Z", + "subscription_period_start": "2025-01-09T17:18:58.560Z", "balance_changes": [ { - "amount": 0.1 + "amount": 0.1, + "grant_id": "string" } ], "type": "string", - "updated_at": "2024-04-11T04:01:35.090Z", + "updated_at": "2025-01-09T17:18:58.560Z", + "subscription_item_id": "string", + "zero_balance_behavior": "string", "org_id": "string", - "subscription_period_end": "2024-04-11T04:01:35.090Z", - "meter_metric": 0 + "subscription_period_end": "2025-01-09T17:18:58.560Z", + "meter_metric": 0.1 } ] ``` @@ -18694,6 +19340,7 @@ Status Code **200** |»» pending_activity|number(double)|true|none|none| |»» available_balance|number(double)|true|none|none| |» company_id|string|true|none|none| +|» transform_quantity|com.moesif.billing.helpers.subscriptions.moesiftransformquantity|false|none|none| |» success|boolean|true|none|none| |» provider|string|true|none|none| |» report_version|integer(int32)|false|none|none| @@ -18705,11 +19352,14 @@ Status Code **200** |»»» id|string|true|none|none| |»» aggregator|string|false|none|none| |» _id|string|false|none|none| -|» meter_usage|integer(int64)|true|none|none| +|» price_id|string|false|none|none| +|» price_in_decimal|number(double)|false|none|none| +|» meter_usage|number(double)|true|none|none| |» last_success_time|string(date-time)|false|none|none| |» beginning_balance|object|false|none|none| |» billing_meter_id|string|true|none|none| |» amount|number(double)|false|none|none| +|» plan_id|string|false|none|none| |» usage_start_time|string(date-time)|true|none|none| |» status|string|false|none|none| |» provider_requests|[[ProviderRequest](#schemaproviderrequest)]|true|none|none| @@ -18720,7 +19370,7 @@ Status Code **200** |»» error_code|string|true|none|none| |»» request_time|string(date-time)|true|none|none| |» currency|string|false|none|none| -|» report_total_usage|integer(int64)|true|none|none| +|» report_total_usage|number(double)|true|none|none| |» channel_requests|[[ChannelRequest](#schemachannelrequest)]|false|none|none| |»» channel_id|string|true|none|none| |»» channel_name|string|true|none|none| @@ -18731,11 +19381,14 @@ Status Code **200** |» subscription_period_start|string(date-time)|false|none|none| |» balance_changes|[[BalanceChange](#schemabalancechange)]|false|none|none| |»» amount|number(double)|true|none|none| +|»» grant_id|string|false|none|none| |» type|string|false|none|none| |» updated_at|string(date-time)|false|none|none| +|» subscription_item_id|string|false|none|none| +|» zero_balance_behavior|string|false|none|none| |» org_id|string|true|none|none| |» subscription_period_end|string(date-time)|false|none|none| -|» meter_metric|integer(int64)|true|none|none| +|» meter_metric|number(double)|true|none|none|