developers

Docs Themes Listing data

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

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 listingWhere the price goesCall to action
Any priced listingeffective_price_minor, with list_price_minor struck when discount_minor is setcheckout_url
model: "free"“Free”, with list_price_minor struck when above zerocheckout_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 wordsA contact link. Never checkout.
model: "bundle"A starting price (“From ₹X”) — it is the cheapest bundlecheckout_url (checkout asks for a bundle), or each bundle’s own link
A subscription (subscription_summary is set) — never a bundle listingsubscription_summary.price_label, verbatimcheckout_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.

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.

listing_detail.bundles[0]
{
  "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=…"
}

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

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.