46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
---
|
|
title: "Balances Update"
|
|
openapi: "openapi POST /v1/balances.update"
|
|
---
|
|
|
|
import { DynamicParamField } from "/components/dynamic-param-field.jsx";
|
|
import { DynamicResponseField } from "/components/dynamic-response-field.jsx";
|
|
import { DynamicResponseExample } from "/components/dynamic-response-example.jsx";
|
|
|
|
### Body Parameters
|
|
|
|
<DynamicParamField body="customer_id" type="string" required>
|
|
The ID of the customer.
|
|
</DynamicParamField>
|
|
|
|
<DynamicParamField body="entity_id" type="string">
|
|
The ID of the entity to update balance for (if using entity balances).
|
|
</DynamicParamField>
|
|
|
|
<DynamicParamField body="feature_id" type="string" required>
|
|
The ID of the feature to update balance for.
|
|
</DynamicParamField>
|
|
|
|
<DynamicParamField body="current_balance" type="number">
|
|
The new balance value to set.
|
|
</DynamicParamField>
|
|
|
|
<DynamicParamField body="interval" type="'one_off' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'semi_annual' | 'year'">
|
|
The interval to update balance for.
|
|
</DynamicParamField>
|
|
|
|
<DynamicParamField body="granted_balance" type="number" />
|
|
|
|
<DynamicParamField body="usage" type="number" />
|
|
|
|
<DynamicParamField body="customer_entitlement_id" type="string" />
|
|
|
|
<DynamicParamField body="next_reset_at" type="number" />
|
|
|
|
<DynamicParamField body="add_to_balance" type="number" />
|
|
|
|
|
|
### Response
|
|
|
|
<DynamicResponseField name="success" type="boolean" />
|