Listing data
What a listing page shows is yours to design. What its price says is not: it must be exactly what checkout will charge. This page is the contract between the two.
Your call
- Bundles. Whether a listing page shows the bundles a listing offers — and how.
- Type and category labels. An eyebrow, a chip, or nothing; Mecsto’s words or your own.
Mecsto’s own themes make these calls differently from each other. The data is always there; showing it is a design decision.
Not your call: the price
Every number on a listing page comes from the listing view, never from your own arithmetic. The price lives at pricing.effective_price_minor; pricing.model says how to present it.
| The listing | Where the price goes | Call to action |
|---|---|---|
| Any priced listing | effective_price_minor, with list_price_minor struck when discount_minor is set | checkout_url |
model: "free" | “Free”, with list_price_minor struck when above zero | checkout_url |
A zero price whose model is set and is not free (or bundle) | No price. Never “Free”. | A contact link — checkout refuses a zero price (invalid_price) |
A zero price with no model (an older payload) | No price. Never “Free”. | checkout_url — checkout knows the real model |
model: "custom" | pricing.display_text — the merchant’s own words | A contact link. Never checkout. |
model: "bundle" | A starting price (“From ₹X”) — it is the cheapest bundle | checkout_url (checkout asks for a bundle), or each bundle’s own link |
A subscription (subscription_summary is set) — never a bundle listing | subscription_summary.price_label, verbatim | checkout_url + &mode=subscription |
Never. Claim “Free” for a zero price unless pricing.model is free. A “Contact for pricing” listing also stores zero — showing it as free promises something checkout will refuse.
Subscriptions
Quote price_label as given. A cadence is “every N units” — a frequency (daily, weekly, monthly, yearly) and an interval N (subscription_interval) — and the label already carries both: a listing billed every 3 months reads “₹300/3 months”, never “₹300/month”, with cadence_label “Every 3 months”. A cadence with no calendar unit reads “/cycle”. Never build the period yourself from the frequency.
subscription_summary.modeonly: the subscription price is the price.both: the customer chooses one-time or subscription at checkout — offer both.- Any listing can gain or lose a subscription at any time. The merchant turns subscriptions on or off, or switches between subscription-only and both, on any listing. Decide from
subscription_summaryon every render — present ornull— never from the listing’s kind, its slug or an earlier render. - Existing subscribers keep their terms. A subscription bills from the price and cadence the customer signed up on.
subscription_summaryis what a new subscriber gets today — not what existing subscribers pay — and a customer’s own subscriptions are shown by the platform’s account pages, not from the listing. - Bundle and Pay-after listings are never sold as a subscription. When
pricing.modelisbundleorpay_after, show no subscribe button and never add&mode=subscription— even if an older listing still carries asubscription_summary. A subscription is charged before each cycle, never after the service.
Bundles
listing_detail.bundles lists the bundles a listing offers, in the order checkout shows them ([] when there are none). If you show them, link each one to its own checkout_url — checkout then opens with that bundle picked.
{
"title": "Five sessions",
"type": "standard",
"purchasable": true,
"price_label": "₹1,999",
"mrp_label": "₹2,499",
"perks": ["Session notes", "Recording"],
"subscription": null,
"checkout_url": "/checkout?listing_id=…&bundle_id=…"
}- Strike
mrp_labelonly when it is set. subscriptionisnull: Bundle listings are never sold as a subscription, so a bundle has no subscribe button.checkout_url: null(orpurchasable: false) means a contact link and no buy price beside it. A bundle can carry aprice_labeland still not be buyable online;price_labelis null only on an on-request bundle.- Use the links you are given. The only parameters a theme adds to a checkout link are
modeandscheduled_at.
Type and category labels
kind is the machine value (bookable_service, digital_product, project); type_label is the wording Mecsto uses for it. categories carries each category’s name, and its slug for a /category/[slug] link. Use any of them, your own words, or nothing.
Bookable services
- A single-event listing (the availability answer carries an
eventblock) opens its picker on the event’s week, not today’s. - Never offer, or page to, a time past the availability answer’s
booking_window_cap_at, or more than 61 days out (AVAILABILITY_MAX_WINDOW_DAYS − 1). Checkout fetches no further, so a later pick is silently dropped. - Pass a picked slot on to checkout as
&scheduled_at=.
In the SDK
getListing() maps these onto the Listing view model as bundles, typeLabel, categories and categoryNames (theme SDK 0.2.32 and later), and a listing’s subscription as subscriptionMode (one_time | subscription | both) and subscriptionPriceLabel. listingPriceDisplay(listing) applies the price, Free, custom and no-price rows above, and availabilityEvent() reads a single event. The Theme MCP’s get_entity_schema("listing_detail") returns the same rules as rules. See view models and the money path.