A new screen needs to be created in Kaui to support recording usage. Basically, the Kaui implementation for the https://apidocs.killbill.io/usage#record-usage-for-a-subscription API.
Requirements
- Add a new screen accessible from the subscription details page (e.g., “Record Usage” button). This should be displayed only for usage-based subscriptions
- Form fields should include:
- Unit type (string, required)
- Amount (integer, required)
- Date/time of usage (ISO 8601, required)
- Validate inputs before submission (e.g., amount must be positive, date must be valid).
- On submission, call the Kill Bill API record-usage-for-a-subscription.
- Display success/failure messages based on API response.
- Log errors for troubleshooting.
A new screen needs to be created in Kaui to support recording usage. Basically, the Kaui implementation for the https://apidocs.killbill.io/usage#record-usage-for-a-subscription API.
Requirements