unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4k stars 469 forks source link

Invoices Page Implementation #506

Closed CITGuru closed 11 months ago

CITGuru commented 11 months ago

Preliminary Checks

Description

This might need more discussion and time. We should consider adding a new invoice page to track all invoices for past payments. Each invoice can be downloaded and should contain the usage for the month.

Also, consider adding overages when the workspace uses more than the assigned limit.

perkinsjr commented 11 months ago

We don't have any invoices that is handled by Stripe. The usage can be found in the workspace settings.

A user can download their invoices whenever they want through stripe with all the usage they had for that month.

Overages are soft caps and we notify the user via email. On the pro plan you are charged based on usage once you hit the included amount.

Not sure what you are looking for?

CITGuru commented 11 months ago

We don't have any invoices that is handled by Stripe. The usage can be found in the workspace settings.

The page only has 30 days usage which is fair enough. However, if you want to be able to view a particular month usage and how much was charged it's not possible.

A user can download their invoices whenever they want through Stripe with all the usage they had for that month.

Stripe invoice only contains the amount paid. However this invoice should show usage + overage charges.

For instance, I should be able to see the amount I got charged for exceeding the verification limit and how much was charged.

An example is a Vercel invoice below:

Screenshot 2023-11-15 at 20 22 12
chronark commented 11 months ago

Is this more about invoices or about aggregated usage past 30 days?

CITGuru commented 11 months ago

More on Invoice.

Ability to view aggregated usage more than 30days should be a different thing entirely

On Wed, Nov 15, 2023, 8:55 PM Andreas Thomas @.***> wrote:

Is this more about invoices or about aggregated usage past 30 days?

— Reply to this email directly, view it on GitHub https://github.com/unkeyed/unkey/issues/506#issuecomment-1813172759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5WNRXCYMZ3GRWKQ4QMGUTYEUM4LAVCNFSM6AAAAAA7M7FKWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGE3TENZVHE . You are receiving this because you authored the thread.Message ID: @.***>

perkinsjr commented 11 months ago

We don't have any invoices that is handled by Stripe. The usage can be found in the workspace settings.

The page only has 30 days usage which is fair enough. However, if you want to be able to view a particular month usage and how much was charged it's not possible.

A user can download their invoices whenever they want through Stripe with all the usage they had for that month.

Stripe invoice only contains the amount paid. However this invoice should show usage + overage charges.

For instance, I should be able to see the amount I got charged for exceeding the verification limit and how much was charged.

An example is a Vercel invoice below:

Screenshot 2023-11-15 at 20 22 12

Our stripe invoices show all the details. You can go back as far as you need and it has the entire usage amounts. Feels like we would be doing double work. What is the use case here?

To be clear our invoices look like this for an end user

image

CITGuru commented 11 months ago

Seems this was closed, I think the current implementation can work. Might need upgrade in the future