Skip to main content

Product Availability API

The Availability API lets you check real-time availability for products before creating bookings.

Why Check Availability?โ€‹

Before adding products to a booking, verify they're available:

  • Check inventory levels and existing reservations
  • Prevent overbooking
  • Display accurate availability on your website

API Endpointsโ€‹

MethodEndpointDescriptionScope Required
GET/v1/availability/productsCheck product availabilityproducts:read
POST/v1/availability/products/bulkBulk check multiple productsproducts:read

Product Availabilityโ€‹

Products can have different inventory tracking modes:

ModeDescriptionAvailability Check
noneNo inventory trackingAlways available (returns 999)
groupTrack total quantityChecks against total inventory
itemTrack individual itemsChecks specific item availability

What Affects Availabilityโ€‹

  • Existing bookings for the date range
  • Items in workshop (being repaired/maintained)
  • Scheduled downtime (maintenance periods)
  • Buffer times between rentals

On Hand vs Bookableโ€‹

Every product row reports two quantities:

FieldMeaning
available_quantityUnits physically on hand for the window. Show this when you want a person to see real stock
bookable_quantityUnits that may actually be sold. Read this โ€” or the available flag, which is computed from it โ€” to decide whether a booking will be accepted

The two match for most products. They differ only when a product is set to keep selling when sold out: the shop has told EquipDash it can source a few extra units at short notice, so bookable_quantity adds whatever is left of that allowance on top of the units on hand. Bookings taken past stock are accepted and flagged, and each rental line records how many units it sold short in shortage_quantity.

Common Use Casesโ€‹

Pre-Booking Validationโ€‹

Before creating a booking, check all items are available:

curl -X POST "https://app.equipdash.com/api/v1/availability/products/bulk" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{"product_id": 1, "quantity": 2},
{"product_id": 5, "variation_id": 12, "quantity": 1}
],
"start_date": "2026-02-15T09:00:00Z",
"end_date": "2026-02-17T17:00:00Z"
}'

Real-Time Inventory Displayโ€‹

Show available quantities on your website:

curl "https://app.equipdash.com/api/v1/availability/products?product_id=1&start_date=2026-02-15&end_date=2026-02-17" \
-H "Authorization: Bearer YOUR_API_KEY"

Check Specific Variationโ€‹

Check availability for a product variation:

curl "https://app.equipdash.com/api/v1/availability/products?product_id=1&variation_id=5&quantity=2&start_date=2026-02-15&end_date=2026-02-17" \
-H "Authorization: Bearer YOUR_API_KEY"