The usage to log to Outseta. SubscriptionAddOn
can be located in the Subscription
model for an Account
.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',SubscriptionAddOn.Subscription.Uid'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The response body if response status OK, or response body with validation errors if response status 400.
Get all usage:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.billing.usage.getAll();
console.log(response);
Get all usage for a particular account:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const Account = {
Uid: 'jW7GJVWq'
};
const response = await client.billing.usage.getAll({ Account });
console.log(response);
Get all usage for a particular account.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',SubscriptionAddOn.Subscription.Uid'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The number of results returned by the API.
For pagination; returns (limit) results after this value.
The response body if response status OK.
Generated using TypeDoc
Record usage to an account's subscription.
Response If the server returns a non-"OK" status, the whole response object will be thrown.