There are three essential attributes related to product availability you can use in your data feed: availability, availability_rank, and availability_rank_text.
1. Availability
The availability attribute is a binary indicator that informs whether a product is orderable or not.
It uses a simple numerical representation:
1 = product is orderable/available
0 = product is not orderable/available
2. Availability Rank
The availability_rank attribute is a numeric value strictly within the range of <1, 15>.
Its primary purpose is to encode the availability level of a product and help better distinguish variations in availability. A higher availability_rank value indicates that the product is less available.
Example:
Your store uses four availability statuses - "In stock", "Ships within 7 days", "Ships within 14 days" and "Out of stock". Recommended encoding scheme for availability_rank is as follows:
"In stock" -
availability_rank: 1"Ships within 7 days" -
availability_rank: 3"Ships within 14 days" -
availability_rank: 7"Out of stock" -
availability_rank: 15
3. Availability Rank Text
The availability_rank_text attribute complements the availability_rank by providing the exact availability text that should appear in the product tile.
This attribute ensures that the customer sees a clear and informative representation of the product's availability status.
For example, if the product is expected to ship within 14 days, the corresponding availability_rank_text should display "Ships within 14 days."