Skip to content

Pages your shop needs

View .mdllms.txt

mongrl sends the emails (sign-in links, confirmations, order and message notices), and their links point at your storefront. Build these pages, or the links lead nowhere.

In the console, Settings → General → Shop: the marketplace’s team sets the shop’s address (e.g. https://www.example.com). Who emails come from is set with Resend, under Integrations. Until the address is set, mongrl can’t send emailed links: requesting one gives 409.

mongrl suggests a path for each page. Build them there, or tell mongrl where yours are: Settings → General → Shop pages in the console (a page left empty uses the suggestion). {locale} is the user’s language, lower-case (sv, en): their locale, or the marketplace’s default. A moved page can leave {locale} out, but keeps its {id} and {slug}.

Page Suggested path Linked from What it does
sign_in /{locale}/auth/sign-in?token=… Sign-in links, welcome emails POST /v1/sessions/from-link with the token, store the session, go on to the account.
verify_email /{locale}/auth/verify-email?token=… Sign-up, “send it again” POST /v1/email-verifications with the token, then say it’s confirmed.
reset_password /{locale}/auth/reset-password?token=… Password reset emails Ask for a new password, POST /v1/password-resets/confirm, then sign in.
order /{locale}/orders/{id} Order emails to buyers and sellers Sign in if needed, then GET /v1/me/orders/{id}: state, timeline, buttons from available_transitions, delivery booking, and the buyer’s receipt.
checkout /{locale}/orders/checkout/{id} The receipt for several pieces bought together Sign in if needed, then GET /v1/me/checkouts/{id}: each order, and one receipt for them all.
orders /{locale}/account/orders The buyer’s orders: GET /v1/me/orders.
listing /{locale}/listings/{slug}/{id} Saved search and price drop emails The listing.
my_listing /{locale}/account/listings/{id} Valuation offers, denials, listings put on sale Sign in if needed, then GET /v1/me/listings/{id}: the offer to accept or answer, the reason it was denied, or that it’s on sale.
conversation /{locale}/messages/{id} New message emails Sign in if needed, then the conversation.
saved_searches /{locale}/account#saved-searches Saved search emails Where the user manages their saved searches.
email_settings /{locale}/account#emails Price drop emails Which emails the user gets.

Guests are buyers too: checking out as a guest makes an account for their email, so the sign-in link brings them back to their orders like anyone else.

Buyers download a PDF receipt from the order and checkout pages. Fetch it from your server and pass it on (Content-Type: application/pdf):

GET /v1/me/orders/{id}/receipt signed in, the order's buyer
GET /v1/me/checkouts/{id}/receipt signed in, everything one payment paid for
GET /v1/orders/{id}/receipt?token=… a guest, with the guest_token from checkout
GET /v1/checkouts/{id}/receipt?token=…

It’s 409 until something on it is paid; a canceled order isn’t on it. Who it’s from (company, organisation and VAT number, address) and a note for the bottom, such as how VAT is handled, are set in Settings → Payments → Receipts.

Tokens in links work once. If the page loads twice (a mail scanner, a double click), the second try gets 422: say the link has been used and offer a new one.

If your shop doesn’t use language prefixes

Section titled “If your shop doesn’t use language prefixes”

Move its pages to paths without {locale}, or redirect: a shop in one language can send /en/… to /… and keep the query string.

Shop, search, listing, brand and designer pages, checkout, the account, selling: their addresses are up to you. Keep them stable, because listing URLs get shared and indexed.