Usage
Adjust a Usage Event
Corrects a usage event you already recorded, by its event_id. Send the actual amount the customer used (not a delta) and Metrifox handles the difference:
- Less than recorded → the difference is refunded.
- More than recorded → the difference is charged.
- Leave both amounts out → the event is undone completely.
Sending the same value again does nothing, so retries are safe.
POST
Usage endpoints are served from https://api-meter.metrifox.com. Other API calls stay on https://api.metrifox.com.For example, if you recorded 5 image generations but the customer only used 4, send the actual amount and the difference is refunded.
Authorizations
Body
application/json
The unique customer identifier in your application.
The event_id of the original usage event to adjust.
The true quantity the customer used. Omit to leave quantity unchanged.
The true credits the customer used (prepaid features). Leave out to keep credits unchanged.
Optional human-readable note stored on the adjustment for audit.
Response
Adjustment applied (or a no-op if already at the requested amount).

