Organization
org.info()
org.info(options?: RequiplyRequestOptions): Promise<OrgInfoResponse>
This public storefront resource can use a publishable key.
const organization = await requiply.org.info();
console.log(organization.name, organization.currency);
The response includes organization identity, locale, timezone, working hours, delivery types, payment methods, and locations. Description, email, website code, logo URLs, street, and address line can be null.
workingHours lists the seven days of the week with day, startTime and endTime (HH:mm in timezone), and isWorkingDay. Pickups and returns must fall inside these hours, so a booking form can offer only valid times instead of waiting for a working_hours refusal. An organization that has not set its working hours is open around the clock.
const { workingHours, timezone } = await requiply.org.info();
const saturday = workingHours.find((day) => day.day === 'saturday');
if (saturday?.isWorkingDay) {
console.log(`Saturday ${saturday.startTime}-${saturday.endTime} (${timezone})`);
}
org.summary()
org.summary(options?: RequiplyRequestOptions): Promise<OrgSummaryResponse>
This administrative summary requires a secret key on a trusted server.
const summary = await requiply.org.summary();
console.log(summary.stats.totalLifetimeBookings);
The response includes organization details, locations, supported delivery and payment methods, and operational counts. Tier, dates, description, email, website code, logos, and location address fields can be null.
supportedPaymentMethods currently lists payOnPickup and the connected monobank, liqpay, and wayforpay integrations, but not Stripe, even when it is connected. bookings.create() accepts stripe all the same.