ShopEazydevelopers
API referenceMerchant API BetaBookings

Free times for a service, or departures for a tour

Beta
Credentials
  • OAuth access token
Scopes
orders:read
GET
/v1/merchant/stores/{storeId}/products/{productId}/availability

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.

Authorization

merchantOAuth orders:read
headerAuthorizationBearer <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

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

productId*string

An item id (any kind, not only physical products).

Query Parameters

date?string
from?string
to?string

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/products/<productId>/availability' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "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      }    ]  }}