Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Product
  • Overview
  • Languages
  • Notify
  • Event
  • Storage
  • Configuration
  • Forms
  • Helpers
  • Auth
    • Login
    • Logout
    • Verify
    • Resend
    • Register
    • Refresh
  • Cart
    • Latest
    • Details
    • Quick Add
    • Add Item
    • Delete Item
    • Delete Image
    • Add Coupon
    • Remove Coupon
    • Get Upload Image
    • Get Quick Order Settings
    • Create Quick Order
    • Order Status
    • Get Current Cart Id
    • Price Quote
  • Wishlist
    • Add
    • Remove
    • Toggle
  • Loyalty
    • Get Program
    • Exchange
    • Reset
  • Comment
    • Add Comment
    • Fetch
    • Get Page Comments
    • Get Product Comments
  • Profile
    • Update profile
    • Update contact
  • Product
    • Get price
    • Product availability
    • Categories
    • Offer details
    • Search products
    • Get Gift Details
    • Add Gift To Cart
    • Upload Gift Image
    • Get Product Details
    • Fetch
    • Fetch Options
    • Size Guides
  • Order
    • Create cart from order
    • Cancel
    • Send invoice
    • Show order
  • Booking
    • Add
  • Rating
    • Order
    • Store
    • Products
    • Shipping
  • Currency
    • Change
    • List
  • Component
    • Reviews
    • Menus
  1. Product

Product availability

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. 
TIP
The product availability endpoint has been implemented in the Product Availability Web Component, and it's ready for use.

Payload#

ProductAvailabilityPayload
id
number 
required
The product id that the customer is subscribed to.
email
string 
optional
The customer email.
country_code
string 
optional
The customer country code.
mobile
string 
optional
The customer mobile.

Response#

Success
Error
product.productAvailability.success
status
enum<string> 
required
Response number
Allowed values:
200201202
success
string 
required
Response flag

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
Previous
Get price
Next
Categories