Availability and Booking Conflicts
Pyra automatically tracks inventory availability and prevents double-bookings. This page explains how the availability system works.
How availability works
Every inventory item has a quantity — the total number of units you own. When an order is confirmed for specific dates, Pyra reserves units from that quantity.
Example: You have 3 generators. A customer books 2 generators for June 10-15. For those dates, only 1 generator remains available. Other customers can still book that 1 remaining generator, but not a 4th.
Real-time availability on your storefront
When customers browse your storefront:
- They select their desired rental dates
- Pyra checks which items have available units for those dates
- Items with no available units show as unavailable or are hidden
- The checkout process re-validates availability before confirming the order
This check happens in real time — if another customer books the last unit while someone is browsing, the storefront reflects the change immediately.
When availability is reserved
Inventory is reserved when an order is confirmed, not when it's placed. This means:
- Pending orders do not block availability — you can review them before committing
- Confirmed orders reserve the exact quantity for the exact dates
- Completed and Cancelled orders release reserved inventory back to the available pool (terminal states)
Confirm orders promptly to avoid conflicts. If two customers order the last unit for the same dates, the first order you confirm gets the reservation.
Handling conflicts
A conflict occurs when there aren't enough units to fulfill an order. This can happen if:
- Two orders are pending for the same item and dates, and you confirm both
- You reduce an item's quantity below what's already booked
When a conflict is detected, Pyra alerts you and prevents confirmation until the conflict is resolved. You can resolve conflicts by:
- Adjusting the order dates
- Reducing the order quantity
- Cancelling one of the conflicting orders
- Increasing your inventory quantity (if you have more units)
Availability and the calendar
The Scheduling page shows a calendar view of all bookings. Use it to:
- See at a glance which items are booked and when
- Identify gaps in your schedule for new bookings
- Spot potential conflicts before they happen
Availability rules
You can control availability beyond simple quantity tracking:
- Blackout dates — block specific dates when items are unavailable (maintenance, holidays)
- Minimum rental period — require a minimum number of days per booking
- Lead time — require orders to be placed a certain number of days in advance
These are configured through business rules and apply automatically at checkout.