All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getDetailedInvoiceUsingGET | GET /users-web/api/v3/billing/invoice/{service}/{year}/{month} | Get invoice details |
listAvailablePlansUsingGET1 | GET /users-web/api/v3/billing/availablePlans | Get available plans |
updatePlanUsingPUT | PUT /users-web/api/v3/billing/info/{appId} | Update plan for an app |
InvoiceResponse getDetailedInvoiceUsingGET(service, year, month)
Get invoice details
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.BillingApi();
let service = "service_example"; // String | service
let year = 56; // Number | year
let month = 56; // Number | month
apiInstance.getDetailedInvoiceUsingGET(service, year, month).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service | String | service | |
year | Number | year | |
month | Number | month |
- Content-Type: Not defined
- Accept: application/json
PlansResponse listAvailablePlansUsingGET1(opts)
Get available plans
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.BillingApi();
let opts = {
'integrationId': 789, // Number | integrationId
'appType': "appType_example" // String | appType
};
apiInstance.listAvailablePlansUsingGET1(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
integrationId | Number | integrationId | [optional] |
appType | String | appType | [optional] |
- Content-Type: Not defined
- Accept: application/json
UpdatePlanResponse updatePlanUsingPUT(body, appId)
Update plan for an app
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.BillingApi();
let body = new SematextApiClientJavascript.BillingInfo(); // BillingInfo | dto
let appId = 789; // Number | appId
apiInstance.updatePlanUsingPUT(body, appId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | BillingInfo | dto | |
appId | Number | appId |
- Content-Type: application/json
- Accept: application/json