@mercurjs/docs 2.2.0-canary.40
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/README.md +24 -0
- package/content/blocks.mdx +209 -0
- package/content/learn/architecture.mdx +215 -0
- package/content/learn/attributes.mdx +89 -0
- package/content/learn/blocks.mdx +99 -0
- package/content/learn/commissions.mdx +175 -0
- package/content/learn/concepts.mdx +84 -0
- package/content/learn/installation.mdx +117 -0
- package/content/learn/introduction.mdx +71 -0
- package/content/learn/offers.mdx +78 -0
- package/content/learn/order-groups.mdx +114 -0
- package/content/learn/payouts.mdx +175 -0
- package/content/learn/product-requests.mdx +82 -0
- package/content/learn/products.mdx +79 -0
- package/content/learn/registry.mdx +155 -0
- package/content/learn/seller-members.mdx +62 -0
- package/content/learn/sellers.mdx +118 -0
- package/content/migration/from-1-x-to-2-0.mdx +152 -0
- package/content/migration/from-2-0-to-2-1.mdx +105 -0
- package/content/migration/overview.mdx +58 -0
- package/content/references/api/admin/commission-rates/batch-commission-rules.mdx +70 -0
- package/content/references/api/admin/commission-rates/create-commission-rate.mdx +95 -0
- package/content/references/api/admin/commission-rates/delete-commission-rate.mdx +40 -0
- package/content/references/api/admin/commission-rates/list-commission-rates.mdx +92 -0
- package/content/references/api/admin/commission-rates/retrieve-commission-rate.mdx +70 -0
- package/content/references/api/admin/commission-rates/update-commission-rate.mdx +84 -0
- package/content/references/api/admin/members/list-members.mdx +61 -0
- package/content/references/api/admin/offers/batch-create-offers.mdx +130 -0
- package/content/references/api/admin/offers/delete-offer.mdx +40 -0
- package/content/references/api/admin/offers/list-offers.mdx +106 -0
- package/content/references/api/admin/offers/retrieve-offer.mdx +82 -0
- package/content/references/api/admin/order-groups/list-order-groups.mdx +77 -0
- package/content/references/api/admin/order-groups/retrieve-order-group.mdx +56 -0
- package/content/references/api/admin/orders/get-order-commission-lines.mdx +65 -0
- package/content/references/api/admin/orders/get-order-order-group.mdx +56 -0
- package/content/references/api/admin/orders/list-orders.mdx +79 -0
- package/content/references/api/admin/payouts/list-payouts.mdx +75 -0
- package/content/references/api/admin/payouts/retrieve-payout.mdx +62 -0
- package/content/references/api/admin/product-attributes/create-attribute-value.mdx +76 -0
- package/content/references/api/admin/product-attributes/create-product-attribute.mdx +99 -0
- package/content/references/api/admin/product-attributes/delete-attribute-value.mdx +52 -0
- package/content/references/api/admin/product-attributes/delete-product-attribute.mdx +40 -0
- package/content/references/api/admin/product-attributes/list-product-attributes.mdx +91 -0
- package/content/references/api/admin/product-attributes/retrieve-product-attribute.mdx +81 -0
- package/content/references/api/admin/product-attributes/update-attribute-value.mdx +66 -0
- package/content/references/api/admin/product-attributes/update-product-attribute.mdx +76 -0
- package/content/references/api/admin/product-changes/cancel-product-change.mdx +68 -0
- package/content/references/api/admin/product-changes/confirm-product-change.mdx +47 -0
- package/content/references/api/admin/products/batch-product-attributes.mdx +96 -0
- package/content/references/api/admin/products/confirm-product.mdx +59 -0
- package/content/references/api/admin/products/create-product-variant.mdx +78 -0
- package/content/references/api/admin/products/create-product.mdx +169 -0
- package/content/references/api/admin/products/delete-product-variant.mdx +48 -0
- package/content/references/api/admin/products/delete-product.mdx +40 -0
- package/content/references/api/admin/products/list-product-variants.mdx +91 -0
- package/content/references/api/admin/products/list-products.mdx +109 -0
- package/content/references/api/admin/products/preview-product.mdx +78 -0
- package/content/references/api/admin/products/reject-product.mdx +59 -0
- package/content/references/api/admin/products/request-product-changes.mdx +59 -0
- package/content/references/api/admin/products/retrieve-product-variant.mdx +73 -0
- package/content/references/api/admin/products/retrieve-product.mdx +96 -0
- package/content/references/api/admin/products/set-product-sellers.mdx +47 -0
- package/content/references/api/admin/products/update-product-variant.mdx +89 -0
- package/content/references/api/admin/products/update-product.mdx +133 -0
- package/content/references/api/admin/sellers/add-seller-member.mdx +63 -0
- package/content/references/api/admin/sellers/approve-seller.mdx +54 -0
- package/content/references/api/admin/sellers/create-seller.mdx +100 -0
- package/content/references/api/admin/sellers/delete-member-invite.mdx +42 -0
- package/content/references/api/admin/sellers/delete-professional-details.mdx +52 -0
- package/content/references/api/admin/sellers/invite-seller-member.mdx +63 -0
- package/content/references/api/admin/sellers/list-member-invites.mdx +71 -0
- package/content/references/api/admin/sellers/list-seller-members.mdx +71 -0
- package/content/references/api/admin/sellers/list-seller-products.mdx +85 -0
- package/content/references/api/admin/sellers/list-sellers.mdx +96 -0
- package/content/references/api/admin/sellers/remove-seller-member.mdx +42 -0
- package/content/references/api/admin/sellers/resend-member-invite.mdx +55 -0
- package/content/references/api/admin/sellers/retrieve-seller.mdx +81 -0
- package/content/references/api/admin/sellers/suspend-seller.mdx +60 -0
- package/content/references/api/admin/sellers/terminate-seller.mdx +60 -0
- package/content/references/api/admin/sellers/unsuspend-seller.mdx +52 -0
- package/content/references/api/admin/sellers/unterminate-seller.mdx +52 -0
- package/content/references/api/admin/sellers/update-seller.mdx +83 -0
- package/content/references/api/admin/sellers/upsert-payment-details.mdx +88 -0
- package/content/references/api/admin/sellers/upsert-professional-details.mdx +78 -0
- package/content/references/api/admin/sellers/upsert-seller-address.mdx +91 -0
- package/content/references/api/admin.mdx +134 -0
- package/content/references/api/conventions.mdx +109 -0
- package/content/references/api/store/carts/add-line-item.mdx +115 -0
- package/content/references/api/store/carts/add-shipping-methods.mdx +84 -0
- package/content/references/api/store/carts/apply-promotions.mdx +83 -0
- package/content/references/api/store/carts/complete-cart.mdx +98 -0
- package/content/references/api/store/offers/list-offers.mdx +161 -0
- package/content/references/api/store/offers/retrieve-offer.mdx +112 -0
- package/content/references/api/store/order-groups/list-order-groups.mdx +105 -0
- package/content/references/api/store/order-groups/retrieve-order-group.mdx +78 -0
- package/content/references/api/store/product-attributes/list-product-attributes.mdx +134 -0
- package/content/references/api/store/product-attributes/retrieve-product-attribute.mdx +78 -0
- package/content/references/api/store/product-categories/list-product-categories.mdx +126 -0
- package/content/references/api/store/product-categories/retrieve-product-category.mdx +79 -0
- package/content/references/api/store/products/list-products.mdx +184 -0
- package/content/references/api/store/products/retrieve-product.mdx +107 -0
- package/content/references/api/store/search/search.mdx +136 -0
- package/content/references/api/store/sellers/list-sellers.mdx +105 -0
- package/content/references/api/store/sellers/retrieve-seller.mdx +62 -0
- package/content/references/api/store/shipping-options/list-shipping-options.mdx +74 -0
- package/content/references/api/store.mdx +67 -0
- package/content/references/api/vendor/members/accept-member-invite.mdx +65 -0
- package/content/references/api/vendor/members/retrieve-current-member.mdx +51 -0
- package/content/references/api/vendor/members/update-current-member.mdx +70 -0
- package/content/references/api/vendor/offers/batch-create-offers.mdx +123 -0
- package/content/references/api/vendor/offers/batch-offer-inventory-items.mdx +103 -0
- package/content/references/api/vendor/offers/create-offer.mdx +141 -0
- package/content/references/api/vendor/offers/delete-offer.mdx +51 -0
- package/content/references/api/vendor/offers/list-offers.mdx +125 -0
- package/content/references/api/vendor/offers/retrieve-offer.mdx +74 -0
- package/content/references/api/vendor/offers/update-offer.mdx +82 -0
- package/content/references/api/vendor/orders/cancel-fulfillment.mdx +63 -0
- package/content/references/api/vendor/orders/cancel-order.mdx +56 -0
- package/content/references/api/vendor/orders/complete-order.mdx +55 -0
- package/content/references/api/vendor/orders/create-fulfillment.mdx +76 -0
- package/content/references/api/vendor/orders/create-shipment.mdx +99 -0
- package/content/references/api/vendor/orders/get-order-commission-lines.mdx +66 -0
- package/content/references/api/vendor/orders/list-order-changes.mdx +75 -0
- package/content/references/api/vendor/orders/list-orders.mdx +103 -0
- package/content/references/api/vendor/orders/mark-fulfillment-delivered.mdx +62 -0
- package/content/references/api/vendor/orders/preview-order.mdx +65 -0
- package/content/references/api/vendor/orders/retrieve-order.mdx +84 -0
- package/content/references/api/vendor/payout-accounts/create-onboarding.mdx +68 -0
- package/content/references/api/vendor/payout-accounts/create-payout-account.mdx +59 -0
- package/content/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdx +60 -0
- package/content/references/api/vendor/payout-accounts/retrieve-payout-account.mdx +77 -0
- package/content/references/api/vendor/payouts/list-payouts.mdx +90 -0
- package/content/references/api/vendor/payouts/retrieve-payout.mdx +63 -0
- package/content/references/api/vendor/product-attributes/list-product-attributes.mdx +135 -0
- package/content/references/api/vendor/product-attributes/retrieve-product-attribute.mdx +71 -0
- package/content/references/api/vendor/product-variants/list-variants.mdx +136 -0
- package/content/references/api/vendor/products/batch-product-attributes.mdx +104 -0
- package/content/references/api/vendor/products/cancel-product-change.mdx +62 -0
- package/content/references/api/vendor/products/create-product-variant.mdx +92 -0
- package/content/references/api/vendor/products/create-product.mdx +197 -0
- package/content/references/api/vendor/products/delete-product-variant.mdx +68 -0
- package/content/references/api/vendor/products/delete-product.mdx +62 -0
- package/content/references/api/vendor/products/list-product-variants.mdx +114 -0
- package/content/references/api/vendor/products/list-products.mdx +163 -0
- package/content/references/api/vendor/products/preview-product.mdx +61 -0
- package/content/references/api/vendor/products/retrieve-product-variant.mdx +76 -0
- package/content/references/api/vendor/products/retrieve-product.mdx +69 -0
- package/content/references/api/vendor/products/update-product-variant.mdx +104 -0
- package/content/references/api/vendor/products/update-product.mdx +148 -0
- package/content/references/api/vendor/sellers/create-seller.mdx +150 -0
- package/content/references/api/vendor/sellers/delete-professional-details.mdx +54 -0
- package/content/references/api/vendor/sellers/invite-seller-member.mdx +67 -0
- package/content/references/api/vendor/sellers/list-member-invites.mdx +82 -0
- package/content/references/api/vendor/sellers/list-seller-members.mdx +80 -0
- package/content/references/api/vendor/sellers/list-sellers.mdx +71 -0
- package/content/references/api/vendor/sellers/remove-seller-member.mdx +48 -0
- package/content/references/api/vendor/sellers/retrieve-current-seller-member.mdx +59 -0
- package/content/references/api/vendor/sellers/retrieve-current-seller.mdx +69 -0
- package/content/references/api/vendor/sellers/select-seller.mdx +44 -0
- package/content/references/api/vendor/sellers/update-current-seller.mdx +108 -0
- package/content/references/api/vendor/sellers/update-member-role.mdx +51 -0
- package/content/references/api/vendor/sellers/upsert-payment-details.mdx +74 -0
- package/content/references/api/vendor/sellers/upsert-professional-details.mdx +70 -0
- package/content/references/api/vendor/sellers/upsert-seller-address.mdx +81 -0
- package/content/references/api/vendor.mdx +150 -0
- package/content/references/configuration.mdx +155 -0
- package/content/references/modules/commission.mdx +106 -0
- package/content/references/modules/custom-fields.mdx +45 -0
- package/content/references/modules/media.mdx +55 -0
- package/content/references/modules/offer.mdx +64 -0
- package/content/references/modules/payout.mdx +121 -0
- package/content/references/modules/product-attribute.mdx +111 -0
- package/content/references/modules/product-edit.mdx +80 -0
- package/content/references/modules/search.mdx +112 -0
- package/content/references/modules/seller.mdx +175 -0
- package/content/references/overview.mdx +70 -0
- package/content/references/workflows/cart/add-seller-shipping-method-to-cart.mdx +44 -0
- package/content/references/workflows/cart/complete-cart-with-split-orders.mdx +36 -0
- package/content/references/workflows/cart/list-seller-shipping-options-for-cart.mdx +39 -0
- package/content/references/workflows/cart/update-cart-seller-promotions.mdx +42 -0
- package/content/references/workflows/commission/batch-commission-rules.mdx +45 -0
- package/content/references/workflows/commission/create-commission-rates.mdx +41 -0
- package/content/references/workflows/commission/delete-commission-rates.mdx +34 -0
- package/content/references/workflows/commission/refresh-order-commission-lines.mdx +30 -0
- package/content/references/workflows/commission/update-commission-rates.mdx +35 -0
- package/content/references/workflows/media/set-category-images.mdx +41 -0
- package/content/references/workflows/media/set-collection-images.mdx +41 -0
- package/content/references/workflows/member/accept-member-invite.mdx +33 -0
- package/content/references/workflows/member/add-seller-member.mdx +30 -0
- package/content/references/workflows/member/create-member-invites.mdx +34 -0
- package/content/references/workflows/member/delete-member-invite.mdx +24 -0
- package/content/references/workflows/member/remove-seller-member.mdx +28 -0
- package/content/references/workflows/member/resend-member-invite.mdx +28 -0
- package/content/references/workflows/member/update-member-role.mdx +28 -0
- package/content/references/workflows/member/update-member.mdx +35 -0
- package/content/references/workflows/offer/batch-offer-inventory-items.mdx +58 -0
- package/content/references/workflows/offer/create-offers.mdx +63 -0
- package/content/references/workflows/offer/delete-offers.mdx +35 -0
- package/content/references/workflows/offer/update-offers.mdx +51 -0
- package/content/references/workflows/order/cancel-order-fulfillment.mdx +34 -0
- package/content/references/workflows/order/confirm-claim-request.mdx +25 -0
- package/content/references/workflows/order/confirm-exchange-request.mdx +25 -0
- package/content/references/workflows/order/confirm-order-edit-request.mdx +25 -0
- package/content/references/workflows/order/confirm-return-receive.mdx +25 -0
- package/content/references/workflows/order/create-order-fulfillment.mdx +45 -0
- package/content/references/workflows/order-group/get-order-group-detail.mdx +29 -0
- package/content/references/workflows/order-group/get-order-groups-list.mdx +36 -0
- package/content/references/workflows/overview.mdx +72 -0
- package/content/references/workflows/payout/create-onboarding.mdx +36 -0
- package/content/references/workflows/payout/create-payout-account.mdx +33 -0
- package/content/references/workflows/payout/create-payout.mdx +30 -0
- package/content/references/workflows/payout/process-payout-for-webhook.mdx +32 -0
- package/content/references/workflows/product/confirm-products.mdx +46 -0
- package/content/references/workflows/product/create-products.mdx +63 -0
- package/content/references/workflows/product/link-sellers-to-product-category.mdx +40 -0
- package/content/references/workflows/product/link-sellers-to-product.mdx +40 -0
- package/content/references/workflows/product/reject-product.mdx +46 -0
- package/content/references/workflows/product/request-product-change.mdx +46 -0
- package/content/references/workflows/product-attribute/add-product-attributes-to-product.mdx +49 -0
- package/content/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx +46 -0
- package/content/references/workflows/product-attribute/create-product-attribute-values.mdx +43 -0
- package/content/references/workflows/product-attribute/create-product-attributes.mdx +56 -0
- package/content/references/workflows/product-attribute/delete-product-attribute-values.mdx +30 -0
- package/content/references/workflows/product-attribute/delete-product-attributes.mdx +30 -0
- package/content/references/workflows/product-attribute/remove-product-attributes-from-product.mdx +29 -0
- package/content/references/workflows/product-attribute/update-product-attribute-values.mdx +44 -0
- package/content/references/workflows/product-attribute/update-product-attributes-on-product.mdx +41 -0
- package/content/references/workflows/product-attribute/update-product-attributes.mdx +48 -0
- package/content/references/workflows/product-attribute/upsert-product-attribute-values.mdx +43 -0
- package/content/references/workflows/product-edit/auto-confirm-product-change.mdx +39 -0
- package/content/references/workflows/product-edit/cancel-product-change.mdx +49 -0
- package/content/references/workflows/product-edit/confirm-product-change.mdx +57 -0
- package/content/references/workflows/product-edit/create-product-change.mdx +72 -0
- package/content/references/workflows/product-edit/reject-product-change.mdx +54 -0
- package/content/references/workflows/product-edit/stage-product-change.mdx +75 -0
- package/content/references/workflows/seller/approve-seller.mdx +34 -0
- package/content/references/workflows/seller/create-seller-account.mdx +59 -0
- package/content/references/workflows/seller/create-seller-defaults.mdx +22 -0
- package/content/references/workflows/seller/create-sellers.mdx +65 -0
- package/content/references/workflows/seller/delete-seller-professional-details.mdx +37 -0
- package/content/references/workflows/seller/delete-sellers.mdx +24 -0
- package/content/references/workflows/seller/invite-seller.mdx +28 -0
- package/content/references/workflows/seller/suspend-seller.mdx +35 -0
- package/content/references/workflows/seller/terminate-seller.mdx +35 -0
- package/content/references/workflows/seller/unsuspend-seller.mdx +34 -0
- package/content/references/workflows/seller/unterminate-seller.mdx +34 -0
- package/content/references/workflows/seller/update-seller-address.mdx +55 -0
- package/content/references/workflows/seller/update-seller-payment-details.mdx +52 -0
- package/content/references/workflows/seller/update-seller-professional-details.mdx +48 -0
- package/content/references/workflows/seller/update-sellers.mdx +57 -0
- package/content/resources/ai/llms.mdx +74 -0
- package/content/resources/ai/mcp.mdx +152 -0
- package/content/resources/ai/overview.mdx +97 -0
- package/content/resources/customization/custom-fields.mdx +182 -0
- package/content/resources/customization/extend-a-workflow.mdx +39 -0
- package/content/resources/customization/extending-panels.mdx +309 -0
- package/content/resources/deployment/medusa-cloud.mdx +167 -0
- package/content/resources/integrations/notifications.mdx +39 -0
- package/content/resources/integrations/search.mdx +122 -0
- package/content/resources/integrations/stripe-connect.mdx +395 -0
- package/content/resources/tutorials/add-a-block.mdx +74 -0
- package/content/resources/tutorials/attributes-and-variant-axes.mdx +111 -0
- package/content/resources/tutorials/build-a-block.mdx +134 -0
- package/content/resources/tutorials/configure-commissions.mdx +127 -0
- package/content/resources/tutorials/custom-api-route.mdx +142 -0
- package/content/resources/tutorials/custom-panel-page.mdx +78 -0
- package/content/resources/tutorials/first-marketplace.mdx +45 -0
- package/content/resources/tutorials/handle-product-requests.mdx +80 -0
- package/content/resources/tutorials/import-export-products.mdx +96 -0
- package/content/resources/tutorials/master-products-and-offers.mdx +89 -0
- package/content/resources/tutorials/recompose-a-page.mdx +129 -0
- package/content/resources/tutorials/replace-panel-components.mdx +116 -0
- package/content/resources/tutorials/seller-payouts-stripe.mdx +89 -0
- package/content/telemetry.mdx +67 -0
- package/content/tools/api-client.mdx +155 -0
- package/content/tools/cli.mdx +196 -0
- package/content/tools/dashboard-sdk.mdx +35 -0
- package/content/user-guide/admin/overview.mdx +23 -0
- package/content/user-guide/admin/stores.mdx +193 -0
- package/content/user-guide/vendor/overview.mdx +23 -0
- package/content/user-guide/vendor/stores.mdx +209 -0
- package/llms.txt +307 -0
- package/package.json +33 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Member Invites"
|
|
3
|
+
api: "GET /vendor/sellers/{id}/members/invites"
|
|
4
|
+
description: "List the seller's pending member invites."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the seller's member invites that have not been accepted yet.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The seller's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
## Query parameters
|
|
16
|
+
|
|
17
|
+
<ParamField query="limit" type="number" default="50">
|
|
18
|
+
Maximum number of items to return.
|
|
19
|
+
</ParamField>
|
|
20
|
+
|
|
21
|
+
<ParamField query="offset" type="number" default="0">
|
|
22
|
+
Number of items to skip.
|
|
23
|
+
</ParamField>
|
|
24
|
+
|
|
25
|
+
<ParamField query="order" type="string">
|
|
26
|
+
Field to sort by, prefixed with `-` for descending order.
|
|
27
|
+
</ParamField>
|
|
28
|
+
|
|
29
|
+
<ParamField query="fields" type="string">
|
|
30
|
+
Comma-separated fields to include in the response.
|
|
31
|
+
</ParamField>
|
|
32
|
+
|
|
33
|
+
## Response
|
|
34
|
+
|
|
35
|
+
<ResponseField name="member_invites" type="object[]">
|
|
36
|
+
<Expandable title="properties">
|
|
37
|
+
<ResponseField name="id" type="string">The invite's ID.</ResponseField>
|
|
38
|
+
<ResponseField name="email" type="string">The invited email.</ResponseField>
|
|
39
|
+
<ResponseField name="accepted" type="boolean">Always `false` in this list.</ResponseField>
|
|
40
|
+
<ResponseField name="role_id" type="string">The role granted on acceptance.</ResponseField>
|
|
41
|
+
<ResponseField name="expires_at" type="string">Expiration timestamp.</ResponseField>
|
|
42
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
43
|
+
</Expandable>
|
|
44
|
+
</ResponseField>
|
|
45
|
+
|
|
46
|
+
<ResponseField name="count" type="number">Total number of pending invites.</ResponseField>
|
|
47
|
+
<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>
|
|
48
|
+
<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>
|
|
49
|
+
|
|
50
|
+
<RequestExample>
|
|
51
|
+
```bash cURL
|
|
52
|
+
curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/invites' \
|
|
53
|
+
-H 'Authorization: Bearer <token>' \
|
|
54
|
+
-H 'x-seller-id: <seller_id>'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```ts JS Client
|
|
58
|
+
const { member_invites } = await client.vendor.sellers.$id.members.invites.query({
|
|
59
|
+
$id: "sel_01HXYZ",
|
|
60
|
+
})
|
|
61
|
+
```
|
|
62
|
+
</RequestExample>
|
|
63
|
+
|
|
64
|
+
<ResponseExample>
|
|
65
|
+
```json 200
|
|
66
|
+
{
|
|
67
|
+
"member_invites": [
|
|
68
|
+
{
|
|
69
|
+
"id": "meminv_01HXYZ",
|
|
70
|
+
"email": "teammate@acme.com",
|
|
71
|
+
"accepted": false,
|
|
72
|
+
"role_id": "role_seller_order_management",
|
|
73
|
+
"expires_at": "2026-01-22T10:00:00.000Z",
|
|
74
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"count": 1,
|
|
78
|
+
"offset": 0,
|
|
79
|
+
"limit": 50
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
</ResponseExample>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Seller Members"
|
|
3
|
+
api: "GET /vendor/sellers/{id}/members"
|
|
4
|
+
description: "List the members of a seller account."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the seller's team members with their roles.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The seller's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
## Query parameters
|
|
16
|
+
|
|
17
|
+
<ParamField query="limit" type="number" default="50">
|
|
18
|
+
Maximum number of items to return.
|
|
19
|
+
</ParamField>
|
|
20
|
+
|
|
21
|
+
<ParamField query="offset" type="number" default="0">
|
|
22
|
+
Number of items to skip.
|
|
23
|
+
</ParamField>
|
|
24
|
+
|
|
25
|
+
<ParamField query="order" type="string">
|
|
26
|
+
Field to sort by, prefixed with `-` for descending order.
|
|
27
|
+
</ParamField>
|
|
28
|
+
|
|
29
|
+
<ParamField query="fields" type="string">
|
|
30
|
+
Comma-separated fields to include in the response.
|
|
31
|
+
</ParamField>
|
|
32
|
+
|
|
33
|
+
## Response
|
|
34
|
+
|
|
35
|
+
<ResponseField name="seller_members" type="object[]">
|
|
36
|
+
<Expandable title="properties">
|
|
37
|
+
<ResponseField name="id" type="string">The seller member's ID.</ResponseField>
|
|
38
|
+
<ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>
|
|
39
|
+
<ResponseField name="member" type="object">The member's profile (name, email, etc.).</ResponseField>
|
|
40
|
+
<ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>
|
|
41
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
42
|
+
</Expandable>
|
|
43
|
+
</ResponseField>
|
|
44
|
+
|
|
45
|
+
<ResponseField name="count" type="number">Total number of members.</ResponseField>
|
|
46
|
+
<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>
|
|
47
|
+
<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>
|
|
48
|
+
|
|
49
|
+
<RequestExample>
|
|
50
|
+
```bash cURL
|
|
51
|
+
curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members' \
|
|
52
|
+
-H 'Authorization: Bearer <token>' \
|
|
53
|
+
-H 'x-seller-id: <seller_id>'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```ts JS Client
|
|
57
|
+
const { seller_members } = await client.vendor.sellers.$id.members.query({
|
|
58
|
+
$id: "sel_01HXYZ",
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
</RequestExample>
|
|
62
|
+
|
|
63
|
+
<ResponseExample>
|
|
64
|
+
```json 200
|
|
65
|
+
{
|
|
66
|
+
"seller_members": [
|
|
67
|
+
{
|
|
68
|
+
"id": "selmem_01HXYZ",
|
|
69
|
+
"is_owner": true,
|
|
70
|
+
"member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Doe", "email": "owner@acme.com" },
|
|
71
|
+
"rbac_role": { "id": "role_seller_administration", "name": "Administration" },
|
|
72
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"count": 1,
|
|
76
|
+
"offset": 0,
|
|
77
|
+
"limit": 50
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
</ResponseExample>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Sellers"
|
|
3
|
+
api: "GET /vendor/sellers"
|
|
4
|
+
description: "List the seller accounts the authenticated member belongs to."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the member's seller memberships (excluding terminated sellers), each with the related seller and role.
|
|
8
|
+
|
|
9
|
+
<Note>
|
|
10
|
+
This route requires only the `Authorization` header — no `x-seller-id` — since it is used before a seller is selected.
|
|
11
|
+
</Note>
|
|
12
|
+
|
|
13
|
+
## Query parameters
|
|
14
|
+
|
|
15
|
+
<ParamField query="limit" type="number" default="50">
|
|
16
|
+
Maximum number of items to return.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
<ParamField query="offset" type="number" default="0">
|
|
20
|
+
Number of items to skip.
|
|
21
|
+
</ParamField>
|
|
22
|
+
|
|
23
|
+
<ParamField query="order" type="string">
|
|
24
|
+
Field to sort by, prefixed with `-` for descending order.
|
|
25
|
+
</ParamField>
|
|
26
|
+
|
|
27
|
+
<ParamField query="fields" type="string">
|
|
28
|
+
Comma-separated fields to include in the response.
|
|
29
|
+
</ParamField>
|
|
30
|
+
|
|
31
|
+
## Response
|
|
32
|
+
|
|
33
|
+
<ResponseField name="seller_members" type="object[]">
|
|
34
|
+
<Expandable title="properties">
|
|
35
|
+
<ResponseField name="id" type="string">The seller member's ID.</ResponseField>
|
|
36
|
+
<ResponseField name="seller" type="object">The related seller.</ResponseField>
|
|
37
|
+
<ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>
|
|
38
|
+
</Expandable>
|
|
39
|
+
</ResponseField>
|
|
40
|
+
|
|
41
|
+
<ResponseField name="count" type="number">Total number of memberships.</ResponseField>
|
|
42
|
+
<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>
|
|
43
|
+
<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>
|
|
44
|
+
|
|
45
|
+
<RequestExample>
|
|
46
|
+
```bash cURL
|
|
47
|
+
curl 'http://localhost:9000/vendor/sellers' \
|
|
48
|
+
-H 'Authorization: Bearer <token>'
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```ts JS Client
|
|
52
|
+
const { seller_members } = await client.vendor.sellers.query()
|
|
53
|
+
```
|
|
54
|
+
</RequestExample>
|
|
55
|
+
|
|
56
|
+
<ResponseExample>
|
|
57
|
+
```json 200
|
|
58
|
+
{
|
|
59
|
+
"seller_members": [
|
|
60
|
+
{
|
|
61
|
+
"id": "selmem_01HXYZ",
|
|
62
|
+
"seller": { "id": "sel_01HXYZ", "name": "Acme Store", "status": "open" },
|
|
63
|
+
"rbac_role": { "id": "role_seller_administration", "name": "Administration" }
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"count": 1,
|
|
67
|
+
"offset": 0,
|
|
68
|
+
"limit": 50
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
</ResponseExample>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Remove Seller Member"
|
|
3
|
+
api: "DELETE /vendor/sellers/{id}/members/{member_id}"
|
|
4
|
+
description: "Remove a member from the seller's team."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Removes the seller member and returns a deletion confirmation.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The seller's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
<ParamField path="member_id" type="string" required>
|
|
16
|
+
The seller member's ID.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
## Response
|
|
20
|
+
|
|
21
|
+
<ResponseField name="id" type="string">The removed seller member's ID.</ResponseField>
|
|
22
|
+
<ResponseField name="object" type="string">Always `seller_member`.</ResponseField>
|
|
23
|
+
<ResponseField name="deleted" type="boolean">Whether the member was removed.</ResponseField>
|
|
24
|
+
|
|
25
|
+
<RequestExample>
|
|
26
|
+
```bash cURL
|
|
27
|
+
curl -X DELETE 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/selmem_01HXYZ' \
|
|
28
|
+
-H 'Authorization: Bearer <token>' \
|
|
29
|
+
-H 'x-seller-id: <seller_id>'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```ts JS Client
|
|
33
|
+
const { deleted } = await client.vendor.sellers.$id.members.$member_id.delete({
|
|
34
|
+
$id: "sel_01HXYZ",
|
|
35
|
+
$member_id: "selmem_01HXYZ",
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
</RequestExample>
|
|
39
|
+
|
|
40
|
+
<ResponseExample>
|
|
41
|
+
```json 200
|
|
42
|
+
{
|
|
43
|
+
"id": "selmem_01HXYZ",
|
|
44
|
+
"object": "seller_member",
|
|
45
|
+
"deleted": true
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
</ResponseExample>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Retrieve Current Seller Member"
|
|
3
|
+
api: "GET /vendor/sellers/{id}/members/me"
|
|
4
|
+
description: "Retrieve the authenticated member's membership in a seller."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the seller member record linking the authenticated member to the given seller.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The seller's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
## Query parameters
|
|
16
|
+
|
|
17
|
+
<ParamField query="fields" type="string">
|
|
18
|
+
Comma-separated fields to include in the response.
|
|
19
|
+
</ParamField>
|
|
20
|
+
|
|
21
|
+
## Response
|
|
22
|
+
|
|
23
|
+
<ResponseField name="seller_member" type="object">
|
|
24
|
+
<Expandable title="properties">
|
|
25
|
+
<ResponseField name="id" type="string">The seller member's ID.</ResponseField>
|
|
26
|
+
<ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>
|
|
27
|
+
<ResponseField name="member" type="object">The member's profile.</ResponseField>
|
|
28
|
+
<ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>
|
|
29
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
30
|
+
</Expandable>
|
|
31
|
+
</ResponseField>
|
|
32
|
+
|
|
33
|
+
<RequestExample>
|
|
34
|
+
```bash cURL
|
|
35
|
+
curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/me' \
|
|
36
|
+
-H 'Authorization: Bearer <token>' \
|
|
37
|
+
-H 'x-seller-id: <seller_id>'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```ts JS Client
|
|
41
|
+
const { seller_member } = await client.vendor.sellers.$id.members.me.query({
|
|
42
|
+
$id: "sel_01HXYZ",
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
</RequestExample>
|
|
46
|
+
|
|
47
|
+
<ResponseExample>
|
|
48
|
+
```json 200
|
|
49
|
+
{
|
|
50
|
+
"seller_member": {
|
|
51
|
+
"id": "selmem_01HXYZ",
|
|
52
|
+
"is_owner": true,
|
|
53
|
+
"member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Doe" },
|
|
54
|
+
"rbac_role": { "id": "role_seller_administration", "name": "Administration" },
|
|
55
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
</ResponseExample>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Retrieve Current Seller"
|
|
3
|
+
api: "GET /vendor/sellers/me"
|
|
4
|
+
description: "Retrieve the seller the request is scoped to."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the seller identified by the current seller context (`x-seller-id` header or session), including address, payment details, and professional details.
|
|
8
|
+
|
|
9
|
+
## Query parameters
|
|
10
|
+
|
|
11
|
+
<ParamField query="fields" type="string">
|
|
12
|
+
Comma-separated fields to include in the response.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
## Response
|
|
16
|
+
|
|
17
|
+
<ResponseField name="seller" type="object">
|
|
18
|
+
<Expandable title="properties">
|
|
19
|
+
<ResponseField name="id" type="string">The seller's ID.</ResponseField>
|
|
20
|
+
<ResponseField name="name" type="string">The seller's name.</ResponseField>
|
|
21
|
+
<ResponseField name="handle" type="string">The seller's handle.</ResponseField>
|
|
22
|
+
<ResponseField name="email" type="string">The seller's email.</ResponseField>
|
|
23
|
+
<ResponseField name="phone" type="string">The seller's phone.</ResponseField>
|
|
24
|
+
<ResponseField name="description" type="string">Store description.</ResponseField>
|
|
25
|
+
<ResponseField name="logo" type="string">Logo URL.</ResponseField>
|
|
26
|
+
<ResponseField name="banner" type="string">Banner URL.</ResponseField>
|
|
27
|
+
<ResponseField name="website_url" type="string">Website URL.</ResponseField>
|
|
28
|
+
<ResponseField name="currency_code" type="string">Default currency.</ResponseField>
|
|
29
|
+
<ResponseField name="status" type="enum">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>
|
|
30
|
+
<ResponseField name="approved_at" type="string">Approval timestamp.</ResponseField>
|
|
31
|
+
<ResponseField name="rejected_at" type="string">Rejection timestamp.</ResponseField>
|
|
32
|
+
<ResponseField name="is_premium" type="boolean">Whether the seller has premium status.</ResponseField>
|
|
33
|
+
<ResponseField name="closed_from" type="string">Start of a temporary store closure.</ResponseField>
|
|
34
|
+
<ResponseField name="closed_to" type="string">End of a temporary store closure.</ResponseField>
|
|
35
|
+
<ResponseField name="closure_note" type="string">Closure message shown to customers.</ResponseField>
|
|
36
|
+
<ResponseField name="address" type="object">The seller's address.</ResponseField>
|
|
37
|
+
<ResponseField name="payment_details" type="object">The seller's bank details.</ResponseField>
|
|
38
|
+
<ResponseField name="professional_details" type="object">The seller's business registration details.</ResponseField>
|
|
39
|
+
<ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>
|
|
40
|
+
</Expandable>
|
|
41
|
+
</ResponseField>
|
|
42
|
+
|
|
43
|
+
<RequestExample>
|
|
44
|
+
```bash cURL
|
|
45
|
+
curl 'http://localhost:9000/vendor/sellers/me' \
|
|
46
|
+
-H 'Authorization: Bearer <token>' \
|
|
47
|
+
-H 'x-seller-id: <seller_id>'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```ts JS Client
|
|
51
|
+
const { seller } = await client.vendor.sellers.me.query()
|
|
52
|
+
```
|
|
53
|
+
</RequestExample>
|
|
54
|
+
|
|
55
|
+
<ResponseExample>
|
|
56
|
+
```json 200
|
|
57
|
+
{
|
|
58
|
+
"seller": {
|
|
59
|
+
"id": "sel_01HXYZ",
|
|
60
|
+
"name": "Acme Store",
|
|
61
|
+
"handle": "acme-store",
|
|
62
|
+
"email": "store@acme.com",
|
|
63
|
+
"status": "open",
|
|
64
|
+
"currency_code": "usd",
|
|
65
|
+
"address": { "city": "New York", "country_code": "us" }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
</ResponseExample>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Select Seller"
|
|
3
|
+
api: "POST /vendor/sellers/select"
|
|
4
|
+
description: "Set the active seller for the member's session."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Stores the chosen seller in the session after verifying the member belongs to it.
|
|
8
|
+
|
|
9
|
+
<Note>
|
|
10
|
+
Requires only the `Authorization` header. Session-based clients get the seller stored server-side; token-based clients should send `x-seller-id` on subsequent requests instead.
|
|
11
|
+
</Note>
|
|
12
|
+
|
|
13
|
+
## Body parameters
|
|
14
|
+
|
|
15
|
+
<ParamField body="seller_id" type="string" required>
|
|
16
|
+
The ID of the seller to activate for this session.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
## Response
|
|
20
|
+
|
|
21
|
+
<ResponseField name="success" type="boolean">
|
|
22
|
+
Whether the seller was selected.
|
|
23
|
+
</ResponseField>
|
|
24
|
+
|
|
25
|
+
<RequestExample>
|
|
26
|
+
```bash cURL
|
|
27
|
+
curl -X POST 'http://localhost:9000/vendor/sellers/select' \
|
|
28
|
+
-H 'Authorization: Bearer <token>' \
|
|
29
|
+
-H 'Content-Type: application/json' \
|
|
30
|
+
-d '{"seller_id": "sel_01HXYZ"}'
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```ts JS Client
|
|
34
|
+
const { success } = await client.vendor.sellers.select.mutate({
|
|
35
|
+
seller_id: "sel_01HXYZ",
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
</RequestExample>
|
|
39
|
+
|
|
40
|
+
<ResponseExample>
|
|
41
|
+
```json 200
|
|
42
|
+
{ "success": true }
|
|
43
|
+
```
|
|
44
|
+
</ResponseExample>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Update Current Seller"
|
|
3
|
+
api: "POST /vendor/sellers/me"
|
|
4
|
+
description: "Update the seller the request is scoped to."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Updates the current seller's profile and returns the full seller object.
|
|
8
|
+
|
|
9
|
+
## Body parameters
|
|
10
|
+
|
|
11
|
+
<ParamField body="name" type="string">
|
|
12
|
+
The seller's display name.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
<ParamField body="handle" type="string">
|
|
16
|
+
Unique handle for the seller's storefront URL.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
<ParamField body="email" type="string">
|
|
20
|
+
The seller's contact email.
|
|
21
|
+
</ParamField>
|
|
22
|
+
|
|
23
|
+
<ParamField body="phone" type="string">
|
|
24
|
+
The seller's contact phone number.
|
|
25
|
+
</ParamField>
|
|
26
|
+
|
|
27
|
+
<ParamField body="description" type="string">
|
|
28
|
+
Description of the seller's store.
|
|
29
|
+
</ParamField>
|
|
30
|
+
|
|
31
|
+
<ParamField body="logo" type="string">
|
|
32
|
+
URL of the seller's logo.
|
|
33
|
+
</ParamField>
|
|
34
|
+
|
|
35
|
+
<ParamField body="banner" type="string">
|
|
36
|
+
URL of the seller's banner image.
|
|
37
|
+
</ParamField>
|
|
38
|
+
|
|
39
|
+
<ParamField body="website_url" type="string">
|
|
40
|
+
The seller's website URL.
|
|
41
|
+
</ParamField>
|
|
42
|
+
|
|
43
|
+
<ParamField body="closed_from" type="string">
|
|
44
|
+
Start date of a temporary store closure (ISO 8601).
|
|
45
|
+
</ParamField>
|
|
46
|
+
|
|
47
|
+
<ParamField body="closed_to" type="string">
|
|
48
|
+
End date of a temporary store closure (ISO 8601).
|
|
49
|
+
</ParamField>
|
|
50
|
+
|
|
51
|
+
<ParamField body="closure_note" type="string">
|
|
52
|
+
Message shown to customers while the store is closed.
|
|
53
|
+
</ParamField>
|
|
54
|
+
|
|
55
|
+
<ParamField body="metadata" type="object">
|
|
56
|
+
Custom key-value pairs.
|
|
57
|
+
</ParamField>
|
|
58
|
+
|
|
59
|
+
<ParamField body="additional_data" type="object">
|
|
60
|
+
Custom data passed to workflow hooks.
|
|
61
|
+
</ParamField>
|
|
62
|
+
|
|
63
|
+
## Query parameters
|
|
64
|
+
|
|
65
|
+
<ParamField query="fields" type="string">
|
|
66
|
+
Comma-separated fields to include in the response.
|
|
67
|
+
</ParamField>
|
|
68
|
+
|
|
69
|
+
## Response
|
|
70
|
+
|
|
71
|
+
<ResponseField name="seller" type="object">
|
|
72
|
+
<Expandable title="properties">
|
|
73
|
+
<ResponseField name="id" type="string">The seller's ID.</ResponseField>
|
|
74
|
+
<ResponseField name="name" type="string">The seller's name.</ResponseField>
|
|
75
|
+
<ResponseField name="handle" type="string">The seller's handle.</ResponseField>
|
|
76
|
+
<ResponseField name="status" type="enum">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>
|
|
77
|
+
</Expandable>
|
|
78
|
+
</ResponseField>
|
|
79
|
+
|
|
80
|
+
<RequestExample>
|
|
81
|
+
```bash cURL
|
|
82
|
+
curl -X POST 'http://localhost:9000/vendor/sellers/me' \
|
|
83
|
+
-H 'Authorization: Bearer <token>' \
|
|
84
|
+
-H 'x-seller-id: <seller_id>' \
|
|
85
|
+
-H 'Content-Type: application/json' \
|
|
86
|
+
-d '{"description": "Handmade goods from Brooklyn."}'
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```ts JS Client
|
|
90
|
+
const { seller } = await client.vendor.sellers.me.mutate({
|
|
91
|
+
description: "Handmade goods from Brooklyn.",
|
|
92
|
+
})
|
|
93
|
+
```
|
|
94
|
+
</RequestExample>
|
|
95
|
+
|
|
96
|
+
<ResponseExample>
|
|
97
|
+
```json 200
|
|
98
|
+
{
|
|
99
|
+
"seller": {
|
|
100
|
+
"id": "sel_01HXYZ",
|
|
101
|
+
"name": "Acme Store",
|
|
102
|
+
"handle": "acme-store",
|
|
103
|
+
"description": "Handmade goods from Brooklyn.",
|
|
104
|
+
"status": "open"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
</ResponseExample>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Update Member Role"
|
|
3
|
+
api: "POST /vendor/sellers/{id}/members/{member_id}"
|
|
4
|
+
description: "Change the role of a seller team member."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Updates the role assigned to a seller member.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The seller's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
<ParamField path="member_id" type="string" required>
|
|
16
|
+
The seller member's ID.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
## Body parameters
|
|
20
|
+
|
|
21
|
+
<ParamField body="role_id" type="enum" required>
|
|
22
|
+
The new role. One of `role_seller_administration`, `role_seller_inventory_management`, `role_seller_order_management`, `role_seller_accounting`, `role_seller_support`.
|
|
23
|
+
</ParamField>
|
|
24
|
+
|
|
25
|
+
## Response
|
|
26
|
+
|
|
27
|
+
An empty object on success.
|
|
28
|
+
|
|
29
|
+
<RequestExample>
|
|
30
|
+
```bash cURL
|
|
31
|
+
curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/selmem_01HXYZ' \
|
|
32
|
+
-H 'Authorization: Bearer <token>' \
|
|
33
|
+
-H 'x-seller-id: <seller_id>' \
|
|
34
|
+
-H 'Content-Type: application/json' \
|
|
35
|
+
-d '{"role_id": "role_seller_accounting"}'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```ts JS Client
|
|
39
|
+
await client.vendor.sellers.$id.members.$member_id.mutate({
|
|
40
|
+
$id: "sel_01HXYZ",
|
|
41
|
+
$member_id: "selmem_01HXYZ",
|
|
42
|
+
role_id: "role_seller_accounting",
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
</RequestExample>
|
|
46
|
+
|
|
47
|
+
<ResponseExample>
|
|
48
|
+
```json 200
|
|
49
|
+
{}
|
|
50
|
+
```
|
|
51
|
+
</ResponseExample>
|