Skip to main content
GET
Check whether your shop can run try-ons right now. Cached for 2 minutes on both client and server.
On JavaScript, the @genlook/storefront SDK is the recommended integration: it calls this endpoint for you, along with the rest of the try-on flow.
With the SDK:
SDK

Request

No parameters. The shop is identified by the publishable key.

Response

boolean
required
true if try-ons are available, false if quota is exhausted.
string
required
The Genlook store ID for the shop.
This endpoint fails closed. If the check errors, or if no billing plan can be resolved for the shop, it returns allowed: false. Treat allowed: false as “do not offer a try-on”. The Create Try-On endpoint performs the definitive quota check and will return QUOTA_EXCEEDED if needed.

Current plan

Return the shop’s current billing plan name. The shop is identified by the publishable key. Cached for 1 hour on the server.
string
required
The plan name for the shop. Defaults to free when no paid plan is resolved.