Skip to content

Add support to record usage via Kaui #594

@reshmabidikar

Description

@reshmabidikar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions