Handling Unsubscribe Notifications

Marketplace customers can unsubscribe at arbitrary times. When this occurs, AWS sends notification via an SNS topic. From that point Amberflo only has 1 hour to submit any remaining billable amounts. You must subscribe to this topic and do the following upon receipt of a unsubscribe-pending message:

  1. Suspend any active billable operations for this customer.
  2. Report any remaining usage to be included in the final bill.
  3. Within 30 minutes of the unsubscribe notification, deactivate the customer in Amberflo via the API.

When the customer is deactivated, Amberflo will calculate the final invoice and submit any remaining billable amount to AWS Marketplace. (This process takes about 20 minutes, which is why the cancelation must be done within 30 minutes.)