@mercurjs/docs 2.2.1 → 2.3.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/home.mdx +107 -0
- package/content/learn/architecture.mdx +168 -83
- package/content/learn/introduction.mdx +161 -56
- package/content/learn/migration-to-2-0.mdx +187 -0
- package/content/learn/why-mercur.mdx +91 -0
- package/content/platform/attribute/concepts/attribute-types.mdx +59 -0
- package/content/platform/attribute/concepts/global-vs-inline.mdx +50 -0
- package/content/platform/attribute/concepts/variant-axes.mdx +61 -0
- package/content/platform/attribute/guides/attach-attributes-to-a-product.mdx +69 -0
- package/content/platform/attribute/guides/create-a-variant-axis.mdx +83 -0
- package/content/platform/attribute/guides/create-an-attribute.mdx +81 -0
- package/content/platform/attribute/overview.mdx +87 -0
- package/content/platform/attribute/reference/data-models.mdx +56 -0
- package/content/platform/attribute/reference/events.mdx +41 -0
- package/content/platform/attribute/reference/links.mdx +45 -0
- package/content/platform/attribute/reference/service.mdx +49 -0
- package/content/platform/attribute/reference/workflows.mdx +45 -0
- package/content/platform/catalog/concepts/master-products.mdx +54 -0
- package/content/platform/catalog/concepts/product-seller-allowlist.mdx +48 -0
- package/content/platform/catalog/concepts/status-lifecycle.mdx +58 -0
- package/content/platform/catalog/concepts/variants-categories-collections.mdx +49 -0
- package/content/platform/catalog/guides/allowlist-stores.mdx +59 -0
- package/content/platform/catalog/guides/create-a-master-product.mdx +70 -0
- package/content/platform/catalog/guides/publish-or-reject-a-product.mdx +79 -0
- package/content/platform/catalog/overview.mdx +90 -0
- package/content/platform/catalog/reference/data-models.mdx +66 -0
- package/content/platform/catalog/reference/events.mdx +41 -0
- package/content/platform/catalog/reference/links.mdx +44 -0
- package/content/platform/catalog/reference/service.mdx +52 -0
- package/content/platform/catalog/reference/workflows.mdx +40 -0
- package/content/platform/commission/concepts/order-commission-lines.mdx +65 -0
- package/content/platform/commission/concepts/rule-matching.mdx +86 -0
- package/content/platform/commission/concepts/rules-and-rates.mdx +84 -0
- package/content/platform/commission/guides/batch-update-rules.mdx +58 -0
- package/content/platform/commission/guides/create-a-rate.mdx +72 -0
- package/content/platform/commission/guides/refresh-order-commission-lines.mdx +55 -0
- package/content/platform/commission/overview.mdx +86 -0
- package/content/platform/commission/reference/data-models.mdx +75 -0
- package/content/platform/commission/reference/events.mdx +58 -0
- package/content/platform/commission/reference/links.mdx +45 -0
- package/content/platform/commission/reference/service.mdx +51 -0
- package/content/platform/commission/reference/workflows.mdx +40 -0
- package/content/platform/offer/concepts/pricing-and-inventory.mdx +72 -0
- package/content/platform/offer/concepts/shipping.mdx +48 -0
- package/content/platform/offer/concepts/what-is-an-offer.mdx +65 -0
- package/content/platform/offer/guides/bulk-create-offers.mdx +84 -0
- package/content/platform/offer/guides/create-an-offer.mdx +83 -0
- package/content/platform/offer/guides/manage-offer-inventory.mdx +53 -0
- package/content/platform/offer/overview.mdx +84 -0
- package/content/platform/offer/reference/data-models.mdx +56 -0
- package/content/platform/offer/reference/events.mdx +39 -0
- package/content/platform/offer/reference/links.mdx +60 -0
- package/content/platform/offer/reference/service.mdx +53 -0
- package/content/platform/offer/reference/workflows.mdx +38 -0
- package/content/platform/order-group/concepts/computed-totals.mdx +59 -0
- package/content/platform/order-group/concepts/order-splitting.mdx +61 -0
- package/content/platform/order-group/concepts/the-order-group.mdx +64 -0
- package/content/platform/order-group/guides/list-order-groups.mdx +67 -0
- package/content/platform/order-group/guides/retrieve-an-order-group.mdx +63 -0
- package/content/platform/order-group/guides/split-a-cart.mdx +58 -0
- package/content/platform/order-group/overview.mdx +83 -0
- package/content/platform/order-group/reference/data-models.mdx +40 -0
- package/content/platform/order-group/reference/events.mdx +37 -0
- package/content/platform/order-group/reference/links.mdx +45 -0
- package/content/platform/order-group/reference/service.mdx +50 -0
- package/content/platform/order-group/reference/workflows.mdx +39 -0
- package/content/platform/payout/concepts/account-lifecycle.mdx +75 -0
- package/content/platform/payout/concepts/accounts-and-onboarding.mdx +70 -0
- package/content/platform/payout/concepts/payout-pipeline.mdx +99 -0
- package/content/platform/payout/guides/create-a-payout-account.mdx +59 -0
- package/content/platform/payout/guides/process-a-provider-webhook.mdx +74 -0
- package/content/platform/payout/guides/start-provider-onboarding.mdx +50 -0
- package/content/platform/payout/overview.mdx +86 -0
- package/content/platform/payout/reference/data-models.mdx +61 -0
- package/content/platform/payout/reference/events.mdx +48 -0
- package/content/platform/payout/reference/links.mdx +36 -0
- package/content/platform/payout/reference/service.mdx +53 -0
- package/content/platform/payout/reference/workflows.mdx +32 -0
- package/content/platform/product-edit/concepts/change-actions.mdx +66 -0
- package/content/platform/product-edit/concepts/change-pipeline.mdx +69 -0
- package/content/platform/product-edit/concepts/status-and-auto-confirm.mdx +66 -0
- package/content/platform/product-edit/guides/confirm-or-decline-a-change.mdx +76 -0
- package/content/platform/product-edit/guides/edit-a-product.mdx +74 -0
- package/content/platform/product-edit/guides/request-a-revision.mdx +54 -0
- package/content/platform/product-edit/overview.mdx +85 -0
- package/content/platform/product-edit/reference/data-models.mdx +65 -0
- package/content/platform/product-edit/reference/events.mdx +47 -0
- package/content/platform/product-edit/reference/links.mdx +39 -0
- package/content/platform/product-edit/reference/service.mdx +43 -0
- package/content/platform/product-edit/reference/workflows.mdx +49 -0
- package/content/platform/review/concepts/product-vs-seller-reviews.mdx +63 -0
- package/content/platform/review/concepts/ratings-and-moderation.mdx +64 -0
- package/content/platform/review/concepts/the-review-model.mdx +56 -0
- package/content/platform/review/guides/compute-aggregate-ratings.mdx +57 -0
- package/content/platform/review/guides/create-a-review.mdx +55 -0
- package/content/platform/review/guides/moderate-a-review.mdx +58 -0
- package/content/platform/review/guides/respond-to-a-review.mdx +61 -0
- package/content/platform/review/overview.mdx +87 -0
- package/content/platform/review/reference/data-models.mdx +36 -0
- package/content/platform/review/reference/events.mdx +61 -0
- package/content/platform/review/reference/links.mdx +43 -0
- package/content/platform/review/reference/service.mdx +54 -0
- package/content/platform/review/reference/workflows.mdx +31 -0
- package/content/platform/store/concepts/lifecycle.mdx +62 -0
- package/content/platform/store/concepts/store-entity.mdx +53 -0
- package/content/platform/store/concepts/team.mdx +50 -0
- package/content/platform/store/guides/create-a-store.mdx +55 -0
- package/content/platform/store/guides/manage-the-team.mdx +55 -0
- package/content/platform/store/guides/moderate-a-store.mdx +59 -0
- package/content/platform/store/overview.mdx +86 -0
- package/content/platform/store/reference/data-models.mdx +89 -0
- package/content/platform/store/reference/events.mdx +43 -0
- package/content/platform/store/reference/links.mdx +71 -0
- package/content/platform/store/reference/service.mdx +51 -0
- package/content/platform/store/reference/workflows.mdx +35 -0
- package/content/references/api/admin/commission-rates/create-commission-rate.mdx +1 -1
- package/content/references/api/admin/commission-rates/list-commission-rates.mdx +2 -2
- package/content/references/api/admin/commission-rates/update-commission-rate.mdx +1 -1
- package/content/references/api/admin/offers/batch-create-offers.mdx +3 -3
- package/content/references/api/admin/order-groups/list-order-groups.mdx +1 -1
- package/content/references/api/admin/product-attributes/create-attribute-value.mdx +2 -2
- package/content/references/api/admin/product-attributes/create-product-attribute.mdx +1 -1
- package/content/references/api/admin/product-attributes/update-product-attribute.mdx +1 -1
- package/content/references/api/admin/product-changes/confirm-product-change.mdx +1 -1
- package/content/references/api/admin/products/batch-product-attributes.mdx +1 -1
- package/content/references/api/admin/products/create-product.mdx +1 -1
- package/content/references/api/admin/products/preview-product.mdx +1 -1
- package/content/references/api/admin.mdx +4 -5
- package/content/references/api/conventions.mdx +9 -7
- package/content/references/api/store/carts/add-line-item.mdx +1 -1
- package/content/references/api/store/offers/list-offers.mdx +1 -1
- package/content/references/api/store/order-groups/list-order-groups.mdx +1 -1
- package/content/references/api/store.mdx +4 -13
- package/content/references/api/vendor/members/accept-member-invite.mdx +1 -1
- package/content/references/api/vendor/offers/batch-create-offers.mdx +4 -0
- package/content/references/api/vendor/offers/batch-offer-inventory-items.mdx +2 -0
- package/content/references/api/vendor/offers/create-offer.mdx +13 -1
- package/content/references/api/vendor/offers/list-offers.mdx +4 -0
- package/content/references/api/vendor/offers/retrieve-offer.mdx +4 -0
- package/content/references/api/vendor/offers/update-offer.mdx +12 -0
- package/content/references/api/vendor/payout-accounts/create-onboarding.mdx +1 -1
- package/content/references/api/vendor/products/batch-product-attributes.mdx +1 -1
- package/content/references/api/vendor/products/create-product-variant.mdx +1 -1
- package/content/references/api/vendor/products/create-product.mdx +1 -1
- package/content/references/api/vendor/products/delete-product.mdx +1 -1
- package/content/references/api/vendor/products/update-product.mdx +1 -1
- package/content/references/api/vendor/sellers/create-seller.mdx +2 -2
- package/content/references/api/vendor/sellers/list-sellers.mdx +1 -1
- package/content/references/api/vendor.mdx +6 -5
- package/content/references/configuration.mdx +16 -33
- package/content/references/overview.mdx +34 -52
- package/content/references/panel-extensions/create-page.mdx +194 -0
- package/content/references/panel-extensions/custom-fields.mdx +256 -0
- package/content/references/panel-extensions/overview.mdx +102 -0
- package/content/references/panel-extensions/widgets.mdx +212 -0
- package/content/resources/ai/mcp.mdx +2 -2
- package/content/resources/ai/overview.mdx +21 -16
- package/content/resources/ai/skills.mdx +67 -0
- package/content/resources/best-practices/api-routes.mdx +55 -43
- package/content/resources/best-practices/custom-fields.mdx +116 -92
- package/content/resources/best-practices/frontend.mdx +62 -50
- package/content/resources/best-practices/module-links.mdx +48 -34
- package/content/resources/best-practices/modules.mdx +53 -27
- package/content/resources/best-practices/overview.mdx +45 -17
- package/content/resources/best-practices/subscribers-and-jobs.mdx +37 -24
- package/content/resources/best-practices/types.mdx +38 -23
- package/content/resources/best-practices/workflows.mdx +33 -21
- package/content/resources/customization/custom-fields.mdx +15 -15
- package/content/resources/customization/extend-a-workflow.mdx +7 -4
- package/content/resources/customization/extending-panels.mdx +55 -52
- package/content/resources/deployment/medusa-cloud.mdx +21 -20
- package/content/resources/deployment/self-host.mdx +123 -0
- package/content/resources/integrations/overview.mdx +38 -0
- package/content/resources/integrations/stripe-connect.mdx +39 -38
- package/content/resources/tutorials/add-a-block.mdx +25 -18
- package/content/resources/tutorials/add-a-widget.mdx +32 -23
- package/content/resources/tutorials/add-order-detail-button.mdx +33 -20
- package/content/resources/tutorials/attributes-and-variant-axes.mdx +28 -27
- package/content/resources/tutorials/build-a-block.mdx +26 -15
- package/content/resources/tutorials/custom-api-route.mdx +32 -20
- package/content/resources/tutorials/custom-panel-page.mdx +21 -12
- package/content/resources/tutorials/customize-navigation.mdx +30 -23
- package/content/resources/tutorials/extend-forms-and-tables.mdx +36 -28
- package/content/resources/tutorials/extend-onboarding.mdx +38 -35
- package/content/resources/tutorials/master-products-and-offers.mdx +28 -23
- package/content/telemetry.mdx +3 -3
- package/content/user-guide/admin/attributes/how-tos/create-an-attribute.mdx +64 -0
- package/content/user-guide/admin/attributes/how-tos/manage-possible-values.mdx +40 -0
- package/content/user-guide/admin/attributes/overview.mdx +22 -0
- package/content/user-guide/admin/commissions/how-tos/create-a-commission-rule.mdx +63 -0
- package/content/user-guide/admin/commissions/how-tos/edit-the-global-commission.mdx +48 -0
- package/content/user-guide/admin/commissions/how-tos/manage-a-commission-rule.mdx +45 -0
- package/content/user-guide/admin/commissions/overview.mdx +25 -0
- package/content/user-guide/admin/overview.mdx +20 -12
- package/content/user-guide/admin/product-requests/how-tos/review-a-new-product.mdx +58 -0
- package/content/user-guide/admin/product-requests/how-tos/review-a-product-edit.mdx +48 -0
- package/content/user-guide/admin/product-requests/overview.mdx +25 -0
- package/content/user-guide/vendor/offers/how-tos/create-an-offer.mdx +59 -0
- package/content/user-guide/vendor/offers/how-tos/update-prices-and-stock.mdx +40 -0
- package/content/user-guide/vendor/offers/overview.mdx +22 -0
- package/content/user-guide/vendor/onboarding.mdx +79 -0
- package/content/user-guide/vendor/orders/how-tos/fulfill-an-order.mdx +49 -0
- package/content/user-guide/vendor/orders/how-tos/mark-an-order-as-delivered.mdx +33 -0
- package/content/user-guide/vendor/orders/how-tos/process-a-return.mdx +42 -0
- package/content/user-guide/vendor/orders/how-tos/refund-an-order.mdx +38 -0
- package/content/user-guide/vendor/orders/how-tos/ship-an-order.mdx +40 -0
- package/content/user-guide/vendor/orders/overview.mdx +31 -0
- package/content/user-guide/vendor/overview.mdx +23 -12
- package/content/user-guide/vendor/products/how-tos/edit-a-product.mdx +44 -0
- package/content/user-guide/vendor/products/how-tos/submit-a-product.mdx +63 -0
- package/content/user-guide/vendor/products/overview.mdx +22 -0
- package/llms.txt +176 -142
- package/package.json +1 -1
- package/content/learn/concepts.mdx +0 -84
- package/content/learn/installation.mdx +0 -117
- package/content/learn/mirakl-alternative.mdx +0 -86
- package/content/migration/from-1-x-to-2-0.mdx +0 -152
- package/content/migration/from-2-0-to-2-1.mdx +0 -105
- package/content/migration/overview.mdx +0 -58
- package/content/references/api/store/search/search.mdx +0 -136
- package/content/references/modules/commission.mdx +0 -106
- package/content/references/modules/custom-fields.mdx +0 -45
- package/content/references/modules/media.mdx +0 -55
- package/content/references/modules/offer.mdx +0 -64
- package/content/references/modules/payout.mdx +0 -121
- package/content/references/modules/product-attribute.mdx +0 -111
- package/content/references/modules/product-edit.mdx +0 -80
- package/content/references/modules/search.mdx +0 -112
- package/content/references/modules/seller.mdx +0 -175
- package/content/references/panel-extension-api.mdx +0 -337
- package/content/references/workflows/cart/add-seller-shipping-method-to-cart.mdx +0 -48
- package/content/references/workflows/cart/complete-cart-with-split-orders.mdx +0 -36
- package/content/references/workflows/cart/list-seller-shipping-options-for-cart.mdx +0 -39
- package/content/references/workflows/cart/update-cart-seller-promotions.mdx +0 -42
- package/content/references/workflows/commission/batch-commission-rules.mdx +0 -49
- package/content/references/workflows/commission/create-commission-rates.mdx +0 -41
- package/content/references/workflows/commission/delete-commission-rates.mdx +0 -34
- package/content/references/workflows/commission/refresh-order-commission-lines.mdx +0 -30
- package/content/references/workflows/commission/update-commission-rates.mdx +0 -35
- package/content/references/workflows/media/set-category-images.mdx +0 -41
- package/content/references/workflows/media/set-collection-images.mdx +0 -41
- package/content/references/workflows/member/accept-member-invite.mdx +0 -33
- package/content/references/workflows/member/add-seller-member.mdx +0 -30
- package/content/references/workflows/member/create-member-invites.mdx +0 -34
- package/content/references/workflows/member/delete-member-invite.mdx +0 -24
- package/content/references/workflows/member/remove-seller-member.mdx +0 -28
- package/content/references/workflows/member/resend-member-invite.mdx +0 -28
- package/content/references/workflows/member/update-member-role.mdx +0 -28
- package/content/references/workflows/member/update-member.mdx +0 -35
- package/content/references/workflows/offer/batch-offer-inventory-items.mdx +0 -62
- package/content/references/workflows/offer/create-offers.mdx +0 -65
- package/content/references/workflows/offer/delete-offers.mdx +0 -35
- package/content/references/workflows/offer/update-offers.mdx +0 -53
- package/content/references/workflows/order/cancel-order-fulfillment.mdx +0 -34
- package/content/references/workflows/order/confirm-claim-request.mdx +0 -25
- package/content/references/workflows/order/confirm-exchange-request.mdx +0 -25
- package/content/references/workflows/order/confirm-order-edit-request.mdx +0 -25
- package/content/references/workflows/order/confirm-return-receive.mdx +0 -25
- package/content/references/workflows/order/create-order-fulfillment.mdx +0 -45
- package/content/references/workflows/order-group/get-order-group-detail.mdx +0 -29
- package/content/references/workflows/order-group/get-order-groups-list.mdx +0 -38
- package/content/references/workflows/overview.mdx +0 -72
- package/content/references/workflows/payout/create-onboarding.mdx +0 -36
- package/content/references/workflows/payout/create-payout-account.mdx +0 -33
- package/content/references/workflows/payout/create-payout.mdx +0 -30
- package/content/references/workflows/payout/process-payout-for-webhook.mdx +0 -34
- package/content/references/workflows/product/confirm-products.mdx +0 -48
- package/content/references/workflows/product/create-products.mdx +0 -63
- package/content/references/workflows/product/link-sellers-to-product-category.mdx +0 -40
- package/content/references/workflows/product/link-sellers-to-product.mdx +0 -40
- package/content/references/workflows/product/reject-product.mdx +0 -48
- package/content/references/workflows/product/request-product-change.mdx +0 -48
- package/content/references/workflows/product-attribute/add-product-attributes-to-product.mdx +0 -49
- package/content/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx +0 -46
- package/content/references/workflows/product-attribute/create-product-attribute-values.mdx +0 -43
- package/content/references/workflows/product-attribute/create-product-attributes.mdx +0 -56
- package/content/references/workflows/product-attribute/delete-product-attribute-values.mdx +0 -30
- package/content/references/workflows/product-attribute/delete-product-attributes.mdx +0 -30
- package/content/references/workflows/product-attribute/remove-product-attributes-from-product.mdx +0 -29
- package/content/references/workflows/product-attribute/update-product-attribute-values.mdx +0 -44
- package/content/references/workflows/product-attribute/update-product-attributes-on-product.mdx +0 -41
- package/content/references/workflows/product-attribute/update-product-attributes.mdx +0 -48
- package/content/references/workflows/product-attribute/upsert-product-attribute-values.mdx +0 -43
- package/content/references/workflows/product-edit/auto-confirm-product-change.mdx +0 -39
- package/content/references/workflows/product-edit/cancel-product-change.mdx +0 -49
- package/content/references/workflows/product-edit/confirm-product-change.mdx +0 -57
- package/content/references/workflows/product-edit/create-product-change.mdx +0 -72
- package/content/references/workflows/product-edit/reject-product-change.mdx +0 -54
- package/content/references/workflows/product-edit/stage-product-change.mdx +0 -75
- package/content/references/workflows/seller/approve-seller.mdx +0 -36
- package/content/references/workflows/seller/create-seller-account.mdx +0 -59
- package/content/references/workflows/seller/create-seller-defaults.mdx +0 -22
- package/content/references/workflows/seller/create-sellers.mdx +0 -65
- package/content/references/workflows/seller/delete-seller-professional-details.mdx +0 -37
- package/content/references/workflows/seller/delete-sellers.mdx +0 -24
- package/content/references/workflows/seller/invite-seller.mdx +0 -28
- package/content/references/workflows/seller/suspend-seller.mdx +0 -37
- package/content/references/workflows/seller/terminate-seller.mdx +0 -37
- package/content/references/workflows/seller/unsuspend-seller.mdx +0 -36
- package/content/references/workflows/seller/unterminate-seller.mdx +0 -36
- package/content/references/workflows/seller/update-seller-address.mdx +0 -55
- package/content/references/workflows/seller/update-seller-payment-details.mdx +0 -52
- package/content/references/workflows/seller/update-seller-professional-details.mdx +0 -48
- package/content/references/workflows/seller/update-sellers.mdx +0 -57
- package/content/resources/ai/llms.mdx +0 -74
- package/content/resources/integrations/notifications.mdx +0 -39
- package/content/resources/integrations/search.mdx +0 -122
- package/content/resources/tutorials/configure-commissions.mdx +0 -127
- package/content/resources/tutorials/first-marketplace.mdx +0 -45
- package/content/resources/tutorials/handle-product-requests.mdx +0 -80
- package/content/resources/tutorials/import-export-products.mdx +0 -96
- package/content/resources/tutorials/seller-payouts-stripe.mdx +0 -89
- package/content/resources/tutorials/store-setup-checklist.mdx +0 -214
- package/content/tools/api-client.mdx +0 -155
- package/content/tools/cli.mdx +0 -196
- package/content/tools/dashboard-sdk.mdx +0 -35
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "createSellersWorkflow"
|
|
3
|
-
description: "Create one or more sellers and invite their first member."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Creates sellers (defaulting `status` to `pending_approval`), then runs `createMemberInvitesWorkflow` to invite each seller's initial member with the seller administration role. Triggered by `POST /admin/sellers`. Emits `seller.created` and `member_invite.created`.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { createSellersWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await createSellersWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
sellers: [
|
|
16
|
-
{
|
|
17
|
-
name: "Acme",
|
|
18
|
-
email: "hello@acme.co",
|
|
19
|
-
currency_code: "usd",
|
|
20
|
-
member: { email: "owner@acme.co" },
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Input
|
|
28
|
-
|
|
29
|
-
<ParamField body="sellers" type="object[]" required>
|
|
30
|
-
Sellers to create.
|
|
31
|
-
<Expandable title="properties">
|
|
32
|
-
<ParamField body="name" type="string" required>Display name of the seller.</ParamField>
|
|
33
|
-
<ParamField body="email" type="string" required>Contact email of the seller.</ParamField>
|
|
34
|
-
<ParamField body="currency_code" type="string" required>Default currency of the seller.</ParamField>
|
|
35
|
-
<ParamField body="member" type="object" required>Initial member to invite; `{ email: string }`.</ParamField>
|
|
36
|
-
<ParamField body="handle" type="string">URL handle; auto-generated from the name when omitted.</ParamField>
|
|
37
|
-
<ParamField body="description" type="string">Public seller description.</ParamField>
|
|
38
|
-
<ParamField body="logo" type="string">Logo URL.</ParamField>
|
|
39
|
-
<ParamField body="banner" type="string">Banner URL.</ParamField>
|
|
40
|
-
<ParamField body="website_url" type="string">Seller website URL.</ParamField>
|
|
41
|
-
<ParamField body="external_id" type="string">External system identifier.</ParamField>
|
|
42
|
-
<ParamField body="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`; defaults to `pending_approval`.</ParamField>
|
|
43
|
-
<ParamField body="status_reason" type="string">Reason attached to the current status.</ParamField>
|
|
44
|
-
<ParamField body="is_premium" type="boolean">Marks the seller as premium.</ParamField>
|
|
45
|
-
<ParamField body="closed_from" type="Date">Start of a store closure window.</ParamField>
|
|
46
|
-
<ParamField body="closed_to" type="Date">End of a store closure window.</ParamField>
|
|
47
|
-
<ParamField body="metadata" type="object">Custom key-value data.</ParamField>
|
|
48
|
-
</Expandable>
|
|
49
|
-
</ParamField>
|
|
50
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
51
|
-
|
|
52
|
-
## Result
|
|
53
|
-
|
|
54
|
-
<ResponseField name="result" type="SellerDTO[]">The created sellers.</ResponseField>
|
|
55
|
-
|
|
56
|
-
## Hooks
|
|
57
|
-
|
|
58
|
-
- `validate` — runs before creation with `{ input }`.
|
|
59
|
-
- `sellersCreated` — runs after creation with `{ sellers, additional_data }`.
|
|
60
|
-
|
|
61
|
-
```ts
|
|
62
|
-
createSellersWorkflow.hooks.sellersCreated(async ({ sellers, additional_data }) => {
|
|
63
|
-
// react to new sellers
|
|
64
|
-
})
|
|
65
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "deleteSellerProfessionalDetailsWorkflow"
|
|
3
|
-
description: "Remove a seller's professional details."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Deletes the professional details record attached to a seller.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { deleteSellerProfessionalDetailsWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await deleteSellerProfessionalDetailsWorkflow(container).run({
|
|
14
|
-
input: { seller_id: "sel_123" },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="seller_id" type="string" required>Id of the seller whose professional details are removed.</ParamField>
|
|
21
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
22
|
-
|
|
23
|
-
## Result
|
|
24
|
-
|
|
25
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
26
|
-
|
|
27
|
-
## Hooks
|
|
28
|
-
|
|
29
|
-
- `professionalDetailsDeleted` — runs after deletion with `{ seller_id, additional_data }`.
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
deleteSellerProfessionalDetailsWorkflow.hooks.professionalDetailsDeleted(
|
|
33
|
-
async ({ seller_id }) => {
|
|
34
|
-
// e.g. flag the seller for re-verification
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "deleteSellersWorkflow"
|
|
3
|
-
description: "Delete sellers by id."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Soft-deletes the given sellers. Emits `seller.deleted` for each id.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { deleteSellersWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await deleteSellersWorkflow(container).run({
|
|
14
|
-
input: { ids: ["sel_123"] },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="ids" type="string[]" required>Ids of the sellers to delete.</ParamField>
|
|
21
|
-
|
|
22
|
-
## Result
|
|
23
|
-
|
|
24
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "inviteSellerWorkflow"
|
|
3
|
-
description: "Send a marketplace invitation email to a prospective seller."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Sends an invitation email (via the notification module, `email` channel) inviting someone to register as a seller, optionally with a registration link. Not wired to a core API route — run it from your own routes or automations. Does not create any seller records.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { inviteSellerWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await inviteSellerWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
email: "owner@acme.co",
|
|
16
|
-
registration_url: "https://vendor.example.com/register",
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
<ParamField body="email" type="string" required>Recipient of the invitation email.</ParamField>
|
|
24
|
-
<ParamField body="registration_url" type="string">Link rendered as the email's call-to-action button.</ParamField>
|
|
25
|
-
|
|
26
|
-
## Result
|
|
27
|
-
|
|
28
|
-
<ResponseField name="result" type="NotificationDTO">The created email notification.</ResponseField>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "suspendSellerWorkflow"
|
|
3
|
-
description: "Suspend a seller with an optional reason."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Validates the seller can be suspended, sets `status` to `suspended`, records the reason, and stamps `rejected_at` on first suspension. Triggered by `POST /admin/sellers/:id/suspend`. Emits `seller.suspended`.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { suspendSellerWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await suspendSellerWorkflow(container).run({
|
|
14
|
-
input: { seller_id: "sel_123", reason: "Policy violation" },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="seller_id" type="string" required>Id of the seller to suspend.</ParamField>
|
|
21
|
-
<ParamField body="reason" type="string">Reason stored in `status_reason`.</ParamField>
|
|
22
|
-
|
|
23
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
24
|
-
|
|
25
|
-
## Result
|
|
26
|
-
|
|
27
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
28
|
-
|
|
29
|
-
## Hooks
|
|
30
|
-
|
|
31
|
-
- `sellerSuspended` — runs after suspension with `{ seller_id }`.
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
suspendSellerWorkflow.hooks.sellerSuspended(async ({ seller_id }) => {
|
|
35
|
-
// e.g. pause the seller's listings
|
|
36
|
-
})
|
|
37
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "terminateSellerWorkflow"
|
|
3
|
-
description: "Terminate a seller with an optional reason."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Validates the seller can be terminated, then sets `status` to `terminated` and records the reason. Emits `seller.terminated`.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { terminateSellerWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await terminateSellerWorkflow(container).run({
|
|
14
|
-
input: { seller_id: "sel_123", reason: "Account closure requested" },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="seller_id" type="string" required>Id of the seller to terminate.</ParamField>
|
|
21
|
-
<ParamField body="reason" type="string">Reason stored in `status_reason`.</ParamField>
|
|
22
|
-
|
|
23
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
24
|
-
|
|
25
|
-
## Result
|
|
26
|
-
|
|
27
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
28
|
-
|
|
29
|
-
## Hooks
|
|
30
|
-
|
|
31
|
-
- `sellerTerminated` — runs after termination with `{ seller_id }`.
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
terminateSellerWorkflow.hooks.sellerTerminated(async ({ seller_id }) => {
|
|
35
|
-
// e.g. archive the seller's data
|
|
36
|
-
})
|
|
37
|
-
```
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "unsuspendSellerWorkflow"
|
|
3
|
-
description: "Lift a seller suspension."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Validates the seller is currently suspended, then sets `status` back to `open` and clears `status_reason`. Triggered by `POST /admin/sellers/:id/unsuspend`. Emits `seller.unsuspended`.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { unsuspendSellerWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await unsuspendSellerWorkflow(container).run({
|
|
14
|
-
input: { seller_id: "sel_123" },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="seller_id" type="string" required>Id of the suspended seller.</ParamField>
|
|
21
|
-
|
|
22
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
23
|
-
|
|
24
|
-
## Result
|
|
25
|
-
|
|
26
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
27
|
-
|
|
28
|
-
## Hooks
|
|
29
|
-
|
|
30
|
-
- `sellerUnsuspended` — runs after the status change with `{ seller_id }`.
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
unsuspendSellerWorkflow.hooks.sellerUnsuspended(async ({ seller_id }) => {
|
|
34
|
-
// e.g. re-enable listings
|
|
35
|
-
})
|
|
36
|
-
```
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "unterminateSellerWorkflow"
|
|
3
|
-
description: "Revert a terminated seller back to suspended."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Validates the seller is currently terminated, then sets `status` to `suspended` and clears `status_reason`. The seller must be unsuspended separately to reopen the store. Emits `seller.unterminated`.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { unterminateSellerWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
await unterminateSellerWorkflow(container).run({
|
|
14
|
-
input: { seller_id: "sel_123" },
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Input
|
|
19
|
-
|
|
20
|
-
<ParamField body="seller_id" type="string" required>Id of the terminated seller.</ParamField>
|
|
21
|
-
|
|
22
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
23
|
-
|
|
24
|
-
## Result
|
|
25
|
-
|
|
26
|
-
<ResponseField name="result" type="void">Nothing is returned.</ResponseField>
|
|
27
|
-
|
|
28
|
-
## Hooks
|
|
29
|
-
|
|
30
|
-
- `sellerUnterminated` — runs after the status change with `{ seller_id }`.
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
unterminateSellerWorkflow.hooks.sellerUnterminated(async ({ seller_id }) => {
|
|
34
|
-
// e.g. notify the operator
|
|
35
|
-
})
|
|
36
|
-
```
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "updateSellerAddressWorkflow"
|
|
3
|
-
description: "Upsert a seller's address."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Creates or updates the address record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when an address is provided at registration.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { updateSellerAddressWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await updateSellerAddressWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
seller_id: "sel_123",
|
|
16
|
-
data: { address_1: "1 Main St", city: "Berlin", country_code: "de" },
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
<ParamField body="seller_id" type="string" required>Id of the seller whose address is updated.</ParamField>
|
|
24
|
-
<ParamField body="data" type="UpdateSellerAddressDTO" required>
|
|
25
|
-
Address fields to set; all optional.
|
|
26
|
-
<Expandable title="properties">
|
|
27
|
-
<ParamField body="name" type="string">Address label.</ParamField>
|
|
28
|
-
<ParamField body="company" type="string">Company name.</ParamField>
|
|
29
|
-
<ParamField body="first_name" type="string">Contact first name.</ParamField>
|
|
30
|
-
<ParamField body="last_name" type="string">Contact last name.</ParamField>
|
|
31
|
-
<ParamField body="address_1" type="string">Street address, line 1.</ParamField>
|
|
32
|
-
<ParamField body="address_2" type="string">Street address, line 2.</ParamField>
|
|
33
|
-
<ParamField body="city" type="string">City.</ParamField>
|
|
34
|
-
<ParamField body="country_code" type="string">ISO 2-letter country code.</ParamField>
|
|
35
|
-
<ParamField body="province" type="string">Province or state.</ParamField>
|
|
36
|
-
<ParamField body="postal_code" type="string">Postal code.</ParamField>
|
|
37
|
-
<ParamField body="phone" type="string">Phone number.</ParamField>
|
|
38
|
-
<ParamField body="metadata" type="object">Custom key-value data.</ParamField>
|
|
39
|
-
</Expandable>
|
|
40
|
-
</ParamField>
|
|
41
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
42
|
-
|
|
43
|
-
## Result
|
|
44
|
-
|
|
45
|
-
<ResponseField name="result" type="SellerAddressDTO">The updated address.</ResponseField>
|
|
46
|
-
|
|
47
|
-
## Hooks
|
|
48
|
-
|
|
49
|
-
- `addressUpdated` — runs after the update with `{ address, additional_data }`.
|
|
50
|
-
|
|
51
|
-
```ts
|
|
52
|
-
updateSellerAddressWorkflow.hooks.addressUpdated(async ({ address }) => {
|
|
53
|
-
// e.g. re-verify tax settings
|
|
54
|
-
})
|
|
55
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "updateSellerPaymentDetailsWorkflow"
|
|
3
|
-
description: "Upsert a seller's bank payment details."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Creates or updates the payment details record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when payment details are provided at registration.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { updateSellerPaymentDetailsWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await updateSellerPaymentDetailsWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
seller_id: "sel_123",
|
|
16
|
-
data: { holder_name: "Acme GmbH", iban: "DE89370400440532013000" },
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
<ParamField body="seller_id" type="string" required>Id of the seller whose payment details are updated.</ParamField>
|
|
24
|
-
<ParamField body="data" type="UpdatePaymentDetailsDTO" required>
|
|
25
|
-
Payment fields to set; all optional.
|
|
26
|
-
<Expandable title="properties">
|
|
27
|
-
<ParamField body="country_code" type="string">Bank country code.</ParamField>
|
|
28
|
-
<ParamField body="holder_name" type="string">Account holder name.</ParamField>
|
|
29
|
-
<ParamField body="bank_name" type="string">Bank name.</ParamField>
|
|
30
|
-
<ParamField body="iban" type="string">IBAN.</ParamField>
|
|
31
|
-
<ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>
|
|
32
|
-
<ParamField body="routing_number" type="string">Routing number.</ParamField>
|
|
33
|
-
<ParamField body="account_number" type="string">Account number.</ParamField>
|
|
34
|
-
</Expandable>
|
|
35
|
-
</ParamField>
|
|
36
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
37
|
-
|
|
38
|
-
## Result
|
|
39
|
-
|
|
40
|
-
<ResponseField name="result" type="PaymentDetailsDTO">The updated payment details.</ResponseField>
|
|
41
|
-
|
|
42
|
-
## Hooks
|
|
43
|
-
|
|
44
|
-
- `paymentDetailsUpdated` — runs after the update with `{ payment_details, additional_data }`.
|
|
45
|
-
|
|
46
|
-
```ts
|
|
47
|
-
updateSellerPaymentDetailsWorkflow.hooks.paymentDetailsUpdated(
|
|
48
|
-
async ({ payment_details }) => {
|
|
49
|
-
// e.g. trigger payout account re-verification
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
```
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "updateSellerProfessionalDetailsWorkflow"
|
|
3
|
-
description: "Upsert a seller's professional (business) details."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Creates or updates the professional details record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when professional details are provided at registration.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { updateSellerProfessionalDetailsWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await updateSellerProfessionalDetailsWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
seller_id: "sel_123",
|
|
16
|
-
data: { corporate_name: "Acme GmbH", tax_id: "DE123456789" },
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
<ParamField body="seller_id" type="string" required>Id of the seller whose professional details are updated.</ParamField>
|
|
24
|
-
<ParamField body="data" type="UpdateProfessionalDetailsDTO" required>
|
|
25
|
-
Fields to set; all optional.
|
|
26
|
-
<Expandable title="properties">
|
|
27
|
-
<ParamField body="corporate_name" type="string">Registered corporate name.</ParamField>
|
|
28
|
-
<ParamField body="registration_number" type="string">Company registration number.</ParamField>
|
|
29
|
-
<ParamField body="tax_id" type="string">Tax identifier.</ParamField>
|
|
30
|
-
</Expandable>
|
|
31
|
-
</ParamField>
|
|
32
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
33
|
-
|
|
34
|
-
## Result
|
|
35
|
-
|
|
36
|
-
<ResponseField name="result" type="ProfessionalDetailsDTO">The updated professional details.</ResponseField>
|
|
37
|
-
|
|
38
|
-
## Hooks
|
|
39
|
-
|
|
40
|
-
- `professionalDetailsUpdated` — runs after the update with `{ professional_details, additional_data }`.
|
|
41
|
-
|
|
42
|
-
```ts
|
|
43
|
-
updateSellerProfessionalDetailsWorkflow.hooks.professionalDetailsUpdated(
|
|
44
|
-
async ({ professional_details }) => {
|
|
45
|
-
// e.g. re-run KYB checks
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
```
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "updateSellersWorkflow"
|
|
3
|
-
description: "Update sellers matching a selector."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Updates every seller matching the selector with the given data. Triggered by `POST /admin/sellers/:id` and `POST /vendor/sellers/:id`. Emits `seller.updated` for each updated seller.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { updateSellersWorkflow } from "@mercurjs/core/workflows"
|
|
12
|
-
|
|
13
|
-
const { result } = await updateSellersWorkflow(container).run({
|
|
14
|
-
input: {
|
|
15
|
-
selector: { id: "sel_123" },
|
|
16
|
-
update: { name: "Acme Inc." },
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Input
|
|
22
|
-
|
|
23
|
-
<ParamField body="selector" type="object" required>Filter selecting the sellers to update, e.g. `{ id: "sel_123" }`.</ParamField>
|
|
24
|
-
<ParamField body="update" type="UpdateSellerDTO" required>
|
|
25
|
-
Fields to update; all optional.
|
|
26
|
-
<Expandable title="properties">
|
|
27
|
-
<ParamField body="name" type="string">Display name.</ParamField>
|
|
28
|
-
<ParamField body="handle" type="string">URL handle.</ParamField>
|
|
29
|
-
<ParamField body="email" type="string">Contact email.</ParamField>
|
|
30
|
-
<ParamField body="description" type="string">Public description.</ParamField>
|
|
31
|
-
<ParamField body="logo" type="string">Logo URL.</ParamField>
|
|
32
|
-
<ParamField body="banner" type="string">Banner URL.</ParamField>
|
|
33
|
-
<ParamField body="website_url" type="string">Website URL.</ParamField>
|
|
34
|
-
<ParamField body="external_id" type="string">External system identifier.</ParamField>
|
|
35
|
-
<ParamField body="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ParamField>
|
|
36
|
-
<ParamField body="status_reason" type="string">Reason attached to the status.</ParamField>
|
|
37
|
-
<ParamField body="is_premium" type="boolean">Premium flag.</ParamField>
|
|
38
|
-
<ParamField body="closed_from" type="Date">Start of a store closure window.</ParamField>
|
|
39
|
-
<ParamField body="closed_to" type="Date">End of a store closure window.</ParamField>
|
|
40
|
-
<ParamField body="metadata" type="object">Custom key-value data.</ParamField>
|
|
41
|
-
</Expandable>
|
|
42
|
-
</ParamField>
|
|
43
|
-
<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>
|
|
44
|
-
|
|
45
|
-
## Result
|
|
46
|
-
|
|
47
|
-
<ResponseField name="result" type="SellerDTO[]">The updated sellers.</ResponseField>
|
|
48
|
-
|
|
49
|
-
## Hooks
|
|
50
|
-
|
|
51
|
-
- `sellersUpdated` — runs after the update with `{ sellers, additional_data }`.
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
updateSellersWorkflow.hooks.sellersUpdated(async ({ sellers }) => {
|
|
55
|
-
// sync updated sellers elsewhere
|
|
56
|
-
})
|
|
57
|
-
```
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "LLMs"
|
|
3
|
-
description: "Feed Mercur documentation directly to LLMs for accurate, context-aware assistance."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# LLMs
|
|
7
|
-
|
|
8
|
-
Mercur documentation is optimized for Large Language Models using the [llms.txt standard](https://llmstxt.org). This gives AI tools a structured map of all documentation — so they can answer technical questions accurately instead of guessing.
|
|
9
|
-
|
|
10
|
-
Think of it like a sitemap, but for AI: a machine-readable file that describes what documentation exists, how it's organized, and where to find specific topics.
|
|
11
|
-
|
|
12
|
-
<Note>
|
|
13
|
-
This page is for **chat assistants and hosted tools** (Claude, ChatGPT). If you're using a coding agent *inside* a Mercur project, prefer the version-matched docs bundled in `node_modules/@mercurjs/docs/` — see [Building with AI](/rc/resources/ai/overview).
|
|
14
|
-
</Note>
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Available files
|
|
19
|
-
|
|
20
|
-
### llms.txt
|
|
21
|
-
|
|
22
|
-
A structured index of all Mercur documentation pages with descriptions and links.
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
https://docs.mercurjs.com/llms.txt
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Use this when your AI tool supports llms.txt natively or when you want to give it an overview of what's available without sending the full content.
|
|
29
|
-
|
|
30
|
-
### llms-full.txt
|
|
31
|
-
|
|
32
|
-
The entire Mercur documentation compiled into a single plain-text file.
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
https://docs.mercurjs.com/llms-full.txt
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Use this when you want to give an LLM the complete context in one shot — ideal for complex questions that span multiple topics.
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## How to use
|
|
43
|
-
|
|
44
|
-
<Tabs>
|
|
45
|
-
<Tab title="Claude Projects">
|
|
46
|
-
1. Open [Claude](https://claude.ai) and create a new Project
|
|
47
|
-
2. In project knowledge, add a URL: `https://docs.mercurjs.com/llms-full.txt`
|
|
48
|
-
3. Claude now has full Mercur documentation context in every conversation within that project
|
|
49
|
-
</Tab>
|
|
50
|
-
<Tab title="ChatGPT">
|
|
51
|
-
1. Download `https://docs.mercurjs.com/llms-full.txt`
|
|
52
|
-
2. Upload it as a file in your conversation or attach it to a Custom GPT's knowledge base
|
|
53
|
-
</Tab>
|
|
54
|
-
<Tab title="AI IDE (paste)">
|
|
55
|
-
For any AI coding tool that accepts context:
|
|
56
|
-
1. Fetch the file: `curl -o mercur-docs.txt https://docs.mercurjs.com/llms-full.txt`
|
|
57
|
-
2. Attach it to your conversation or project context
|
|
58
|
-
</Tab>
|
|
59
|
-
</Tabs>
|
|
60
|
-
|
|
61
|
-
<Tip>
|
|
62
|
-
Both files are auto-generated and always reflect the latest documentation. No maintenance required.
|
|
63
|
-
</Tip>
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## When to use llms.txt vs MCP
|
|
68
|
-
|
|
69
|
-
| Approach | Best for |
|
|
70
|
-
|----------|----------|
|
|
71
|
-
| **llms.txt / llms-full.txt** | One-time context loading, tools without MCP support, offline use |
|
|
72
|
-
| **[MCP Server](/rc/resources/ai/mcp)** | Live search, always up-to-date results, integrated AI environments |
|
|
73
|
-
|
|
74
|
-
For the best experience, use the [MCP server](/rc/resources/ai/mcp) if your tool supports it. Fall back to llms.txt when MCP isn't available.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Notifications"
|
|
3
|
-
description: "Send transactional emails and marketplace notifications with Resend."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<Note>
|
|
7
|
-
This guide is being written. The outline below is the intended structure.
|
|
8
|
-
</Note>
|
|
9
|
-
|
|
10
|
-
<Info>
|
|
11
|
-
**Two notification surfaces.** Mercur sends provider-backed transactional email (seller approvals, invites, order events) *and* keeps an in-app vendor notification feed in the Vendor Portal. The email side uses Medusa's standard notification-provider model — Resend is the documented default, but any Medusa notification provider plugs in the same way.
|
|
12
|
-
</Info>
|
|
13
|
-
|
|
14
|
-
## What Resend powers
|
|
15
|
-
|
|
16
|
-
The emails and notifications Mercur sends, and where they're triggered.
|
|
17
|
-
|
|
18
|
-
<Steps>
|
|
19
|
-
<Step title="Prerequisites">
|
|
20
|
-
Resend account, API key, and environment variables.
|
|
21
|
-
</Step>
|
|
22
|
-
<Step title="Configure the provider">
|
|
23
|
-
Wire Resend as the notification provider.
|
|
24
|
-
</Step>
|
|
25
|
-
<Step title="Send a test notification">
|
|
26
|
-
Trigger a test notification and confirm delivery.
|
|
27
|
-
</Step>
|
|
28
|
-
</Steps>
|
|
29
|
-
|
|
30
|
-
## Verify
|
|
31
|
-
|
|
32
|
-
Trigger a test notification and confirm delivery.
|
|
33
|
-
|
|
34
|
-
## Next steps
|
|
35
|
-
|
|
36
|
-
<CardGroup cols={2}>
|
|
37
|
-
<Card title="Search" href="/rc/resources/integrations/search" />
|
|
38
|
-
<Card title="Deploy to Medusa Cloud" href="/rc/resources/deployment/medusa-cloud" />
|
|
39
|
-
</CardGroup>
|