@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.
Files changed (283) hide show
  1. package/README.md +24 -0
  2. package/content/blocks.mdx +209 -0
  3. package/content/learn/architecture.mdx +215 -0
  4. package/content/learn/attributes.mdx +89 -0
  5. package/content/learn/blocks.mdx +99 -0
  6. package/content/learn/commissions.mdx +175 -0
  7. package/content/learn/concepts.mdx +84 -0
  8. package/content/learn/installation.mdx +117 -0
  9. package/content/learn/introduction.mdx +71 -0
  10. package/content/learn/offers.mdx +78 -0
  11. package/content/learn/order-groups.mdx +114 -0
  12. package/content/learn/payouts.mdx +175 -0
  13. package/content/learn/product-requests.mdx +82 -0
  14. package/content/learn/products.mdx +79 -0
  15. package/content/learn/registry.mdx +155 -0
  16. package/content/learn/seller-members.mdx +62 -0
  17. package/content/learn/sellers.mdx +118 -0
  18. package/content/migration/from-1-x-to-2-0.mdx +152 -0
  19. package/content/migration/from-2-0-to-2-1.mdx +105 -0
  20. package/content/migration/overview.mdx +58 -0
  21. package/content/references/api/admin/commission-rates/batch-commission-rules.mdx +70 -0
  22. package/content/references/api/admin/commission-rates/create-commission-rate.mdx +95 -0
  23. package/content/references/api/admin/commission-rates/delete-commission-rate.mdx +40 -0
  24. package/content/references/api/admin/commission-rates/list-commission-rates.mdx +92 -0
  25. package/content/references/api/admin/commission-rates/retrieve-commission-rate.mdx +70 -0
  26. package/content/references/api/admin/commission-rates/update-commission-rate.mdx +84 -0
  27. package/content/references/api/admin/members/list-members.mdx +61 -0
  28. package/content/references/api/admin/offers/batch-create-offers.mdx +130 -0
  29. package/content/references/api/admin/offers/delete-offer.mdx +40 -0
  30. package/content/references/api/admin/offers/list-offers.mdx +106 -0
  31. package/content/references/api/admin/offers/retrieve-offer.mdx +82 -0
  32. package/content/references/api/admin/order-groups/list-order-groups.mdx +77 -0
  33. package/content/references/api/admin/order-groups/retrieve-order-group.mdx +56 -0
  34. package/content/references/api/admin/orders/get-order-commission-lines.mdx +65 -0
  35. package/content/references/api/admin/orders/get-order-order-group.mdx +56 -0
  36. package/content/references/api/admin/orders/list-orders.mdx +79 -0
  37. package/content/references/api/admin/payouts/list-payouts.mdx +75 -0
  38. package/content/references/api/admin/payouts/retrieve-payout.mdx +62 -0
  39. package/content/references/api/admin/product-attributes/create-attribute-value.mdx +76 -0
  40. package/content/references/api/admin/product-attributes/create-product-attribute.mdx +99 -0
  41. package/content/references/api/admin/product-attributes/delete-attribute-value.mdx +52 -0
  42. package/content/references/api/admin/product-attributes/delete-product-attribute.mdx +40 -0
  43. package/content/references/api/admin/product-attributes/list-product-attributes.mdx +91 -0
  44. package/content/references/api/admin/product-attributes/retrieve-product-attribute.mdx +81 -0
  45. package/content/references/api/admin/product-attributes/update-attribute-value.mdx +66 -0
  46. package/content/references/api/admin/product-attributes/update-product-attribute.mdx +76 -0
  47. package/content/references/api/admin/product-changes/cancel-product-change.mdx +68 -0
  48. package/content/references/api/admin/product-changes/confirm-product-change.mdx +47 -0
  49. package/content/references/api/admin/products/batch-product-attributes.mdx +96 -0
  50. package/content/references/api/admin/products/confirm-product.mdx +59 -0
  51. package/content/references/api/admin/products/create-product-variant.mdx +78 -0
  52. package/content/references/api/admin/products/create-product.mdx +169 -0
  53. package/content/references/api/admin/products/delete-product-variant.mdx +48 -0
  54. package/content/references/api/admin/products/delete-product.mdx +40 -0
  55. package/content/references/api/admin/products/list-product-variants.mdx +91 -0
  56. package/content/references/api/admin/products/list-products.mdx +109 -0
  57. package/content/references/api/admin/products/preview-product.mdx +78 -0
  58. package/content/references/api/admin/products/reject-product.mdx +59 -0
  59. package/content/references/api/admin/products/request-product-changes.mdx +59 -0
  60. package/content/references/api/admin/products/retrieve-product-variant.mdx +73 -0
  61. package/content/references/api/admin/products/retrieve-product.mdx +96 -0
  62. package/content/references/api/admin/products/set-product-sellers.mdx +47 -0
  63. package/content/references/api/admin/products/update-product-variant.mdx +89 -0
  64. package/content/references/api/admin/products/update-product.mdx +133 -0
  65. package/content/references/api/admin/sellers/add-seller-member.mdx +63 -0
  66. package/content/references/api/admin/sellers/approve-seller.mdx +54 -0
  67. package/content/references/api/admin/sellers/create-seller.mdx +100 -0
  68. package/content/references/api/admin/sellers/delete-member-invite.mdx +42 -0
  69. package/content/references/api/admin/sellers/delete-professional-details.mdx +52 -0
  70. package/content/references/api/admin/sellers/invite-seller-member.mdx +63 -0
  71. package/content/references/api/admin/sellers/list-member-invites.mdx +71 -0
  72. package/content/references/api/admin/sellers/list-seller-members.mdx +71 -0
  73. package/content/references/api/admin/sellers/list-seller-products.mdx +85 -0
  74. package/content/references/api/admin/sellers/list-sellers.mdx +96 -0
  75. package/content/references/api/admin/sellers/remove-seller-member.mdx +42 -0
  76. package/content/references/api/admin/sellers/resend-member-invite.mdx +55 -0
  77. package/content/references/api/admin/sellers/retrieve-seller.mdx +81 -0
  78. package/content/references/api/admin/sellers/suspend-seller.mdx +60 -0
  79. package/content/references/api/admin/sellers/terminate-seller.mdx +60 -0
  80. package/content/references/api/admin/sellers/unsuspend-seller.mdx +52 -0
  81. package/content/references/api/admin/sellers/unterminate-seller.mdx +52 -0
  82. package/content/references/api/admin/sellers/update-seller.mdx +83 -0
  83. package/content/references/api/admin/sellers/upsert-payment-details.mdx +88 -0
  84. package/content/references/api/admin/sellers/upsert-professional-details.mdx +78 -0
  85. package/content/references/api/admin/sellers/upsert-seller-address.mdx +91 -0
  86. package/content/references/api/admin.mdx +134 -0
  87. package/content/references/api/conventions.mdx +109 -0
  88. package/content/references/api/store/carts/add-line-item.mdx +115 -0
  89. package/content/references/api/store/carts/add-shipping-methods.mdx +84 -0
  90. package/content/references/api/store/carts/apply-promotions.mdx +83 -0
  91. package/content/references/api/store/carts/complete-cart.mdx +98 -0
  92. package/content/references/api/store/offers/list-offers.mdx +161 -0
  93. package/content/references/api/store/offers/retrieve-offer.mdx +112 -0
  94. package/content/references/api/store/order-groups/list-order-groups.mdx +105 -0
  95. package/content/references/api/store/order-groups/retrieve-order-group.mdx +78 -0
  96. package/content/references/api/store/product-attributes/list-product-attributes.mdx +134 -0
  97. package/content/references/api/store/product-attributes/retrieve-product-attribute.mdx +78 -0
  98. package/content/references/api/store/product-categories/list-product-categories.mdx +126 -0
  99. package/content/references/api/store/product-categories/retrieve-product-category.mdx +79 -0
  100. package/content/references/api/store/products/list-products.mdx +184 -0
  101. package/content/references/api/store/products/retrieve-product.mdx +107 -0
  102. package/content/references/api/store/search/search.mdx +136 -0
  103. package/content/references/api/store/sellers/list-sellers.mdx +105 -0
  104. package/content/references/api/store/sellers/retrieve-seller.mdx +62 -0
  105. package/content/references/api/store/shipping-options/list-shipping-options.mdx +74 -0
  106. package/content/references/api/store.mdx +67 -0
  107. package/content/references/api/vendor/members/accept-member-invite.mdx +65 -0
  108. package/content/references/api/vendor/members/retrieve-current-member.mdx +51 -0
  109. package/content/references/api/vendor/members/update-current-member.mdx +70 -0
  110. package/content/references/api/vendor/offers/batch-create-offers.mdx +123 -0
  111. package/content/references/api/vendor/offers/batch-offer-inventory-items.mdx +103 -0
  112. package/content/references/api/vendor/offers/create-offer.mdx +141 -0
  113. package/content/references/api/vendor/offers/delete-offer.mdx +51 -0
  114. package/content/references/api/vendor/offers/list-offers.mdx +125 -0
  115. package/content/references/api/vendor/offers/retrieve-offer.mdx +74 -0
  116. package/content/references/api/vendor/offers/update-offer.mdx +82 -0
  117. package/content/references/api/vendor/orders/cancel-fulfillment.mdx +63 -0
  118. package/content/references/api/vendor/orders/cancel-order.mdx +56 -0
  119. package/content/references/api/vendor/orders/complete-order.mdx +55 -0
  120. package/content/references/api/vendor/orders/create-fulfillment.mdx +76 -0
  121. package/content/references/api/vendor/orders/create-shipment.mdx +99 -0
  122. package/content/references/api/vendor/orders/get-order-commission-lines.mdx +66 -0
  123. package/content/references/api/vendor/orders/list-order-changes.mdx +75 -0
  124. package/content/references/api/vendor/orders/list-orders.mdx +103 -0
  125. package/content/references/api/vendor/orders/mark-fulfillment-delivered.mdx +62 -0
  126. package/content/references/api/vendor/orders/preview-order.mdx +65 -0
  127. package/content/references/api/vendor/orders/retrieve-order.mdx +84 -0
  128. package/content/references/api/vendor/payout-accounts/create-onboarding.mdx +68 -0
  129. package/content/references/api/vendor/payout-accounts/create-payout-account.mdx +59 -0
  130. package/content/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdx +60 -0
  131. package/content/references/api/vendor/payout-accounts/retrieve-payout-account.mdx +77 -0
  132. package/content/references/api/vendor/payouts/list-payouts.mdx +90 -0
  133. package/content/references/api/vendor/payouts/retrieve-payout.mdx +63 -0
  134. package/content/references/api/vendor/product-attributes/list-product-attributes.mdx +135 -0
  135. package/content/references/api/vendor/product-attributes/retrieve-product-attribute.mdx +71 -0
  136. package/content/references/api/vendor/product-variants/list-variants.mdx +136 -0
  137. package/content/references/api/vendor/products/batch-product-attributes.mdx +104 -0
  138. package/content/references/api/vendor/products/cancel-product-change.mdx +62 -0
  139. package/content/references/api/vendor/products/create-product-variant.mdx +92 -0
  140. package/content/references/api/vendor/products/create-product.mdx +197 -0
  141. package/content/references/api/vendor/products/delete-product-variant.mdx +68 -0
  142. package/content/references/api/vendor/products/delete-product.mdx +62 -0
  143. package/content/references/api/vendor/products/list-product-variants.mdx +114 -0
  144. package/content/references/api/vendor/products/list-products.mdx +163 -0
  145. package/content/references/api/vendor/products/preview-product.mdx +61 -0
  146. package/content/references/api/vendor/products/retrieve-product-variant.mdx +76 -0
  147. package/content/references/api/vendor/products/retrieve-product.mdx +69 -0
  148. package/content/references/api/vendor/products/update-product-variant.mdx +104 -0
  149. package/content/references/api/vendor/products/update-product.mdx +148 -0
  150. package/content/references/api/vendor/sellers/create-seller.mdx +150 -0
  151. package/content/references/api/vendor/sellers/delete-professional-details.mdx +54 -0
  152. package/content/references/api/vendor/sellers/invite-seller-member.mdx +67 -0
  153. package/content/references/api/vendor/sellers/list-member-invites.mdx +82 -0
  154. package/content/references/api/vendor/sellers/list-seller-members.mdx +80 -0
  155. package/content/references/api/vendor/sellers/list-sellers.mdx +71 -0
  156. package/content/references/api/vendor/sellers/remove-seller-member.mdx +48 -0
  157. package/content/references/api/vendor/sellers/retrieve-current-seller-member.mdx +59 -0
  158. package/content/references/api/vendor/sellers/retrieve-current-seller.mdx +69 -0
  159. package/content/references/api/vendor/sellers/select-seller.mdx +44 -0
  160. package/content/references/api/vendor/sellers/update-current-seller.mdx +108 -0
  161. package/content/references/api/vendor/sellers/update-member-role.mdx +51 -0
  162. package/content/references/api/vendor/sellers/upsert-payment-details.mdx +74 -0
  163. package/content/references/api/vendor/sellers/upsert-professional-details.mdx +70 -0
  164. package/content/references/api/vendor/sellers/upsert-seller-address.mdx +81 -0
  165. package/content/references/api/vendor.mdx +150 -0
  166. package/content/references/configuration.mdx +155 -0
  167. package/content/references/modules/commission.mdx +106 -0
  168. package/content/references/modules/custom-fields.mdx +45 -0
  169. package/content/references/modules/media.mdx +55 -0
  170. package/content/references/modules/offer.mdx +64 -0
  171. package/content/references/modules/payout.mdx +121 -0
  172. package/content/references/modules/product-attribute.mdx +111 -0
  173. package/content/references/modules/product-edit.mdx +80 -0
  174. package/content/references/modules/search.mdx +112 -0
  175. package/content/references/modules/seller.mdx +175 -0
  176. package/content/references/overview.mdx +70 -0
  177. package/content/references/workflows/cart/add-seller-shipping-method-to-cart.mdx +44 -0
  178. package/content/references/workflows/cart/complete-cart-with-split-orders.mdx +36 -0
  179. package/content/references/workflows/cart/list-seller-shipping-options-for-cart.mdx +39 -0
  180. package/content/references/workflows/cart/update-cart-seller-promotions.mdx +42 -0
  181. package/content/references/workflows/commission/batch-commission-rules.mdx +45 -0
  182. package/content/references/workflows/commission/create-commission-rates.mdx +41 -0
  183. package/content/references/workflows/commission/delete-commission-rates.mdx +34 -0
  184. package/content/references/workflows/commission/refresh-order-commission-lines.mdx +30 -0
  185. package/content/references/workflows/commission/update-commission-rates.mdx +35 -0
  186. package/content/references/workflows/media/set-category-images.mdx +41 -0
  187. package/content/references/workflows/media/set-collection-images.mdx +41 -0
  188. package/content/references/workflows/member/accept-member-invite.mdx +33 -0
  189. package/content/references/workflows/member/add-seller-member.mdx +30 -0
  190. package/content/references/workflows/member/create-member-invites.mdx +34 -0
  191. package/content/references/workflows/member/delete-member-invite.mdx +24 -0
  192. package/content/references/workflows/member/remove-seller-member.mdx +28 -0
  193. package/content/references/workflows/member/resend-member-invite.mdx +28 -0
  194. package/content/references/workflows/member/update-member-role.mdx +28 -0
  195. package/content/references/workflows/member/update-member.mdx +35 -0
  196. package/content/references/workflows/offer/batch-offer-inventory-items.mdx +58 -0
  197. package/content/references/workflows/offer/create-offers.mdx +63 -0
  198. package/content/references/workflows/offer/delete-offers.mdx +35 -0
  199. package/content/references/workflows/offer/update-offers.mdx +51 -0
  200. package/content/references/workflows/order/cancel-order-fulfillment.mdx +34 -0
  201. package/content/references/workflows/order/confirm-claim-request.mdx +25 -0
  202. package/content/references/workflows/order/confirm-exchange-request.mdx +25 -0
  203. package/content/references/workflows/order/confirm-order-edit-request.mdx +25 -0
  204. package/content/references/workflows/order/confirm-return-receive.mdx +25 -0
  205. package/content/references/workflows/order/create-order-fulfillment.mdx +45 -0
  206. package/content/references/workflows/order-group/get-order-group-detail.mdx +29 -0
  207. package/content/references/workflows/order-group/get-order-groups-list.mdx +36 -0
  208. package/content/references/workflows/overview.mdx +72 -0
  209. package/content/references/workflows/payout/create-onboarding.mdx +36 -0
  210. package/content/references/workflows/payout/create-payout-account.mdx +33 -0
  211. package/content/references/workflows/payout/create-payout.mdx +30 -0
  212. package/content/references/workflows/payout/process-payout-for-webhook.mdx +32 -0
  213. package/content/references/workflows/product/confirm-products.mdx +46 -0
  214. package/content/references/workflows/product/create-products.mdx +63 -0
  215. package/content/references/workflows/product/link-sellers-to-product-category.mdx +40 -0
  216. package/content/references/workflows/product/link-sellers-to-product.mdx +40 -0
  217. package/content/references/workflows/product/reject-product.mdx +46 -0
  218. package/content/references/workflows/product/request-product-change.mdx +46 -0
  219. package/content/references/workflows/product-attribute/add-product-attributes-to-product.mdx +49 -0
  220. package/content/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx +46 -0
  221. package/content/references/workflows/product-attribute/create-product-attribute-values.mdx +43 -0
  222. package/content/references/workflows/product-attribute/create-product-attributes.mdx +56 -0
  223. package/content/references/workflows/product-attribute/delete-product-attribute-values.mdx +30 -0
  224. package/content/references/workflows/product-attribute/delete-product-attributes.mdx +30 -0
  225. package/content/references/workflows/product-attribute/remove-product-attributes-from-product.mdx +29 -0
  226. package/content/references/workflows/product-attribute/update-product-attribute-values.mdx +44 -0
  227. package/content/references/workflows/product-attribute/update-product-attributes-on-product.mdx +41 -0
  228. package/content/references/workflows/product-attribute/update-product-attributes.mdx +48 -0
  229. package/content/references/workflows/product-attribute/upsert-product-attribute-values.mdx +43 -0
  230. package/content/references/workflows/product-edit/auto-confirm-product-change.mdx +39 -0
  231. package/content/references/workflows/product-edit/cancel-product-change.mdx +49 -0
  232. package/content/references/workflows/product-edit/confirm-product-change.mdx +57 -0
  233. package/content/references/workflows/product-edit/create-product-change.mdx +72 -0
  234. package/content/references/workflows/product-edit/reject-product-change.mdx +54 -0
  235. package/content/references/workflows/product-edit/stage-product-change.mdx +75 -0
  236. package/content/references/workflows/seller/approve-seller.mdx +34 -0
  237. package/content/references/workflows/seller/create-seller-account.mdx +59 -0
  238. package/content/references/workflows/seller/create-seller-defaults.mdx +22 -0
  239. package/content/references/workflows/seller/create-sellers.mdx +65 -0
  240. package/content/references/workflows/seller/delete-seller-professional-details.mdx +37 -0
  241. package/content/references/workflows/seller/delete-sellers.mdx +24 -0
  242. package/content/references/workflows/seller/invite-seller.mdx +28 -0
  243. package/content/references/workflows/seller/suspend-seller.mdx +35 -0
  244. package/content/references/workflows/seller/terminate-seller.mdx +35 -0
  245. package/content/references/workflows/seller/unsuspend-seller.mdx +34 -0
  246. package/content/references/workflows/seller/unterminate-seller.mdx +34 -0
  247. package/content/references/workflows/seller/update-seller-address.mdx +55 -0
  248. package/content/references/workflows/seller/update-seller-payment-details.mdx +52 -0
  249. package/content/references/workflows/seller/update-seller-professional-details.mdx +48 -0
  250. package/content/references/workflows/seller/update-sellers.mdx +57 -0
  251. package/content/resources/ai/llms.mdx +74 -0
  252. package/content/resources/ai/mcp.mdx +152 -0
  253. package/content/resources/ai/overview.mdx +97 -0
  254. package/content/resources/customization/custom-fields.mdx +182 -0
  255. package/content/resources/customization/extend-a-workflow.mdx +39 -0
  256. package/content/resources/customization/extending-panels.mdx +309 -0
  257. package/content/resources/deployment/medusa-cloud.mdx +167 -0
  258. package/content/resources/integrations/notifications.mdx +39 -0
  259. package/content/resources/integrations/search.mdx +122 -0
  260. package/content/resources/integrations/stripe-connect.mdx +395 -0
  261. package/content/resources/tutorials/add-a-block.mdx +74 -0
  262. package/content/resources/tutorials/attributes-and-variant-axes.mdx +111 -0
  263. package/content/resources/tutorials/build-a-block.mdx +134 -0
  264. package/content/resources/tutorials/configure-commissions.mdx +127 -0
  265. package/content/resources/tutorials/custom-api-route.mdx +142 -0
  266. package/content/resources/tutorials/custom-panel-page.mdx +78 -0
  267. package/content/resources/tutorials/first-marketplace.mdx +45 -0
  268. package/content/resources/tutorials/handle-product-requests.mdx +80 -0
  269. package/content/resources/tutorials/import-export-products.mdx +96 -0
  270. package/content/resources/tutorials/master-products-and-offers.mdx +89 -0
  271. package/content/resources/tutorials/recompose-a-page.mdx +129 -0
  272. package/content/resources/tutorials/replace-panel-components.mdx +116 -0
  273. package/content/resources/tutorials/seller-payouts-stripe.mdx +89 -0
  274. package/content/telemetry.mdx +67 -0
  275. package/content/tools/api-client.mdx +155 -0
  276. package/content/tools/cli.mdx +196 -0
  277. package/content/tools/dashboard-sdk.mdx +35 -0
  278. package/content/user-guide/admin/overview.mdx +23 -0
  279. package/content/user-guide/admin/stores.mdx +193 -0
  280. package/content/user-guide/vendor/overview.mdx +23 -0
  281. package/content/user-guide/vendor/stores.mdx +209 -0
  282. package/llms.txt +307 -0
  283. package/package.json +33 -0
@@ -0,0 +1,70 @@
1
+ ---
2
+ title: "Update Current Member"
3
+ api: "POST /vendor/members/me"
4
+ description: "Update the authenticated member's profile."
5
+ ---
6
+
7
+ Updates the member's personal details and returns the seller member record for the active seller.
8
+
9
+ ## Body parameters
10
+
11
+ <ParamField body="first_name" type="string">
12
+ The member's first name.
13
+ </ParamField>
14
+
15
+ <ParamField body="last_name" type="string">
16
+ The member's last name.
17
+ </ParamField>
18
+
19
+ <ParamField body="locale" type="string">
20
+ The member's preferred locale (e.g. `en-US`).
21
+ </ParamField>
22
+
23
+ ## Query parameters
24
+
25
+ <ParamField query="fields" type="string">
26
+ Comma-separated fields to include in the response.
27
+ </ParamField>
28
+
29
+ ## Response
30
+
31
+ <ResponseField name="seller_member" type="object">
32
+ <Expandable title="properties">
33
+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>
34
+ <ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>
35
+ <ResponseField name="member" type="object">The updated member profile.</ResponseField>
36
+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>
37
+ <ResponseField name="seller" type="object">The active seller.</ResponseField>
38
+ </Expandable>
39
+ </ResponseField>
40
+
41
+ <RequestExample>
42
+ ```bash cURL
43
+ curl -X POST 'http://localhost:9000/vendor/members/me' \
44
+ -H 'Authorization: Bearer <token>' \
45
+ -H 'x-seller-id: <seller_id>' \
46
+ -H 'Content-Type: application/json' \
47
+ -d '{"first_name": "Jane", "last_name": "Smith"}'
48
+ ```
49
+
50
+ ```ts JS Client
51
+ const { seller_member } = await client.vendor.members.me.mutate({
52
+ first_name: "Jane",
53
+ last_name: "Smith",
54
+ })
55
+ ```
56
+ </RequestExample>
57
+
58
+ <ResponseExample>
59
+ ```json 200
60
+ {
61
+ "seller_member": {
62
+ "id": "selmem_01HXYZ",
63
+ "is_owner": true,
64
+ "member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Smith" },
65
+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" },
66
+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store" }
67
+ }
68
+ }
69
+ ```
70
+ </ResponseExample>
@@ -0,0 +1,123 @@
1
+ ---
2
+ title: "Batch Create Offers"
3
+ api: "POST /vendor/offers/batch"
4
+ description: "Create up to 100 offers in a single request."
5
+ ---
6
+
7
+ Creates multiple offers at once; the whole batch is validated and processed together.
8
+
9
+ ## Query parameters
10
+
11
+ <ParamField query="fields" type="string">
12
+ Comma-separated fields to include in the returned offers. Prefix with `+`/`-` to add to or remove from the defaults.
13
+ </ParamField>
14
+
15
+ ## Body parameters
16
+
17
+ <ParamField body="offers" type="object[]" required>
18
+ Between 1 and 100 offers to create.
19
+ <Expandable title="properties">
20
+ <ParamField body="sku" type="string" required>The seller's SKU for the listing.</ParamField>
21
+ <ParamField body="variant_id" type="string" required>ID of the product variant being listed.</ParamField>
22
+ <ParamField body="shipping_profile_id" type="string" required>ID of the shipping profile used to fulfill the offer.</ParamField>
23
+ <ParamField body="prices" type="object[]" required>
24
+ At least one price.
25
+ <Expandable title="properties">
26
+ <ParamField body="amount" type="number" required>Price amount.</ParamField>
27
+ <ParamField body="currency_code" type="string" required>Currency code, e.g. `usd`.</ParamField>
28
+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply; positive integer.</ParamField>
29
+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply; positive integer.</ParamField>
30
+ <ParamField body="rules" type="object">Price rules as attribute-to-value pairs.</ParamField>
31
+ </Expandable>
32
+ </ParamField>
33
+ <ParamField body="inventory_items" type="object[]" required>
34
+ At least one inventory item.
35
+ <Expandable title="properties">
36
+ <ParamField body="title" type="string">Title for the created inventory item.</ParamField>
37
+ <ParamField body="sku" type="string">SKU for the created inventory item.</ParamField>
38
+ <ParamField body="required_quantity" type="number" default="1">Units consumed per sale; positive integer.</ParamField>
39
+ <ParamField body="stock_levels" type="object[]">
40
+ <Expandable title="properties">
41
+ <ParamField body="location_id" type="string" required>Stock location ID.</ParamField>
42
+ <ParamField body="stocked_quantity" type="number" required>Stocked quantity at the location; non-negative integer.</ParamField>
43
+ </Expandable>
44
+ </ParamField>
45
+ </Expandable>
46
+ </ParamField>
47
+ <ParamField body="ean" type="string">EAN barcode.</ParamField>
48
+ <ParamField body="upc" type="string">UPC barcode.</ParamField>
49
+ <ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>
50
+ </Expandable>
51
+ </ParamField>
52
+
53
+ ## Response
54
+
55
+ <ResponseField name="offers" type="object[]">
56
+ <Expandable title="properties">
57
+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>
58
+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>
59
+ <ResponseField name="sku" type="string">The seller's SKU for the listing.</ResponseField>
60
+ <ResponseField name="prices" type="object[]">The offer's prices.</ResponseField>
61
+ <ResponseField name="inventory_items" type="object[]">Linked inventory items.</ResponseField>
62
+ </Expandable>
63
+ </ResponseField>
64
+
65
+ <RequestExample>
66
+ ```bash cURL
67
+ curl -X POST 'http://localhost:9000/vendor/offers/batch' \
68
+ -H 'Authorization: Bearer <token>' \
69
+ -H 'x-seller-id: <seller_id>' \
70
+ -H 'Content-Type: application/json' \
71
+ -d '{
72
+ "offers": [
73
+ {
74
+ "sku": "ACME-SHIRT-S",
75
+ "variant_id": "variant_01HABC",
76
+ "shipping_profile_id": "sp_01HXYZ",
77
+ "prices": [{ "amount": 2500, "currency_code": "usd" }],
78
+ "inventory_items": [{ "required_quantity": 1 }]
79
+ },
80
+ {
81
+ "sku": "ACME-SHIRT-M",
82
+ "variant_id": "variant_01HXYZ",
83
+ "shipping_profile_id": "sp_01HXYZ",
84
+ "prices": [{ "amount": 2500, "currency_code": "usd" }],
85
+ "inventory_items": [{ "required_quantity": 1 }]
86
+ }
87
+ ]
88
+ }'
89
+ ```
90
+
91
+ ```ts JS Client
92
+ const { offers } = await client.vendor.offers.batch.mutate({
93
+ offers: [
94
+ {
95
+ sku: "ACME-SHIRT-M",
96
+ variant_id: "variant_01HXYZ",
97
+ shipping_profile_id: "sp_01HXYZ",
98
+ prices: [{ amount: 2500, currency_code: "usd" }],
99
+ inventory_items: [{ required_quantity: 1 }],
100
+ },
101
+ ],
102
+ })
103
+ ```
104
+ </RequestExample>
105
+
106
+ <ResponseExample>
107
+ ```json 201
108
+ {
109
+ "offers": [
110
+ {
111
+ "id": "offer_01HABC",
112
+ "variant_id": "variant_01HABC",
113
+ "sku": "ACME-SHIRT-S"
114
+ },
115
+ {
116
+ "id": "offer_01HXYZ",
117
+ "variant_id": "variant_01HXYZ",
118
+ "sku": "ACME-SHIRT-M"
119
+ }
120
+ ]
121
+ }
122
+ ```
123
+ </ResponseExample>
@@ -0,0 +1,103 @@
1
+ ---
2
+ title: "Batch Offer Inventory Items"
3
+ api: "POST /vendor/offers/{id}/inventory-items/batch"
4
+ description: "Link, update, or unlink inventory items on an offer."
5
+ ---
6
+
7
+ Manages the inventory items backing an offer in one request and returns the refreshed offer.
8
+
9
+ ## Path parameters
10
+
11
+ <ParamField path="id" type="string" required>
12
+ The offer's ID.
13
+ </ParamField>
14
+
15
+ ## Body parameters
16
+
17
+ <ParamField body="create" type="object[]">
18
+ Inventory items to link to the offer.
19
+ <Expandable title="properties">
20
+ <ParamField body="inventory_item_id" type="string" required>ID of an existing inventory item.</ParamField>
21
+ <ParamField body="required_quantity" type="number" default="1">Units consumed per sale; positive integer.</ParamField>
22
+ </Expandable>
23
+ </ParamField>
24
+
25
+ <ParamField body="update" type="object[]">
26
+ Existing links to update.
27
+ <Expandable title="properties">
28
+ <ParamField body="inventory_item_id" type="string" required>ID of the linked inventory item.</ParamField>
29
+ <ParamField body="required_quantity" type="number" required>New units consumed per sale; positive integer.</ParamField>
30
+ </Expandable>
31
+ </ParamField>
32
+
33
+ <ParamField body="delete" type="string[]">
34
+ Inventory item IDs to unlink from the offer.
35
+ </ParamField>
36
+
37
+ ## Response
38
+
39
+ <ResponseField name="created" type="object[]">
40
+ Links created by this request.
41
+ </ResponseField>
42
+
43
+ <ResponseField name="updated" type="object[]">
44
+ Links updated by this request.
45
+ </ResponseField>
46
+
47
+ <ResponseField name="deleted" type="string[]">
48
+ Inventory item IDs unlinked by this request.
49
+ </ResponseField>
50
+
51
+ <ResponseField name="offer" type="object">
52
+ <Expandable title="properties">
53
+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>
54
+ <ResponseField name="sku" type="string">The seller's SKU for the listing.</ResponseField>
55
+ <ResponseField name="inventory_items" type="object[]">The offer's inventory items after the batch, with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>
56
+ </Expandable>
57
+ </ResponseField>
58
+
59
+ <RequestExample>
60
+ ```bash cURL
61
+ curl -X POST 'http://localhost:9000/vendor/offers/offer_01HXYZ/inventory-items/batch' \
62
+ -H 'Authorization: Bearer <token>' \
63
+ -H 'x-seller-id: <seller_id>' \
64
+ -H 'Content-Type: application/json' \
65
+ -d '{
66
+ "create": [{ "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }],
67
+ "update": [{ "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }],
68
+ "delete": ["iitem_01HDEF"]
69
+ }'
70
+ ```
71
+
72
+ ```ts JS Client
73
+ const { offer, created, updated, deleted } =
74
+ await client.vendor.offers.$id.inventoryItems.batch.mutate({
75
+ $id: "offer_01HXYZ",
76
+ create: [{ inventory_item_id: "iitem_01HABC", required_quantity: 2 }],
77
+ update: [{ inventory_item_id: "iitem_01HXYZ", required_quantity: 1 }],
78
+ delete: ["iitem_01HDEF"],
79
+ })
80
+ ```
81
+ </RequestExample>
82
+
83
+ <ResponseExample>
84
+ ```json 200
85
+ {
86
+ "created": [
87
+ { "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }
88
+ ],
89
+ "updated": [
90
+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }
91
+ ],
92
+ "deleted": ["iitem_01HDEF"],
93
+ "offer": {
94
+ "id": "offer_01HXYZ",
95
+ "sku": "ACME-SHIRT-M",
96
+ "inventory_items": [
97
+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 },
98
+ { "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }
99
+ ]
100
+ }
101
+ }
102
+ ```
103
+ </ResponseExample>
@@ -0,0 +1,141 @@
1
+ ---
2
+ title: "Create Offer"
3
+ api: "POST /vendor/offers"
4
+ description: "Create a listing for a product variant."
5
+ ---
6
+
7
+ Creates the seller's offer for a variant — the seller's SKU, shipping profile, prices, and backing inventory.
8
+
9
+ <Note>
10
+ A product can be listed by many sellers; the offer is what carries the seller's own price and stock for a variant.
11
+ </Note>
12
+
13
+ ## Query parameters
14
+
15
+ <ParamField query="fields" type="string">
16
+ Comma-separated fields to include in the returned offer. Prefix with `+`/`-` to add to or remove from the defaults.
17
+ </ParamField>
18
+
19
+ ## Body parameters
20
+
21
+ <ParamField body="sku" type="string" required>
22
+ The seller's SKU for this listing.
23
+ </ParamField>
24
+
25
+ <ParamField body="variant_id" type="string" required>
26
+ ID of the product variant being listed.
27
+ </ParamField>
28
+
29
+ <ParamField body="shipping_profile_id" type="string" required>
30
+ ID of the seller's shipping profile used to fulfill the offer.
31
+ </ParamField>
32
+
33
+ <ParamField body="inventory_items" type="object[]" required>
34
+ Inventory items backing the offer; at least one is required.
35
+ <Expandable title="properties">
36
+ <ParamField body="title" type="string">Title for the created inventory item.</ParamField>
37
+ <ParamField body="sku" type="string">SKU for the created inventory item.</ParamField>
38
+ <ParamField body="required_quantity" type="number" default="1">Units of the item consumed per sale; positive integer.</ParamField>
39
+ <ParamField body="stock_levels" type="object[]">
40
+ <Expandable title="properties">
41
+ <ParamField body="location_id" type="string" required>Stock location ID.</ParamField>
42
+ <ParamField body="stocked_quantity" type="number" required>Stocked quantity at the location; non-negative integer.</ParamField>
43
+ </Expandable>
44
+ </ParamField>
45
+ </Expandable>
46
+ </ParamField>
47
+
48
+ <ParamField body="prices" type="object[]" required>
49
+ Offer prices; at least one is required.
50
+ <Expandable title="properties">
51
+ <ParamField body="amount" type="number" required>Price amount.</ParamField>
52
+ <ParamField body="currency_code" type="string" required>Currency code, e.g. `usd`.</ParamField>
53
+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply; positive integer.</ParamField>
54
+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply; positive integer.</ParamField>
55
+ <ParamField body="rules" type="object">Price rules as attribute-to-value pairs, e.g. `{"region_id": "reg_01..."}`.</ParamField>
56
+ </Expandable>
57
+ </ParamField>
58
+
59
+ <ParamField body="ean" type="string">
60
+ EAN barcode.
61
+ </ParamField>
62
+
63
+ <ParamField body="upc" type="string">
64
+ UPC barcode.
65
+ </ParamField>
66
+
67
+ <ParamField body="metadata" type="object">
68
+ Custom key-value pairs.
69
+ </ParamField>
70
+
71
+ ## Response
72
+
73
+ <ResponseField name="offer" type="object">
74
+ <Expandable title="properties">
75
+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>
76
+ <ResponseField name="seller_id" type="string">ID of the owning seller.</ResponseField>
77
+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>
78
+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>
79
+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile.</ResponseField>
80
+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>
81
+ <ResponseField name="prices" type="object[]">Offer prices with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>
82
+ <ResponseField name="inventory_items" type="object[]">Linked inventory items with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>
83
+ </Expandable>
84
+ </ResponseField>
85
+
86
+ <RequestExample>
87
+ ```bash cURL
88
+ curl -X POST 'http://localhost:9000/vendor/offers' \
89
+ -H 'Authorization: Bearer <token>' \
90
+ -H 'x-seller-id: <seller_id>' \
91
+ -H 'Content-Type: application/json' \
92
+ -d '{
93
+ "sku": "ACME-SHIRT-M",
94
+ "variant_id": "variant_01HXYZ",
95
+ "shipping_profile_id": "sp_01HXYZ",
96
+ "prices": [{ "amount": 2500, "currency_code": "usd" }],
97
+ "inventory_items": [
98
+ {
99
+ "required_quantity": 1,
100
+ "stock_levels": [{ "location_id": "sloc_01HXYZ", "stocked_quantity": 100 }]
101
+ }
102
+ ]
103
+ }'
104
+ ```
105
+
106
+ ```ts JS Client
107
+ const { offer } = await client.vendor.offers.mutate({
108
+ sku: "ACME-SHIRT-M",
109
+ variant_id: "variant_01HXYZ",
110
+ shipping_profile_id: "sp_01HXYZ",
111
+ prices: [{ amount: 2500, currency_code: "usd" }],
112
+ inventory_items: [
113
+ {
114
+ required_quantity: 1,
115
+ stock_levels: [{ location_id: "sloc_01HXYZ", stocked_quantity: 100 }],
116
+ },
117
+ ],
118
+ })
119
+ ```
120
+ </RequestExample>
121
+
122
+ <ResponseExample>
123
+ ```json 201
124
+ {
125
+ "offer": {
126
+ "id": "offer_01HXYZ",
127
+ "seller_id": "sel_01HXYZ",
128
+ "variant_id": "variant_01HXYZ",
129
+ "product_id": "prod_01HXYZ",
130
+ "shipping_profile_id": "sp_01HXYZ",
131
+ "sku": "ACME-SHIRT-M",
132
+ "prices": [
133
+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }
134
+ ],
135
+ "inventory_items": [
136
+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }
137
+ ]
138
+ }
139
+ }
140
+ ```
141
+ </ResponseExample>
@@ -0,0 +1,51 @@
1
+ ---
2
+ title: "Delete Offer"
3
+ api: "DELETE /vendor/offers/{id}"
4
+ description: "Delete one of the seller's offers."
5
+ ---
6
+
7
+ Deletes the offer immediately; the underlying product and variant are unaffected.
8
+
9
+ ## Path parameters
10
+
11
+ <ParamField path="id" type="string" required>
12
+ The offer's ID.
13
+ </ParamField>
14
+
15
+ ## Response
16
+
17
+ <ResponseField name="id" type="string">
18
+ The deleted offer's ID.
19
+ </ResponseField>
20
+
21
+ <ResponseField name="object" type="string">
22
+ Always `offer`.
23
+ </ResponseField>
24
+
25
+ <ResponseField name="deleted" type="boolean">
26
+ Always `true`.
27
+ </ResponseField>
28
+
29
+ <RequestExample>
30
+ ```bash cURL
31
+ curl -X DELETE 'http://localhost:9000/vendor/offers/offer_01HXYZ' \
32
+ -H 'Authorization: Bearer <token>' \
33
+ -H 'x-seller-id: <seller_id>'
34
+ ```
35
+
36
+ ```ts JS Client
37
+ const { id, deleted } = await client.vendor.offers.$id.delete({
38
+ $id: "offer_01HXYZ",
39
+ })
40
+ ```
41
+ </RequestExample>
42
+
43
+ <ResponseExample>
44
+ ```json 200
45
+ {
46
+ "id": "offer_01HXYZ",
47
+ "object": "offer",
48
+ "deleted": true
49
+ }
50
+ ```
51
+ </ResponseExample>
@@ -0,0 +1,125 @@
1
+ ---
2
+ title: "List Offers"
3
+ api: "GET /vendor/offers"
4
+ description: "Retrieve a paginated list of the seller's offers."
5
+ ---
6
+
7
+ Returns the seller's offers with variant, shipping profile, prices, and linked inventory items.
8
+
9
+ ## Query parameters
10
+
11
+ <ParamField query="limit" type="number" default="50">
12
+ The maximum number of offers to return.
13
+ </ParamField>
14
+
15
+ <ParamField query="offset" type="number" default="0">
16
+ The number of offers to skip before returning results.
17
+ </ParamField>
18
+
19
+ <ParamField query="order" type="string">
20
+ The field to sort by, e.g. `created_at` or `-created_at` for descending.
21
+ </ParamField>
22
+
23
+ <ParamField query="fields" type="string">
24
+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.
25
+ </ParamField>
26
+
27
+ <ParamField query="q" type="string">
28
+ Search term matched against offer fields.
29
+ </ParamField>
30
+
31
+ <ParamField query="id" type="string | string[]">
32
+ Filter by offer ID(s).
33
+ </ParamField>
34
+
35
+ <ParamField query="variant_id" type="string | string[]">
36
+ Filter by product variant ID(s).
37
+ </ParamField>
38
+
39
+ <ParamField query="shipping_profile_id" type="string | string[]">
40
+ Filter by shipping profile ID(s).
41
+ </ParamField>
42
+
43
+ <ParamField query="sku" type="string | string[]">
44
+ Filter by seller SKU(s).
45
+ </ParamField>
46
+
47
+ <ParamField query="ean" type="string | string[]">
48
+ Filter by EAN(s).
49
+ </ParamField>
50
+
51
+ <ParamField query="upc" type="string | string[]">
52
+ Filter by UPC(s).
53
+ </ParamField>
54
+
55
+ <ParamField query="created_at" type="object">
56
+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.
57
+ </ParamField>
58
+
59
+ <ParamField query="updated_at" type="object">
60
+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.
61
+ </ParamField>
62
+
63
+ ## Response
64
+
65
+ <ResponseField name="offers" type="object[]">
66
+ <Expandable title="properties">
67
+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>
68
+ <ResponseField name="seller_id" type="string">ID of the owning seller.</ResponseField>
69
+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>
70
+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>
71
+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile used to fulfill the offer.</ResponseField>
72
+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>
73
+ <ResponseField name="ean" type="string">EAN barcode.</ResponseField>
74
+ <ResponseField name="upc" type="string">UPC barcode.</ResponseField>
75
+ <ResponseField name="seller" type="object">The seller with `id`, `name`, and `handle`.</ResponseField>
76
+ <ResponseField name="product_variant" type="object">The variant with `id`, `title`, and `sku`.</ResponseField>
77
+ <ResponseField name="shipping_profile" type="object">The shipping profile with `id` and `name`.</ResponseField>
78
+ <ResponseField name="prices" type="object[]">Offer prices with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>
79
+ <ResponseField name="inventory_items" type="object[]">Linked inventory items with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>
80
+ </Expandable>
81
+ </ResponseField>
82
+
83
+ <ResponseField name="count" type="number">Total number of matching offers.</ResponseField>
84
+ <ResponseField name="offset" type="number">Number of skipped offers.</ResponseField>
85
+ <ResponseField name="limit" type="number">Maximum number of returned offers.</ResponseField>
86
+
87
+ <RequestExample>
88
+ ```bash cURL
89
+ curl 'http://localhost:9000/vendor/offers?variant_id=variant_01HXYZ' \
90
+ -H 'Authorization: Bearer <token>' \
91
+ -H 'x-seller-id: <seller_id>'
92
+ ```
93
+
94
+ ```ts JS Client
95
+ const { offers, count } = await client.vendor.offers.query({
96
+ variant_id: "variant_01HXYZ",
97
+ })
98
+ ```
99
+ </RequestExample>
100
+
101
+ <ResponseExample>
102
+ ```json 200
103
+ {
104
+ "offers": [
105
+ {
106
+ "id": "offer_01HXYZ",
107
+ "seller_id": "sel_01HXYZ",
108
+ "variant_id": "variant_01HXYZ",
109
+ "product_id": "prod_01HXYZ",
110
+ "shipping_profile_id": "sp_01HXYZ",
111
+ "sku": "ACME-SHIRT-M",
112
+ "prices": [
113
+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }
114
+ ],
115
+ "inventory_items": [
116
+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }
117
+ ]
118
+ }
119
+ ],
120
+ "count": 1,
121
+ "offset": 0,
122
+ "limit": 50
123
+ }
124
+ ```
125
+ </ResponseExample>