Free times for a service, or departures for a tour
- Credentials
- OAuth access token
- Scopes
orders:read
Dates are YYYY-MM-DD in SA time. Give date, or from and to; with none, the next 14 days.
Access: OAuth scope orders:read; not write-gated.
merchantOAuth orders:readAuthorizationBearer <token>OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.
Scope: orders:read
storeId*stringA store the person can reach. Any other id answers 404, never 403.
productId*stringAn item id (any kind, not only physical products).
date?stringfrom?stringto?stringOK
application/json- response
data*curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/products/<productId>/availability' \ -H 'Authorization: Bearer <access_token>'{ "data": { "kind": "service", "listing": "string", "onlineBooking": true, "minutes": 0, "placesPerTime": 0, "from": "string", "to": "string", "times": [ { "at": 0, "free": 0 } ], "days": 0, "departures": [ { "at": 0, "returnsOn": "string", "seatsLeft": 0, "booked": 0, "belowMinimum": true } ] }}Confirm or decline a booking request POST
The customer is emailed the answer and the note. Confirming does not raise an order: use `bookAppointment` for that. Only a pending request can be decided. Access: OAuth scope `bookings:write`; write-gated by the subscription.
The bookings (lines with a time) on an order GET
Access: OAuth scope `bookings:write`; not write-gated.