@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,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Orders"
|
|
3
|
+
api: "GET /vendor/orders"
|
|
4
|
+
description: "Retrieve a paginated list of the seller's orders."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns all non-draft orders belonging to the authenticated seller, with optional filtering by status, customer, region, and more.
|
|
8
|
+
|
|
9
|
+
## Query parameters
|
|
10
|
+
|
|
11
|
+
<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>
|
|
12
|
+
<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>
|
|
13
|
+
<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>
|
|
14
|
+
<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>
|
|
15
|
+
<ParamField query="q" type="string">Search term matched against order fields.</ParamField>
|
|
16
|
+
<ParamField query="id" type="string | string[]">Filter by order ID(s).</ParamField>
|
|
17
|
+
<ParamField query="status" type="string | string[]">Filter by order status.</ParamField>
|
|
18
|
+
<ParamField query="customer_id" type="string | string[]">Filter by customer ID(s).</ParamField>
|
|
19
|
+
<ParamField query="sales_channel_id" type="string | string[]">Filter by sales channel ID(s).</ParamField>
|
|
20
|
+
<ParamField query="region_id" type="string | string[]">Filter by region ID(s).</ParamField>
|
|
21
|
+
<ParamField query="currency_code" type="string | string[]">Filter by currency code(s).</ParamField>
|
|
22
|
+
<ParamField query="fulfillment_status" type="string">Filter by fulfillment status.</ParamField>
|
|
23
|
+
<ParamField query="payment_status" type="string">Filter by payment status.</ParamField>
|
|
24
|
+
<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>
|
|
25
|
+
<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
<ResponseField name="orders" type="object[]">
|
|
30
|
+
<Expandable title="properties">
|
|
31
|
+
<ResponseField name="id" type="string">The order's ID.</ResponseField>
|
|
32
|
+
<ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>
|
|
33
|
+
<ResponseField name="status" type="string">The order's status.</ResponseField>
|
|
34
|
+
<ResponseField name="email" type="string">The customer's email.</ResponseField>
|
|
35
|
+
<ResponseField name="currency_code" type="string">The order's currency code.</ResponseField>
|
|
36
|
+
<ResponseField name="region_id" type="string">ID of the order's region.</ResponseField>
|
|
37
|
+
<ResponseField name="customer_id" type="string">ID of the customer.</ResponseField>
|
|
38
|
+
<ResponseField name="sales_channel_id" type="string">ID of the sales channel.</ResponseField>
|
|
39
|
+
<ResponseField name="items" type="object[]">The order's line items, including variant, product, and offer data.</ResponseField>
|
|
40
|
+
<ResponseField name="shipping_address" type="object">The order's shipping address.</ResponseField>
|
|
41
|
+
<ResponseField name="billing_address" type="object">The order's billing address.</ResponseField>
|
|
42
|
+
<ResponseField name="shipping_methods" type="object[]">The order's shipping methods.</ResponseField>
|
|
43
|
+
<ResponseField name="payment_collections" type="object[]">Payment collections with payments and refunds.</ResponseField>
|
|
44
|
+
<ResponseField name="fulfillments" type="object[]">The order's fulfillments.</ResponseField>
|
|
45
|
+
<ResponseField name="returns" type="object[]">The order's returns with items and reasons.</ResponseField>
|
|
46
|
+
<ResponseField name="summary" type="object">Order totals summary.</ResponseField>
|
|
47
|
+
<ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>
|
|
48
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
49
|
+
<ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>
|
|
50
|
+
<ResponseField name="canceled_at" type="string">Cancellation timestamp, if canceled.</ResponseField>
|
|
51
|
+
</Expandable>
|
|
52
|
+
</ResponseField>
|
|
53
|
+
<ResponseField name="count" type="number">Total number of matching orders.</ResponseField>
|
|
54
|
+
<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>
|
|
55
|
+
<ResponseField name="limit" type="number">Number of records returned.</ResponseField>
|
|
56
|
+
|
|
57
|
+
<RequestExample>
|
|
58
|
+
```bash cURL
|
|
59
|
+
curl 'http://localhost:9000/vendor/orders?limit=20&order=-created_at' \
|
|
60
|
+
-H 'Authorization: Bearer <token>' \
|
|
61
|
+
-H 'x-seller-id: <seller_id>'
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```ts JS Client
|
|
65
|
+
const { orders, count } = await client.vendor.orders.query({
|
|
66
|
+
limit: 20,
|
|
67
|
+
order: "-created_at",
|
|
68
|
+
})
|
|
69
|
+
```
|
|
70
|
+
</RequestExample>
|
|
71
|
+
|
|
72
|
+
<ResponseExample>
|
|
73
|
+
```json 200
|
|
74
|
+
{
|
|
75
|
+
"orders": [
|
|
76
|
+
{
|
|
77
|
+
"id": "order_01HXYZABCDEF",
|
|
78
|
+
"display_id": 42,
|
|
79
|
+
"status": "pending",
|
|
80
|
+
"email": "jane@example.com",
|
|
81
|
+
"currency_code": "usd",
|
|
82
|
+
"region_id": "reg_01HXYZABCDEF",
|
|
83
|
+
"customer_id": "cus_01HXYZABCDEF",
|
|
84
|
+
"sales_channel_id": "sc_01HXYZABCDEF",
|
|
85
|
+
"items": [
|
|
86
|
+
{
|
|
87
|
+
"id": "ordli_01HXYZABCDEF",
|
|
88
|
+
"title": "T-Shirt / M",
|
|
89
|
+
"quantity": 1,
|
|
90
|
+
"unit_price": 2500
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"created_at": "2026-06-01T10:00:00.000Z",
|
|
94
|
+
"updated_at": "2026-06-01T10:00:00.000Z",
|
|
95
|
+
"canceled_at": null
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"count": 1,
|
|
99
|
+
"offset": 0,
|
|
100
|
+
"limit": 20
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
</ResponseExample>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Mark Fulfillment as Delivered"
|
|
3
|
+
api: "POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/mark-as-delivered"
|
|
4
|
+
description: "Mark a fulfillment as delivered."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Marks the fulfillment as delivered and returns the updated order.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>The order's ID.</ParamField>
|
|
12
|
+
<ParamField path="fulfillment_id" type="string" required>The fulfillment's ID.</ParamField>
|
|
13
|
+
|
|
14
|
+
## Query parameters
|
|
15
|
+
|
|
16
|
+
<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>
|
|
17
|
+
|
|
18
|
+
## Response
|
|
19
|
+
|
|
20
|
+
<ResponseField name="order" type="object">
|
|
21
|
+
<Expandable title="properties">
|
|
22
|
+
<ResponseField name="id" type="string">The order's ID.</ResponseField>
|
|
23
|
+
<ResponseField name="status" type="string">The order's status.</ResponseField>
|
|
24
|
+
<ResponseField name="fulfillments" type="object[]">The order's fulfillments with `delivered_at` set.</ResponseField>
|
|
25
|
+
<ResponseField name="items" type="object[]">The order's line items.</ResponseField>
|
|
26
|
+
</Expandable>
|
|
27
|
+
</ResponseField>
|
|
28
|
+
|
|
29
|
+
<RequestExample>
|
|
30
|
+
```bash cURL
|
|
31
|
+
curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments/ful_01HXYZABCDEF/mark-as-delivered' \
|
|
32
|
+
-H 'Authorization: Bearer <token>' \
|
|
33
|
+
-H 'x-seller-id: <seller_id>'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```ts JS Client
|
|
37
|
+
const { order } =
|
|
38
|
+
await client.vendor.orders.$id.fulfillments.$fulfillment_id.markAsDelivered.mutate({
|
|
39
|
+
$id: "order_01HXYZABCDEF",
|
|
40
|
+
$fulfillment_id: "ful_01HXYZABCDEF",
|
|
41
|
+
})
|
|
42
|
+
```
|
|
43
|
+
</RequestExample>
|
|
44
|
+
|
|
45
|
+
<ResponseExample>
|
|
46
|
+
```json 200
|
|
47
|
+
{
|
|
48
|
+
"order": {
|
|
49
|
+
"id": "order_01HXYZABCDEF",
|
|
50
|
+
"display_id": 42,
|
|
51
|
+
"status": "pending",
|
|
52
|
+
"fulfillments": [
|
|
53
|
+
{
|
|
54
|
+
"id": "ful_01HXYZABCDEF",
|
|
55
|
+
"shipped_at": "2026-06-04T10:00:00.000Z",
|
|
56
|
+
"delivered_at": "2026-06-06T09:30:00.000Z"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
</ResponseExample>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Preview Order"
|
|
3
|
+
api: "GET /vendor/orders/{id}/preview"
|
|
4
|
+
description: "Preview the order with its pending order change applied."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns a preview of the order as it would look once the currently active order change (e.g. a pending edit, return, or exchange) is confirmed.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>The order's ID.</ParamField>
|
|
12
|
+
|
|
13
|
+
## Response
|
|
14
|
+
|
|
15
|
+
<ResponseField name="order" type="object">
|
|
16
|
+
<Expandable title="properties">
|
|
17
|
+
<ResponseField name="id" type="string">The order's ID.</ResponseField>
|
|
18
|
+
<ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>
|
|
19
|
+
<ResponseField name="status" type="string">The order's status.</ResponseField>
|
|
20
|
+
<ResponseField name="items" type="object[]">Line items with pending change actions applied.</ResponseField>
|
|
21
|
+
<ResponseField name="shipping_methods" type="object[]">Shipping methods with pending change actions applied.</ResponseField>
|
|
22
|
+
<ResponseField name="order_change" type="object">The active order change being previewed.</ResponseField>
|
|
23
|
+
<ResponseField name="total" type="number">Projected order total after the change.</ResponseField>
|
|
24
|
+
</Expandable>
|
|
25
|
+
</ResponseField>
|
|
26
|
+
|
|
27
|
+
<RequestExample>
|
|
28
|
+
```bash cURL
|
|
29
|
+
curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/preview' \
|
|
30
|
+
-H 'Authorization: Bearer <token>' \
|
|
31
|
+
-H 'x-seller-id: <seller_id>'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```ts JS Client
|
|
35
|
+
const { order } = await client.vendor.orders.$id.preview.query({
|
|
36
|
+
$id: "order_01HXYZABCDEF",
|
|
37
|
+
})
|
|
38
|
+
```
|
|
39
|
+
</RequestExample>
|
|
40
|
+
|
|
41
|
+
<ResponseExample>
|
|
42
|
+
```json 200
|
|
43
|
+
{
|
|
44
|
+
"order": {
|
|
45
|
+
"id": "order_01HXYZABCDEF",
|
|
46
|
+
"display_id": 42,
|
|
47
|
+
"status": "pending",
|
|
48
|
+
"items": [
|
|
49
|
+
{
|
|
50
|
+
"id": "ordli_01HXYZABCDEF",
|
|
51
|
+
"title": "T-Shirt / M",
|
|
52
|
+
"quantity": 1,
|
|
53
|
+
"unit_price": 2500
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"order_change": {
|
|
57
|
+
"id": "ordch_01HXYZABCDEF",
|
|
58
|
+
"change_type": "edit",
|
|
59
|
+
"status": "pending"
|
|
60
|
+
},
|
|
61
|
+
"total": 2500
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
</ResponseExample>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Retrieve Order"
|
|
3
|
+
api: "GET /vendor/orders/{id}"
|
|
4
|
+
description: "Retrieve a single order by ID."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns an order belonging to the authenticated seller, including items, addresses, payments, fulfillments, and returns.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>The order's ID.</ParamField>
|
|
12
|
+
|
|
13
|
+
## Query parameters
|
|
14
|
+
|
|
15
|
+
<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>
|
|
16
|
+
|
|
17
|
+
## Response
|
|
18
|
+
|
|
19
|
+
<ResponseField name="order" type="object">
|
|
20
|
+
<Expandable title="properties">
|
|
21
|
+
<ResponseField name="id" type="string">The order's ID.</ResponseField>
|
|
22
|
+
<ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>
|
|
23
|
+
<ResponseField name="status" type="string">The order's status.</ResponseField>
|
|
24
|
+
<ResponseField name="email" type="string">The customer's email.</ResponseField>
|
|
25
|
+
<ResponseField name="currency_code" type="string">The order's currency code.</ResponseField>
|
|
26
|
+
<ResponseField name="region_id" type="string">ID of the order's region.</ResponseField>
|
|
27
|
+
<ResponseField name="customer_id" type="string">ID of the customer.</ResponseField>
|
|
28
|
+
<ResponseField name="sales_channel_id" type="string">ID of the sales channel.</ResponseField>
|
|
29
|
+
<ResponseField name="items" type="object[]">The order's line items, including variant, product, and offer data.</ResponseField>
|
|
30
|
+
<ResponseField name="shipping_address" type="object">The order's shipping address.</ResponseField>
|
|
31
|
+
<ResponseField name="billing_address" type="object">The order's billing address.</ResponseField>
|
|
32
|
+
<ResponseField name="shipping_methods" type="object[]">The order's shipping methods.</ResponseField>
|
|
33
|
+
<ResponseField name="payment_collections" type="object[]">Payment collections with payments and refunds.</ResponseField>
|
|
34
|
+
<ResponseField name="fulfillments" type="object[]">The order's fulfillments.</ResponseField>
|
|
35
|
+
<ResponseField name="returns" type="object[]">The order's returns with items and reasons.</ResponseField>
|
|
36
|
+
<ResponseField name="summary" type="object">Order totals summary.</ResponseField>
|
|
37
|
+
<ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>
|
|
38
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
39
|
+
<ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>
|
|
40
|
+
<ResponseField name="canceled_at" type="string">Cancellation timestamp, if canceled.</ResponseField>
|
|
41
|
+
</Expandable>
|
|
42
|
+
</ResponseField>
|
|
43
|
+
|
|
44
|
+
<RequestExample>
|
|
45
|
+
```bash cURL
|
|
46
|
+
curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF' \
|
|
47
|
+
-H 'Authorization: Bearer <token>' \
|
|
48
|
+
-H 'x-seller-id: <seller_id>'
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```ts JS Client
|
|
52
|
+
const { order } = await client.vendor.orders.$id.query({
|
|
53
|
+
$id: "order_01HXYZABCDEF",
|
|
54
|
+
})
|
|
55
|
+
```
|
|
56
|
+
</RequestExample>
|
|
57
|
+
|
|
58
|
+
<ResponseExample>
|
|
59
|
+
```json 200
|
|
60
|
+
{
|
|
61
|
+
"order": {
|
|
62
|
+
"id": "order_01HXYZABCDEF",
|
|
63
|
+
"display_id": 42,
|
|
64
|
+
"status": "pending",
|
|
65
|
+
"email": "jane@example.com",
|
|
66
|
+
"currency_code": "usd",
|
|
67
|
+
"items": [
|
|
68
|
+
{
|
|
69
|
+
"id": "ordli_01HXYZABCDEF",
|
|
70
|
+
"title": "T-Shirt / M",
|
|
71
|
+
"quantity": 1,
|
|
72
|
+
"unit_price": 2500
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"summary": {
|
|
76
|
+
"current_order_total": 2500,
|
|
77
|
+
"paid_total": 2500
|
|
78
|
+
},
|
|
79
|
+
"created_at": "2026-06-01T10:00:00.000Z",
|
|
80
|
+
"updated_at": "2026-06-01T10:00:00.000Z"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
</ResponseExample>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Create Onboarding"
|
|
3
|
+
api: "POST /vendor/payout-accounts/{id}/onboarding"
|
|
4
|
+
description: "Start or refresh provider onboarding for a payout account."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Creates an onboarding session with the payout provider — for Stripe Connect, the returned `data` contains the hosted onboarding link.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The payout account's ID.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
## Body parameters
|
|
16
|
+
|
|
17
|
+
<ParamField body="data" type="object">
|
|
18
|
+
Provider-specific data forwarded when creating the onboarding.
|
|
19
|
+
</ParamField>
|
|
20
|
+
|
|
21
|
+
<ParamField body="context" type="object">
|
|
22
|
+
Provider-specific context (e.g. `refresh_url` and `return_url` for Stripe Connect).
|
|
23
|
+
</ParamField>
|
|
24
|
+
|
|
25
|
+
## Response
|
|
26
|
+
|
|
27
|
+
<ResponseField name="onboarding" type="object">
|
|
28
|
+
<Expandable title="properties">
|
|
29
|
+
<ResponseField name="id" type="string">The onboarding's ID.</ResponseField>
|
|
30
|
+
<ResponseField name="data" type="object">Provider-specific onboarding data, such as the hosted onboarding URL.</ResponseField>
|
|
31
|
+
<ResponseField name="context" type="object">The context used to create the onboarding.</ResponseField>
|
|
32
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
33
|
+
<ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>
|
|
34
|
+
</Expandable>
|
|
35
|
+
</ResponseField>
|
|
36
|
+
|
|
37
|
+
<RequestExample>
|
|
38
|
+
```bash cURL
|
|
39
|
+
curl -X POST 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ/onboarding' \
|
|
40
|
+
-H 'Authorization: Bearer <token>' \
|
|
41
|
+
-H 'x-seller-id: <seller_id>' \
|
|
42
|
+
-H 'Content-Type: application/json' \
|
|
43
|
+
-d '{"context": {"refresh_url": "https://vendor.example.com/payouts", "return_url": "https://vendor.example.com/payouts"}}'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```ts JS Client
|
|
47
|
+
const { onboarding } = await client.vendor.payoutAccounts.$id.onboarding.mutate({
|
|
48
|
+
$id: "pacc_01HXYZ",
|
|
49
|
+
context: {
|
|
50
|
+
refresh_url: "https://vendor.example.com/payouts",
|
|
51
|
+
return_url: "https://vendor.example.com/payouts",
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
```
|
|
55
|
+
</RequestExample>
|
|
56
|
+
|
|
57
|
+
<ResponseExample>
|
|
58
|
+
```json 201
|
|
59
|
+
{
|
|
60
|
+
"onboarding": {
|
|
61
|
+
"id": "onb_01HXYZ",
|
|
62
|
+
"data": { "url": "https://connect.stripe.com/setup/s/..." },
|
|
63
|
+
"context": { "return_url": "https://vendor.example.com/payouts" },
|
|
64
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
</ResponseExample>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Create Payout Account"
|
|
3
|
+
api: "POST /vendor/payout-accounts"
|
|
4
|
+
description: "Create the seller's payout account with the configured provider."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Creates a payout account for the current seller through the configured payout provider (e.g. Stripe Connect).
|
|
8
|
+
|
|
9
|
+
## Body parameters
|
|
10
|
+
|
|
11
|
+
<ParamField body="data" type="object">
|
|
12
|
+
Provider-specific data forwarded when creating the account.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
<ParamField body="context" type="object">
|
|
16
|
+
Provider-specific context (e.g. `{ "country": "US" }` for Stripe Connect).
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
## Response
|
|
20
|
+
|
|
21
|
+
<ResponseField name="payout_account" type="object">
|
|
22
|
+
<Expandable title="properties">
|
|
23
|
+
<ResponseField name="id" type="string">The payout account's ID.</ResponseField>
|
|
24
|
+
<ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>
|
|
25
|
+
<ResponseField name="data" type="object">Provider-specific account data.</ResponseField>
|
|
26
|
+
<ResponseField name="context" type="object">The context used to create the account.</ResponseField>
|
|
27
|
+
<ResponseField name="onboarding" type="object">The onboarding record, once created.</ResponseField>
|
|
28
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
29
|
+
</Expandable>
|
|
30
|
+
</ResponseField>
|
|
31
|
+
|
|
32
|
+
<RequestExample>
|
|
33
|
+
```bash cURL
|
|
34
|
+
curl -X POST 'http://localhost:9000/vendor/payout-accounts' \
|
|
35
|
+
-H 'Authorization: Bearer <token>' \
|
|
36
|
+
-H 'x-seller-id: <seller_id>' \
|
|
37
|
+
-H 'Content-Type: application/json' \
|
|
38
|
+
-d '{"context": {"country": "US"}}'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```ts JS Client
|
|
42
|
+
const { payout_account } = await client.vendor.payoutAccounts.mutate({
|
|
43
|
+
context: { country: "US" },
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
</RequestExample>
|
|
47
|
+
|
|
48
|
+
<ResponseExample>
|
|
49
|
+
```json 201
|
|
50
|
+
{
|
|
51
|
+
"payout_account": {
|
|
52
|
+
"id": "pacc_01HXYZ",
|
|
53
|
+
"status": "pending",
|
|
54
|
+
"context": { "country": "US" },
|
|
55
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
</ResponseExample>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Retrieve Payout Account"
|
|
3
|
+
api: "GET /vendor/payout-accounts/{id}"
|
|
4
|
+
description: "Retrieve one of the seller's payout accounts by ID."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns a payout account, verifying it belongs to the current seller.
|
|
8
|
+
|
|
9
|
+
## Path parameters
|
|
10
|
+
|
|
11
|
+
<ParamField path="id" type="string" required>
|
|
12
|
+
The payout account'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="payout_account" type="object">
|
|
24
|
+
<Expandable title="properties">
|
|
25
|
+
<ResponseField name="id" type="string">The payout account's ID.</ResponseField>
|
|
26
|
+
<ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>
|
|
27
|
+
<ResponseField name="data" type="object">Provider-specific account data.</ResponseField>
|
|
28
|
+
<ResponseField name="context" type="object">Context passed when the account was created.</ResponseField>
|
|
29
|
+
<ResponseField name="onboarding" type="object">The account's onboarding record (`id`, `data`, `context`).</ResponseField>
|
|
30
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
31
|
+
<ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>
|
|
32
|
+
</Expandable>
|
|
33
|
+
</ResponseField>
|
|
34
|
+
|
|
35
|
+
<RequestExample>
|
|
36
|
+
```bash cURL
|
|
37
|
+
curl 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ' \
|
|
38
|
+
-H 'Authorization: Bearer <token>' \
|
|
39
|
+
-H 'x-seller-id: <seller_id>'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```ts JS Client
|
|
43
|
+
const { payout_account } = await client.vendor.payoutAccounts.$id.query({
|
|
44
|
+
$id: "pacc_01HXYZ",
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
</RequestExample>
|
|
48
|
+
|
|
49
|
+
<ResponseExample>
|
|
50
|
+
```json 200
|
|
51
|
+
{
|
|
52
|
+
"payout_account": {
|
|
53
|
+
"id": "pacc_01HXYZ",
|
|
54
|
+
"status": "active",
|
|
55
|
+
"onboarding": { "id": "onb_01HXYZ" },
|
|
56
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
</ResponseExample>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Payout Accounts"
|
|
3
|
+
api: "GET /vendor/payout-accounts"
|
|
4
|
+
description: "List the seller's payout accounts."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the payout accounts linked to the current seller, each with its onboarding.
|
|
8
|
+
|
|
9
|
+
<Note>
|
|
10
|
+
A seller typically has at most one payout account, so the first entry is usually the one you need.
|
|
11
|
+
</Note>
|
|
12
|
+
|
|
13
|
+
## Query parameters
|
|
14
|
+
|
|
15
|
+
<ParamField query="limit" type="number" default="20">
|
|
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="payout_accounts" type="object[]">
|
|
34
|
+
<Expandable title="properties">
|
|
35
|
+
<ResponseField name="id" type="string">The payout account's ID.</ResponseField>
|
|
36
|
+
<ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>
|
|
37
|
+
<ResponseField name="data" type="object">Provider-specific account data.</ResponseField>
|
|
38
|
+
<ResponseField name="context" type="object">Context passed when the account was created.</ResponseField>
|
|
39
|
+
<ResponseField name="onboarding" type="object">The account's onboarding record (`id`, `data`, `context`).</ResponseField>
|
|
40
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
41
|
+
<ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>
|
|
42
|
+
</Expandable>
|
|
43
|
+
</ResponseField>
|
|
44
|
+
|
|
45
|
+
<ResponseField name="count" type="number">Total number of payout accounts.</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/payout-accounts' \
|
|
52
|
+
-H 'Authorization: Bearer <token>' \
|
|
53
|
+
-H 'x-seller-id: <seller_id>'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```ts JS Client
|
|
57
|
+
const { payout_accounts } = await client.vendor.payoutAccounts.query()
|
|
58
|
+
```
|
|
59
|
+
</RequestExample>
|
|
60
|
+
|
|
61
|
+
<ResponseExample>
|
|
62
|
+
```json 200
|
|
63
|
+
{
|
|
64
|
+
"payout_accounts": [
|
|
65
|
+
{
|
|
66
|
+
"id": "pacc_01HXYZ",
|
|
67
|
+
"status": "active",
|
|
68
|
+
"onboarding": { "id": "onb_01HXYZ", "data": { "url": "https://connect.stripe.com/setup/..." } },
|
|
69
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"count": 1,
|
|
73
|
+
"offset": 0,
|
|
74
|
+
"limit": 20
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
</ResponseExample>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "List Payouts"
|
|
3
|
+
api: "GET /vendor/payouts"
|
|
4
|
+
description: "List the seller's payouts."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Returns the payouts belonging to the current seller.
|
|
8
|
+
|
|
9
|
+
## Query parameters
|
|
10
|
+
|
|
11
|
+
<ParamField query="limit" type="number" default="20">
|
|
12
|
+
Maximum number of items to return.
|
|
13
|
+
</ParamField>
|
|
14
|
+
|
|
15
|
+
<ParamField query="offset" type="number" default="0">
|
|
16
|
+
Number of items to skip.
|
|
17
|
+
</ParamField>
|
|
18
|
+
|
|
19
|
+
<ParamField query="order" type="string">
|
|
20
|
+
Field to sort by, prefixed with `-` for descending order.
|
|
21
|
+
</ParamField>
|
|
22
|
+
|
|
23
|
+
<ParamField query="fields" type="string">
|
|
24
|
+
Comma-separated fields to include in the response.
|
|
25
|
+
</ParamField>
|
|
26
|
+
|
|
27
|
+
<ParamField query="status" type="string | string[]">
|
|
28
|
+
Filter by payout status: `pending`, `processing`, `paid`, `failed`, `canceled`.
|
|
29
|
+
</ParamField>
|
|
30
|
+
|
|
31
|
+
<ParamField query="created_at" type="object">
|
|
32
|
+
Filter by creation date using operators like `$gte`, `$lte`, `$gt`, `$lt`.
|
|
33
|
+
</ParamField>
|
|
34
|
+
|
|
35
|
+
<ParamField query="updated_at" type="object">
|
|
36
|
+
Filter by update date using operators like `$gte`, `$lte`, `$gt`, `$lt`.
|
|
37
|
+
</ParamField>
|
|
38
|
+
|
|
39
|
+
## Response
|
|
40
|
+
|
|
41
|
+
<ResponseField name="payouts" type="object[]">
|
|
42
|
+
<Expandable title="properties">
|
|
43
|
+
<ResponseField name="id" type="string">The payout's ID.</ResponseField>
|
|
44
|
+
<ResponseField name="display_id" type="number">Human-readable payout number.</ResponseField>
|
|
45
|
+
<ResponseField name="amount" type="number">The payout amount.</ResponseField>
|
|
46
|
+
<ResponseField name="currency_code" type="string">The payout currency.</ResponseField>
|
|
47
|
+
<ResponseField name="status" type="enum">One of `pending`, `processing`, `paid`, `failed`, `canceled`.</ResponseField>
|
|
48
|
+
<ResponseField name="data" type="object">Provider-specific data.</ResponseField>
|
|
49
|
+
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
|
|
50
|
+
<ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>
|
|
51
|
+
</Expandable>
|
|
52
|
+
</ResponseField>
|
|
53
|
+
|
|
54
|
+
<ResponseField name="count" type="number">Total number of payouts.</ResponseField>
|
|
55
|
+
<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>
|
|
56
|
+
<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>
|
|
57
|
+
|
|
58
|
+
<RequestExample>
|
|
59
|
+
```bash cURL
|
|
60
|
+
curl 'http://localhost:9000/vendor/payouts?status=paid' \
|
|
61
|
+
-H 'Authorization: Bearer <token>' \
|
|
62
|
+
-H 'x-seller-id: <seller_id>'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```ts JS Client
|
|
66
|
+
const { payouts, count } = await client.vendor.payouts.query({
|
|
67
|
+
status: "paid",
|
|
68
|
+
})
|
|
69
|
+
```
|
|
70
|
+
</RequestExample>
|
|
71
|
+
|
|
72
|
+
<ResponseExample>
|
|
73
|
+
```json 200
|
|
74
|
+
{
|
|
75
|
+
"payouts": [
|
|
76
|
+
{
|
|
77
|
+
"id": "pout_01HXYZ",
|
|
78
|
+
"display_id": 42,
|
|
79
|
+
"amount": 1250,
|
|
80
|
+
"currency_code": "usd",
|
|
81
|
+
"status": "paid",
|
|
82
|
+
"created_at": "2026-01-15T10:00:00.000Z"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"count": 1,
|
|
86
|
+
"offset": 0,
|
|
87
|
+
"limit": 20
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
</ResponseExample>
|