跳至內容

AWS Marketplace SaaS subscription "License Deprovisioned - Manufacturer" event order

0

I am working on integrating a SaaS product with AWS Marketplace. I am working with the EventBridge events from the aws.agreement-marketplace source rather than the SNS notifications to monitor the users' subscriptions. However, I found contradicting information regarding the arrival of the "License Deprovisioned - Manufacturer" event. In the Pricing for SaaS Subscriptions, the order is the following:

A customer can unsubscribe from your SaaS subscription product through the AWS Management Console. Key points of the SaaS subscription ending process include the following:

  1. Your default Amazon EventBridge bus will receive a purchase agreement ended event for that customer.
  2. You have one hour to meter any remaining usage for the customer.
  3. After this hour, you receive a license deprovisioned - manufacturer event. At this point, you can no longer send metering records for this customer.

It’s up to you to decide how you want to disable functionality in your SaaS product for unsubscribed customers. For example, your product might complete the customer's existing work but prevent them from creating work. You might want to display a message to the customer that their usage has been disabled. Customers can resubscribe to your product through AWS Marketplace.

This says that the bus first receives the "Purchase Agreement Ended - Proposer", 1 hour passes for metering the remaining usage, and then it receives the "License deprovisioned - Manufacturer" event.

However, this other documentation page shows different information: Managing SaaS subscription events with Amazon EventBridge.

License Deprovisioned - Manufacturer | The buyer's entitlement to a product has ended. | For usage-based products, this event marks the start of a 1-hour final reporting window. Sellers should collect and report any unreported usage using the BatchMeterUsage API. After this window closes, customer entitlements are fully revoked and usage reporting is no longer accepted. | Manufacturer only

And:

For products with a usage-based billing component, AWS Marketplace gives sellers one hour to submit final usage records for customers whose entitlements have ended. After this period, the BatchMeterUsage API rejects reported usage and you cannot bill the customer.

AWS Marketplace sends the License Deprovisioned - Manufacturer event to signal the start of the final reporting window. Sellers have one hour after receiving this event to collect any unreported usage for the customer and report it using the BatchMeterUsage API.

After the one-hour window closes, AWS Marketplace fully revokes the customer's entitlements and no longer accepts usage reporting.

This says that the "License Deprovisioned - Manufacturer" event actually marks the start of the hour to meter, not the end.

Which of these two is it?

Based on my experience with the product on "Limited" visibility, I have seen that on user cancellation, the "Purchase Agreement Ended - Proposer" event is received, and a few seconds or minutes later, the "License Deprovisioned - Manufacturer" event is received too. However, I do not know if this is how it normally is or if this only occurs because of the "Limited" visibility and that the product is in a "testing" mode.

1 個回答
1

Based on the AWS Marketplace documentation, the "License Deprovisioned - Manufacturer" event marks the start of the one-hour final reporting window, not the end.

Here's the correct sequence of events when a customer unsubscribes:

  1. Your EventBridge bus receives a "Purchase Agreement Ended - Proposer" event
  2. Shortly after, you receive the "License Deprovisioned - Manufacturer" event
  3. Upon receiving the "License Deprovisioned - Manufacturer" event, you have one hour to collect and report any unreported usage using the BatchMeterUsage API
  4. After this one-hour window closes, customer entitlements are fully revoked and usage reporting is no longer accepted

The behavior you're observing in your testing environment—where the "Purchase Agreement Ended - Proposer" event arrives first, followed by the "License Deprovisioned - Manufacturer" event a few seconds or minutes later—aligns with the correct implementation. This is the expected behavior and is not specific to "Limited" visibility or testing mode.

The key point to remember is that the "License Deprovisioned - Manufacturer" event signals when you should begin your final usage collection and reporting process. You must complete all usage reporting within one hour of receiving this event, as the BatchMeterUsage API will reject any usage records submitted after this window closes.

For usage-based products, it's critical to monitor for the "License Deprovisioned - Manufacturer" event and immediately begin collecting and submitting any outstanding usage records to ensure proper billing for the customer's final usage period.
Sources
Managing SaaS subscription events with Amazon EventBridge - AWS Marketplace
Enhance Agreement Notifications in AWS Marketplace with Amazon EventBridge | AWS Marketplace

已回答 3 個月前
專家
已審閱 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。