This page provides the list of events and associated payload for the Subscription microservice.

List of Events

SL.#NameDescriptionPublish LocationRouting KeyDurabilityPayload Type
1Create SubscriptionThis event is triggered when a new subscription is created and a customer has successfully subscribed it via storefront.Topic:ecommsubscription.createtrueSubscriptionEventPayload
2Update SubscriptionThis event is triggered when a subscription is modified by the customer via storefront for updating shipping, billing, and/or payment information.Topic:ecommsubscription.updatetrueSubscriptionEventPayload
3Cancel SubscriptionThis event is triggered when a subscription is canceled by the customer.Topic:ecommsubscription.canceltrueSubscriptionEventPayload
4Create InstanceThis event is triggered when a subscription instance is created successfully.Topic:ecommsubscription.instance.createtrueSubscriptionEventPayload
5Scheduled InstanceThis event is triggered when a subscription instance is scheduled successfully.Topic:ecommsubscription.instance.scheduletrueSubscriptionEventPayload
6Frozen InstanceThis event is triggered when a subscription instance is frozen.Topic:ecommsubscription.instance.frozentrueSubscriptionEventPayload
7Completed InstanceThis event is triggered when a subscription instance is completed successfully.Topic:ecommsubscription.instance.completedtrueSubscriptionEventPayload
8Failed InstanceThis event is triggered when a subscription instance is failed; for example, failure while processing the payment.Topic:ecommsubscription.instance.failedtrueSubscriptionEventPayload

Payload Model

Below is the payload for the Subscription microservice events:

SubscriptionEventPayload

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
subscriptionIdlongIndicates the identifier of the subscription, which is created, updated, or deleted.123
accountIdstringIndicates the unique ID of the account.1
userIdstringSpecifies the identifier of the user, who accesses the subscription.123
subscriptionStatusstringSpecifies the status of the project, such as CREATED, SCHEDULED, ON-HOLD, CANCELED, DELETE, RESUME, or COMPLETED.CREATED
instanceIdlongIndicates the unique ID of the instance.1
instanceStatusstringSpecifies the status of the project, such as DAILY, WEEKLY, MONTHLY, or YEARLY.WEEKLY

 

Revision History
2019-09-24 | Ananthi – Page created and the content updated.