Real-time price & stock check
POST /product-availability
This endpoint lets you do a real-time price and stock check of any product in the Agora index.
Headers
Header
Type
Description
Authorization
string
Bearer token.
Request body
{
variantId:123,
productUrl:“https://store.com/product/product-slug”
}
Response
{
success: true,
message: ‘Variant retrieved successfully’,
data: {
variantId: variant.id,
available: variant.available,
price: variant.price,
inventory_quantity: variant.inventory_quantity,
compare_at_price: variant.compare_at_price,
}
Last updated
Was this helpful?