POST
/
usage
TypeScript
import { Autumn as autumn } from 'autumn-js';

await autumn.usage({
  customer_id: 'user_123',
  feature_id: 'seats',
  value: 10
});

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
feature_id
string
required

The feature ID to set usage for

customer_id
string
required

Your unique identifier for the customer

value
number
required

The usage value to set