Availability¶
These placeholders provide product availability information. They are available when using the Amazon Creators API with Offers V2 format.
Note
These placeholders require the Creators API to be configured and enabled. When using PA API 5.0, these placeholders may be empty or unavailable.
{{ AvailabilityType }}¶
Type: String
Description: The stock status of the product.
Usage:
{{ AvailabilityType }}
Possible Values:
IN_STOCK- Product is available and in stockIN_STOCK_SCARCE- Product is in stock but limited quantityOUT_OF_STOCK- Product is currently out of stockPREORDER- Product is available for pre-orderBACKORDER- Product is on backorder
Example:
{% if AvailabilityType == 'IN_STOCK' %}
<span class="stock-status available">In Stock</span>
{% elseif AvailabilityType == 'IN_STOCK_SCARCE' %}
<span class="stock-status limited">Only a few left!</span>
{% elseif AvailabilityType == 'OUT_OF_STOCK' %}
<span class="stock-status unavailable">Out of Stock</span>
{% endif %}
{{ AvailabilityMaxOrderQuantity }}¶
Type: Integer
Description: The maximum quantity a customer can order per purchase.
Usage:
{{ AvailabilityMaxOrderQuantity }}
Example Values:
10- Maximum 10 items per order1- Limit one per customerEmpty if no limit
Example:
{% if AvailabilityMaxOrderQuantity %}
<p class="order-limit">Limit {{ AvailabilityMaxOrderQuantity }} per customer</p>
{% endif %}
{{ AvailabilityMinOrderQuantity }}¶
Type: Integer
Description: The minimum quantity required per order.
Usage:
{{ AvailabilityMinOrderQuantity }}
Example Values:
2- Minimum 2 items required1- No minimum (standard)Empty if no minimum requirement
Example:
{% if AvailabilityMinOrderQuantity > 1 %}
<p class="min-order">Minimum order: {{ AvailabilityMinOrderQuantity }} items</p>
{% endif %}
{{ ViolatesMAP }}¶
Type: Boolean
Description: Indicates whether the current price violates the Minimum Advertised Price (MAP) policy. When true, the actual price should not be displayed publicly, and the product page should be linked instead.
Usage:
{{ ViolatesMAP }}
Possible Values:
true- Price violates MAP policyfalse- Price can be displayed normallyEmpty if information is not available
Example:
{% if ViolatesMAP %}
<p class="price-hidden">See price in cart</p>
<a href="{{ AmazonUrl }}">View on Amazon</a>
{% else %}
<p class="price">{{ OffersAutoPriceFormattedPrice }}</p>
{% endif %}
Note
What is MAP? Minimum Advertised Price is a policy that prevents retailers from advertising prices below a manufacturer-set minimum. When a price violates MAP, Amazon doesn’t allow the price to be shown publicly, but the customer can see it in their cart.
{{ DebugOffersVersion }}¶
Type: String
Description: Shows which Offers data format was used to retrieve product pricing information. Useful for debugging and verifying your API configuration.
Usage:
{{ DebugOffersVersion }}
Possible Values:
V1- Traditional Offers format (PA API 5.0)V2- Enhanced Offers format (Creators API)
Example:
{# For debugging purposes only #}
{% if DebugOffersVersion %}
<!-- Offers Version: {{ DebugOffersVersion }} -->
{% endif %}
Note
This placeholder is primarily intended for debugging. You typically don’t need to display this information to your visitors.