Skip to content

Usage API #14

@vody

Description

@vody

As a publisher, I want to be able to use a usage based pricing models "Metered" (https://stripe.com/docs/billing/subscriptions/metered) so that will allow me to enable "pay just for used" for my customers
image

Feature: Usage API
  As a publisher, I want to be able to use a usage based pricing models so that will allow me to enable "pay just for used" for my customers 

  Scenario: Report usage
    Given product installed into environment which use a metered pricing
    When product application use a Usage API to increment a usage
    Then reported usage is recorded in Stripe against customer product subscription

  Scenario: Report usage for non-metered pricing product
    Given product installed into environment which not use a metered pricing
    When product application use a Usage API to increment a usage
    Then system will not failed, but return a response to application that this will not be done

  Scenario: Delayed usage report
    Given product installed into environment which use a metered pricing
    When product application use a Usage API to increment a usage and identified that this should be done not in a user real time
    Then reported usage will be recorded in Stripe against customer product subscription not in a user runtime (in background or on signout)

AB#7762

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions