Full API reference: https://api.mailoo.app/docs/v1
Use a Market integration to manage a minimal product catalog in the Mailoo dashboard and expose read-only JSON to your storefront or BFF. Every external route requires ``X-API-Key``; there is no anonymous access.
For dashboard CSV bulk editing (export -> edit -> upload -> preview/apply), see market-catalog-csv{.interpreted-text role="doc"}.
Overview
- Auth: Header ``X-API-Key`` on every request.
- Scope: RESTRICTED keys need ``market.external-read`` in
allowedOperationsforGET(FULL keys also work). Catalog writes use a separate scope, ``market.external-write`` (see Catalog writes below). - Routing:
GET {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId}/…--- same path shape as dashboard resources under/projects/{uid}/integrations/{id}/market/…, without theprojectsprefix. - Ownership: The API key must belong to the project owner;
projectUidandintegrationIdmust refer to an ACTIVE integration of type MARKET. - Visibility: Products have status
DRAFT/PUBLISHED/ARCHIVED. External API list/detail/variants return only products with statusPUBLISHED. Dashboard APIs can still access all statuses for owners. - IndexNOW: Optional
config.indexNowon the Market integration --- Mailoo POSTs product identifiers to your notify URL on publish/change; you submit URLs to IndexNOW (indexnow-notify{.interpreted-text role="doc"}). Content rows exposeindexNowStatus. - Product fields (dashboard): canonical product and variant fields are stored in
attributes; optional per-language overlays live inlocales.<code>(nameandattributeson each entry).nameis a Base type attribute on product records;skuis a required Base type attribute marked as variant axis (stored on variants, used byeffective-pricelookup). - Product JSON (external list/detail/variants only): responses do not include a
localesobject.attributeson the product and on each variant are already merged for a single language: base values from the dashboard record plus the overlay for the resolved locale (per-localenamemaps onto thenameattribute key). Resolved locale = optional querylocale=<code>if present and valid (e.g.en,de,pt-br); otherwise ``defaultCatalogLocale`` on the MARKET integration'sconfig(set in the dashboard Edit integration screen); if unset, ``en``. Invalidlocalequery returns 400. - Product fields (external): after merge, the same rules as dashboard apply to the flattened
attributes(includingname/skusemantics above). - Stock (AMS-33): Optional per-product
stockTracked(defaultfalse). Whentrue, setzeroStockPolicy(MAKE_TO_ORDERorDISCONTINUED);MAKE_TO_ORDERrequiresleadTimeDays≥ 1. Sellable-unitonHandlives on the product when there are no variants, otherwise on every variant. Catalog list/detail include server-computedavailability(status:untracked|in_stock|make_to_order|discontinued, pluspurchasable,onHand,leadTimeDays). Composition components and quote requests do not change stock. - ID format: MARKET resource IDs in request params and response payloads accept and return both
cuidandcuid2values (for example tag/product/price-list/supplier IDs). - Price kinds: See Price kinds and effective price below. For which list price to use, integrators should configure and send the price kind key (query ``kind`` on ``GET .../effective-price``). The price kind id (CUID) is internal (and appears in some JSON); it is not the main external identifier for that choice.
- Integrator root flag: Tag objects include
useAsRoot. Integrators can treat tags withuseAsRoot = trueas top-level catalog roots (multiple tags allowed), even whenparentTagIdis not null.
Tag icons: Tag objects may include iconMediaId. To fetch image bytes, use the Images integration with a key that allows ``image.external-read`` (see images{.interpreted-text role="doc"}).
Mailoo dashboard rendering note: useAsRoot is intended for external integrator menu logic. Mailoo's own dashboard tag tree rendering and ordering remain unchanged and still follow the existing hierarchy rules.
BFF environment variables
Align with the Connection panel on the integration page (same names as below). Typical server-side variables:
MAILOO_MARKET_API--- API base URL (e.g.https://api.mailoo.appor your dev host), no trailing slash.MAILOO_MARKET_API_KEY--- API key with ``market.external-read`` (or FULL).MAILOO_MARKET_PROJECT_UID--- Project UID.MAILOO_MARKET_INTEGRATION_ID--- Market integration id (CUID).
Endpoints (all GET, all require X-API-Key)
Replace {baseUrl}, {projectUid}, {integrationId}, and path parameters as needed.
GET {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId}/types--- Product types and attributes.GET …/products--- All published products (variants and tag links included; merged locale, nolocales). Optional query ``locale`` (see Overview).GET …/products/{productId}--- One product (same contract).GET …/products/{productId}/variants--- Variants only; each row has mergedattributesand nolocales. Optional ``locale``.GET …/products/{productId}/price-range--- For one published product: effective unit price per variant (minAmount/maxAmountare equal for a single price kind) plus optional product-wide row and an aggregate min/max across those numbers. Query: ``kind`` or ``priceKindId`` (same rules as ``effective-price``), optional ``measurementUnitId``, ``at`` (ISO datetime), optional ``currency`` (ISO 4217, three letters). Currency resolution: if ``currency`` is set, only lines in that currency participate; if omitted, uses integration ``config.defaultCurrency`` when set; otherwise the response currency is taken from the first matching price line when walking active lists in chronological order (``effectiveAt`` ascending) and lines in ``id`` order. The response ``currency`` field echoes the resolved code even when there are no matching lines (then amounts are null).GET …/tagsandGET …/tags/{tagId}--- Catalog tags.GET …/price-kinds--- Price kinds (keys foreffective-pricekind).GET …/price-listsandGET …/price-lists/{priceListId}--- Internal price lists. A single list may hold multiple currencies on the same kind/product/variant/unit slot (dedupe includes currency).GET …/products/{productId}/prices--- All price list lines for one product.GET …/catalog-config--- Non-secret storefront defaults:{ "defaultCurrency": string | null, "defaultCatalogLocale": string | null }from MARKET integration config. SDK:getCatalogConfig.GET …/wholesale-price-list/contacts--- Resolved wholesale price-list header contacts string (same formatting as admin export):config.contactsSource→ CONTACT_FORM public phone/email by id, elseconfig.priceList.contacts, elsenull. Optional query ``locale`` (same rules as catalog). Responsedata:{ "contacts": string | null }. SDK:getWholesalePriceListContacts. Prefer fetching contacts here and passing them intorenderPriceListXlsxrather than teaching the xlsx generator to call the API.GET …/effective-price--- Resolve unit price for a product and a price kind. Use query ``kind=<priceKindKey>`` (see Price kinds and effective price). Optional:productId/variantId/measurementUnitId/at/quantity(ISO datetime forat). Optional ``currency`` (single ISO 4217): filters the single-price merge; when omitted, uses ``config.defaultCurrency`` if set, else legacy last-overlay (any currency). Optional ``currencies``:currencies=*returns every currency that has a line on this slot;currencies=USD,AMD(max 4 ISO 4217 codes) returns the intersection with set lines (request order; missing codes omitted, not null). ``currency`` and ``currencies`` are mutually exclusive (400). Multi mode responsedatais{ "prices": [ … ] }with the same per-price shape as the single-pricedata. Each currency merges independently. (Query ``priceKindId`` is accepted for internal or BFF callers; external catalog code should use ``kind``.) Every price object includesavailability. Whenquantityis set and the unit tracks stock, the response also includesqtyFromStock,qtyToMake,onHand, andleadTimeDays. If policy isDISCONTINUEDandquantity>onHand, the API returns 409 witherror: "stock_insufficient"anddetails: { onHand, requested }(quantity is never silently reduced). Withoutquantity, a discontinued unit still returns 200 (price display). Fractionalquantitywith stock tracking enabled returns 400.GET …/suppliers--- Suppliers.GET …/suppliers/{supplierId}/products--- Supplier products.GET …/suppliers/{supplierId}/price-listsandGET …/suppliers/{supplierId}/price-lists/{supplierPriceListId}--- Supplier price lists.GET …/units--- Measurement units.GET …/packagings--- Packagings.GET …/packaging-equivalences--- Packaging equivalences.
Responses use { success: true, data: … }. For external product list/detail/variants, data matches the merged-locale shape above (no locales). Authenticated dashboard GET /api/v1/projects/…/market/products… still returns the full editor shape including locales.
Catalog writes (API key or MCP)
Dashboard catalog writes still live under /api/v1/projects/{uid}/integrations/{id}/market/… (Bearer JWT). The same service layer is exposed on the external prefix for ``X-API-Key`` and MCP agent tokens:
- Scope: RESTRICTED keys need ``market.external-write`` (FULL keys pass automatically). Read and write are separate: a read-only key cannot write, and a write key does not grant catalog
GETunless it also has ``market.external-read``. - Enabling a key: There is no migration of existing RESTRICTED keys and keys cannot be edited in place. Create a new key and tick Market catalog (external write) (optionally also Market catalog (external read)). A FULL key does not need to be recreated.
- Auth:
X-API-KeyorAuthorization: BearerMCP token. Missing key → 401; wrong scope → 403. - Ownership: Same as reads --- the key's owner (or MCP membership) plus
projectUid/integrationIdfor an ACTIVEMARKETintegration. Writes never cross into another project or integration. - Empty values: Required string attributes such as product
nameand variantskureject blank/whitespace values and are not stored.
Write endpoints (same {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId} prefix):
POST …/types,PATCH …/types/{typeId},DELETE …/types/{typeId}--- create/update/delete a product type (base types cannot be deleted).POST …/types/{typeId}/attributes,PATCH …/types/{typeId}/attributes/{attributeId},DELETE …/types/{typeId}/attributes/{attributeId}--- create/update/delete a type attribute.POST …/products,PATCH …/products/{productId},DELETE …/products/{productId}--- create/update/delete a product.POST …/products/{productId}/variants,PATCH …/products/{productId}/variants/{variantId}, andDELETE …/products/{productId}/variants/{variantId}--- create/update/delete a variant. Deleting a variant keeps the parent product and its id (the usual storefront URL key); products may have zero variants afterward. Delete returns 409 when the variant appears on market order lines for the integration, or when it is referenced as a composition component of another variant.- Attach media on product create/update with
imageMediaIdsor extendedimages({ mediaId, variantIds? }[]; mutually exclusive), pluspreviewMediaIdandmodel3dMediaId(integration-scoped media). - Client helper:
createMailooMarketClient(config).deleteProductVariant(productId, variantId)in@mailoo/market/server(returns{ ok, status }; never throws on network failure).
Variant composition (multipacks / sets)
Optional components on create/update variant extend the existing ProductVariant + Packaging model (no separate bundle/pricing engine). Price stays on the variant (PriceListLine); composition is display + order snapshot only.
- Write body:
components?: { productId, variantId?, quantity, packagingId? }[](max 50).quantityinteger ≥ 1.variantIdrequired when the component product has variants; forbidden when it has none.packagingIdoptional; must belong to the same MARKET integration. Per-edge only --- never inherited from a child variant's own composition. - Semantics: create omit → empty composition; update omit → preserve; array → full replace (array order →
sortOrder);[]→ clear. - Validation (400) with path like
components[2].variantId: foreign ids, duplicates, self-reference, cycles (message includes path),quantity< 1. - Catalog read:
variants[].components= direct edges only (localized names).partOflists other products' variants that include this product (excludes same-product multipacks). EachpartOfrow includesvariantId(parent set/pack variant) andcomponentVariantId(this product's variant in that set, ornullwhen the component has no variant) so storefronts can filter by selected size. External read:partOfparents arePUBLISHEDonly. There is no pack/setkindenum; a single component withquantity === 1is a neutral composition row. - Orders: one line per ordered variant;
variantSnapshot+ recursivecomponentsSnapshot(each node carries its own edgepackaging). No component order lines. - CSV: composition is not imported or exported via catalog CSV --- edit in the dashboard variant editor, API, or MCP.
OpenAPI: https://api.mailoo.app/docs/v1 (tag Market (external write)). MCP tools: manage_market_types, manage_market_tags, manage_market_units, manage_market_prices, and manage_market_products.
Units, packagings, and equivalences
POST …/units,PATCH …/units/{unitId},DELETE …/units/{unitId}--- measurement units.POST …/packagings,PATCH …/packagings/{packagingId},DELETE …/packagings/{packagingId}--- SIMPLE/COMPOSED packagings.POST …/packaging-equivalences,DELETE …/packaging-equivalences/{equivalenceId}--- equivalences (same base dimension).
SDK: createUnit, updateUnit, deleteUnit, createPackaging, updatePackaging, deletePackaging, createPackagingEquivalence, deletePackagingEquivalence.
Price kinds, lists, and product prices
POST …/price-kinds,PATCH …/price-kinds/{priceKindId},DELETE …/price-kinds/{priceKindId}--- create/update/delete a price kind (keyforeffective-pricekind). Delete fails with 400 while any price list line still references the kind.POST …/price-lists--- create a list with lines (priceKindId,productId, optionalvariantId,measurementUnitId,amount, optionalcurrency).PATCH …/price-lists/{priceListId}--- set or cleararchivedAt/endsAt.DELETE …/price-lists/{priceListId}--- delete when no order lines use the list's combinations; otherwise 409 (archive or setendsAtinstead).POST …/products/{productId}/prices--- create a product-scoped list; response is the product's aggregated price lines.
SDK (@mailoo/market): listPriceKinds, createPriceKind, updatePriceKind, deletePriceKind, createPriceList, updatePriceListLifecycle, deletePriceList, listProductPrices, createProductPriceList.
Tags and translations
Create tags with POST …/tags (201); update them with PATCH …/tags/{tagId} (200); delete with DELETE …/tags/{tagId} (200). Writes require the same market.external-write permission and project/integration ownership checks as product writes. Delete removes ProductToTag rows by cascade and returns 400 when the tag still has child tags.
Supported fields: slug, name, parentTagId (nullable), useAsRoot, sortOrder, iconMediaId (nullable), shortDescription, fullDescription, and locales. Markdown descriptions and translations use the same normalization as dashboard tags. Parent tags and icon media must belong to the same project/integration; hierarchy cycles are rejected. Upload image media separately, then pass its integration-scoped id.
PATCH changes only supplied fields. null clears optional fields; locales replaces the translation object rather than deep-merging it. Duplicate slugs return 400, missing/foreign tags return 404. GET routes retain their existing locale resolution.
{
"slug": "sinks",
"name": "Sinks",
"parentTagId": null,
"useAsRoot": true,
"sortOrder": 10,
"shortDescription": "Handcrafted sinks",
"fullDescription": "**Sinks** for your home.",
"locales": {
"en": { "name": "Sinks", "shortDescription": "Handcrafted sinks" },
"ru": { "name": "Раковины", "shortDescription": "Раковины ручной работы" },
"hy": { "name": "Լվացարաններ", "shortDescription": "Ձեռագործ լվացարաններ" }
}
}
Assign tags with the existing PATCH …/products/{productId} body {"tagIds": ["<tagId>", "<existingTagId>"]}. The array replaces membership: include unrelated existing tags that must remain.
Price kinds and effective price
- In the database, a price kind has a stable string ``key`` (unique per MARKET integration, e.g.
base) and an internal ``id`` (CUID). The key is what you should configure in env / CMS ("usebasefor list prices"). - Shop default currency: MARKET integration ``config.defaultCurrency`` (ISO 4217, optional). Set via dashboard / manage settings. Storefronts read it from ``GET .../catalog-config``.
- Resolving a price from external or storefront code: call ``GET {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId}/effective-price`` with ``kind=<key>`` and ``productId=`` (and optional ``variantId``, ``measurementUnitId``, ``at``, ``currency``, ``currencies``). This is the supported contract: ``kind`` is the price kind key, not the CUID. All active price lists with
effectiveAt <= atare merged in chronological order (oldest first, then newer lists overlay): for a given ``variantId``, the newest variant-specific line for that SKU wins; if no list after that SKU line redefines that SKU, older SKU lines remain in effect. If there is no SKU line at all, the newest product-wide line (``variantId`` null) applies. When ``variantId`` is omitted, only product-wide rows are considered (newest wins). Prices are stored explicitly per currency (no FX conversion). Single-price mode: optional ``currency`` filters the merge; when omitted, ``config.defaultCurrency`` applies if set. With ``currencies`` set, each currency is merged on its own lines so a newer USD list does not overlay AMD. - ``priceKindId`` in the query string is only for callers that already store CUIDs (Mailoo tools, BFFs mirroring internal ids). Do not treat the query parameter
priceKindIdas the main external API for "which list price to use" --- use ``kind`` instead. - Responses may include ``priceKindId`` and ``priceKindKey`` (and similar on price list lines). You may read ``priceKindKey``; ``priceKindId`` in responses is for correlation and is not something public frontend JS needs to hard-code.
- Price list lifecycle (read paths):
GET …/price-listsand list payloads include ``archivedAt`` and ``endsAt`` when set. ``GET .../effective-price``, ``GET .../products/{productId}/price-range``, and order checkout pricing only consider lists that are not archived and, if ``endsAt`` is set, only when the query ``at`` instant is strictly before ``endsAt``. Dashboard callers may PATCH / DELETE internal price lists under ``/api/v1/projects/.../market/price-lists/{priceListId}`` (Bearer); delete is rejected with 409 when any line's dimensions appear on an existing order line for that integration.
Product attribute value types (/types)
GET …/types returns type attributes with:
valueType:STRING,NUMBER,BOOLEAN,ENUM,SELECT,MD_TEXToptions:string[] | null
SELECT is the strict list-based type. For SELECT, options is a non-empty list of allowed values, and product/variant attribute values must match one of them exactly.
``MD_TEXT`` and images: Any product or variant attribute with valueType: MD_TEXT may embed Mailoo-hosted images using markdown image syntax (for example ). On write, the dashboard normalizes Mailoo image URLs inside those fields; product and variant JSON from GET responses also normalizes nested strings so integrators see the canonical public embed shape (…/api/v1/images/public/content?id=<mediaId>). To fetch image bytes from that URL, use the Images API with a key that allows ``image.external-read`` (see images{.interpreted-text role="doc"}).
``MD_TEXT`` and HTML (external catalog GET only): On external routes GET …/products, GET …/products/{productId}, and GET …/products/{productId}/variants (with X-API-Key and a published product), the API adds a parallel string field <attributeKey>Html next to each Markdown value for attributes declared as MD_TEXT on any of the product's linked types, on the merged product attributes and each variant's merged attributes (there is no separate locales tree in the response). Use the original key for the Markdown source (like blog content) and …Html for server-rendered HTML (like blog htmlContent). Dashboard GET /projects/…/market/… responses omit these *Html fields to avoid extra work when editing.
Product gallery and listing image: Each product may have an ordered ``images`` array (objects with id, mediaId, sortOrder, canonical ``url``, and ``variantIds``) plus ``previewMediaId`` and ``previewImageUrl``. The preview is the image recommended for catalog cards / product lists; if ``previewMediaId`` is null, integrators may fall back to the first gallery image. ``variantIds`` is additive (v1): empty = the image applies to all variants; non-empty = OR match (any listed variant). Storefront filtering is integrator-side; catalog cover stays ``previewMediaId``.
Gallery write: send legacy ``imageMediaIds`` (ordered media ids) or extended ``images``: [{ "mediaId": "…", "variantIds": ["…"] }] --- not both (400). On update, imageMediaIds preserves existing variantIds for media that remain; newly added media get []. Extended images is a full replace. Listed variantIds must belong to the product (400 otherwise). On create, non-empty variantIds are rejected (add variants first). Gallery media ids are validated (READY media, scoped to the owner's USER / PROJECT / INTEGRATION context for that market). Optional on-the-fly sizing: append ``w``, ``h``, ``fit``, ``format``, ``q`` to the public content URL as documented in images{.interpreted-text role="doc"}.
Example attribute definition:
{
"key": "display_type",
"name": "Display Type",
"valueType": "SELECT",
"options": ["LCD", "OLED", "micro-OLED", "QD-LCD"]
}
Breaking-change note: integrations that previously treated ENUM as a free-form string should switch to SELECT when a strict options list is required.
Dashboard: create products from JSON
In the MARKET dashboard ([Products]{.title-ref} section), you can prepare product payloads as JSON:
- Copy template --- copies current product draft + available schema hints:
schemaVersionproduct(typeIds,attributes,tagIds)template.attributeSchema(keys, value types, required flags, SELECT options)template.availableTags(all currently available catalog tags)- Paste product data --- switches the form to a JSON input mode where you paste payload manually (no browser clipboard read prompt is required).
- Create Product (in JSON mode) validates the payload on server and then creates the product if validation succeeds.
For multi-row updates, prefer CSV upload/download: market-catalog-csv{.interpreted-text role="doc"}.
Expected JSON payload
{
"schemaVersion": 1,
"product": {
"typeIds": ["<typeId-1>", "<typeId-2>"],
"attributes": {
"name": "Vision Pro X Ultra",
"display-type": "micro-OLED",
"short_description": "Flagship model.",
"full_description": "## Vision Pro X Ultra"
},
"tagIds": ["<tagId-1>"]
}
}
Validation behavior
Server-side validation is the single source of truth (no duplicated domain rules on client):
- Dashboard calls
POST /api/v1/projects/{uid}/integrations/{id}/market/products/validatebefore create. - The endpoint reuses the same validation rules as product creation:
- unknown attribute keys are rejected
- required attributes must be present
- value types must match (NUMBER/BOOLEAN/STRING/MD_TEXT/ENUM/SELECT)
SELECTvalues must be one of declaredoptions- tag ids must belong to the integration
- If validation fails, product is not created and the API error message is shown.
Purchase packaging on products
- Products expose ``packagingIds`` / ``packagings[]`` --- purchase units (piece / box of N) linked via
ProductPackagingto existing SIMPLEPackagingrows. This is not a product variant and notvariant.components[].packagingId(composition edge metadata). - Create/update product bodies may include ``packagingIds`` (ordered) and optional ``defaultPackagingId``.
Email checkout (orders) and shipping quote
The catalog read API above does not include a shopping cart: the integrator storefront keeps cart state (for example localStorage) and submits a snapshot when the buyer checks out.
- Create order (server / BFF):
POST {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId}/orderswith header ``X-API-Key`` and scope ``market.order.submit`` (RESTRICTED keys) or a FULL key. Request body: buyer ``customerEmail``, ``items[]`` (each line: ``productId``, ``quantity`` as a decimal string, and either ``priceKindKey`` (integrator-friendly key, e.g.base) or ``priceKindId`` (CUID) --- not both, optional ``variantId`` / ``measurementUnitId``), optional ``currency`` (ISO 4217; omit → ``config.defaultCurrency`` → legacy effective-price merge), optional ``shippingMethodId`` + ``address`` when a shipping profile is configured. Mailoo resolves unit prices from the same price lists as ``GET .../effective-price`` and quotes shipping server-side; the response includes ``accessToken``, ``shipping``, and ``accessExpiresAt``. When a line's product hasstockTracked, quantity must be a whole positive integer; Mailoo decrementsonHandin the same transaction (qtyFromStock/qtyToMake/onHandAtOrder/leadTimeDayson each order item).DISCONTINUEDwithquantity>onHandreturns 409stock_insufficient. Concurrent oversell also returns 409. - Stock notify:
POST …/products/{productId}/stock-notifywith the same ``market.order.submit`` (or FULL) key. Body:email, optionalvariantId, optionallocale. Allowed only when the unit'savailability.statusisdiscontinuedandpurchasableis false; otherwise 400. Same email + unit is idempotent (200). When the unit becomes purchasable again (onHand0→>0 or policyDISCONTINUED→MAKE_TO_ORDER), Mailoo sends outbound mail via the integration'soutboundMailand setsnotifiedAtonly after a successful send. - Cancel / reject restore: transitioning an order to
CANCELLEDorREJECTEDrestoresqtyFromStockonce (stockRestoredAt).FULFILLEDand repeat restores do not change stock. - Shipping quote:
POST …/shipping-quoteswith scope ``market.shipping.quote`` --- seemarket-order-email-checkout{.interpreted-text role="doc"}. - Read order (browser / any client):
GET {baseUrl}/api/v1/market/public/orders/{orderId}?token=or header ``X-Market-Order-Token`` --- no API key. Returns a snapshot of the order while the token is valid (default TTL 72 hours, overridable via ``MARKET_ORDER_ACCESS_TOKEN_TTL_HOURS`` on the API host). Missing/invalid/expired tokens return 404 (same message as wrong id). - Owner dashboard (JWT): list/get/patch orders under
/api/v1/projects/{uid}/integrations/{id}/market/orders/…(Bearer).
End-to-end flow, BFF patterns, and operational notes: market-order-email-checkout{.interpreted-text role="doc"}.
Wholesale quote requests (not orders)
Separate from checkout. Does not change /orders.
- Create quote request (server / BFF):
POST {baseUrl}/api/v1/market/{projectUid}/integrations/{integrationId}/quote-requestswith ``X-API-Key``, scope ``market.quote-request.submit``, and required header ``Idempotency-Key``. Body: ``customerEmail``, ``customerPhone``, ``company``, optional ``customerType`` / ``deliveryConditions`` / ``comment``, ``items[]`` (productId, optionalvariantId, ``packagingId`` fromproduct.packagings, integerquantitystring). Prices in the body are rejected. Lines without a catalog price are allowed. - Shop notification recipient is
config.marketQuote.shopNotificationEmailon the MARKET integration (dashboard Connection & settings → Wholesale price requests). When unset, SHOP staysNOT_CONFIGURED/SHOP_NOTIFICATION_EMAIL_UNRESOLVED--- ownerUser.emailis never used. Requires integrationoutboundMail. Customer acknowledgement isconfig.marketQuote.customerAckEnabled(default true; not a browser flag). - Host BFF factory:
createMarketQuoteRequestsHandler→ path above (@mailoo/market). SDK:createQuoteRequest(input, { idempotencyKey }).
Further reading
- OpenAPI:
https://api.mailoo.app/docs/v1 - Dashboard CSV workflow:
market-catalog-csv{.interpreted-text role="doc"}