import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const response = await client.v1.subscriptions.usage.sync('x');
console.log(response.data);{
"data": {
"triggered": true
}
}Triggers a usage sync for a subscription, reporting current usage to the billing provider.
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const response = await client.v1.subscriptions.usage.sync('x');
console.log(response.data);{
"data": {
"triggered": true
}
}Server API Key
The unique identifier of the entity
1 - 255Whether the usage sync was triggered.
Response object
Result of triggering a subscription usage sync.
Show child attributes