This endpoint helps the customer in the absence of a product's stock. A customer may need to subscribe to that product availability subscription list in order to be notified once the stock is available for purchase again. The product availability endpoint has been implemented in the Product Availability Web Component, and it's ready for use. Payload#
ProductAvailabilityPayload
The product id that the customer is subscribed to.
The customer country code.
Response#
product.productAvailability.success
Usage#
To enable the customer to subscribe to a product and get notification once its stock is available, the developer can use the method availabilitySubscribe()
to receive the customer's contact information and add them to the product availability subscription list.Logged User#
Guest (Mobile)#
Guest (Email)#
Events#
This endpoint may trigger two events, the onAvailabilitySubscribed and onAvailabilitySubscribedFailed events.onAvailabilitySubscribed#
This event is triggered when subscribing a customer to a product availability subscription list is done without having any errors coming back from the backend.onAvailabilitySubscribedFailed#
This event is triggered when subscribing a customer to a product availability subscription list is not completed and an error has occurred. Modified at 2025-03-04 12:54:02