@omni-commerce/sdk 0.23.0 → 0.24.0

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/dist/index.d.ts CHANGED
@@ -1951,9 +1951,9 @@ interface paths {
1951
1951
  };
1952
1952
  /**
1953
1953
  * Get Order Action Options
1954
- * @description Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.
1954
+ * @description Read marketplace choices for this order, including seller cancellation reasons for `action=cancel`. Eligible orders can include orders awaiting carrier collection. Requires `orders:write`.
1955
1955
  *
1956
- * Send the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.
1956
+ * Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
1957
1957
  */
1958
1958
  get: operations["get_v1_orders_by_orderid_action_options"];
1959
1959
  put?: never;
@@ -1975,7 +1975,7 @@ interface paths {
1975
1975
  * List Order Actions
1976
1976
  * @description The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
1977
1977
  *
1978
- * Poll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.
1978
+ * After submission, find the returned job ID here. Read its status for the marketplace outcome and `errorMessage` for failures. A succeeded `labels` job lists its label files in `labels`.
1979
1979
  */
1980
1980
  get: operations["get_v1_orders_by_orderid_actions"];
1981
1981
  put?: never;
@@ -1983,7 +1983,7 @@ interface paths {
1983
1983
  * Queue Order Action
1984
1984
  * @description Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
1985
1985
  *
1986
- * The marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.
1986
+ * For `cancel`, send the exact payload of a reviewed cancellation reason from the action options endpoint. The marketplace call runs in the background. The `202` response provides a `jobId`. Poll `GET /api/v1/orders/{orderId}/actions` for its outcome. A repeated `idempotencyKey` with the same request returns `200` with the original job.
1987
1987
  */
1988
1988
  post: operations["post_v1_orders_by_orderid_actions"];
1989
1989
  delete?: never;
@@ -2007,7 +2007,7 @@ interface paths {
2007
2007
  *
2008
2008
  * ### Choices
2009
2009
  *
2010
- * Read current marketplace choices for ship, cancel, labels or update_tracking for 1–50 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.
2010
+ * Read marketplace choices for `ship`, `cancel`, `labels`, or `update_tracking` for 1–50 UUIDs using repeated `orderIds` parameters. Results preserve first-requested order and report any per-order eligibility or capability errors. For `cancel`, review an available reason for each order and use its exact `payload`. Orders awaiting collection can be eligible when the marketplace permits it. For other actions, supply any fields marked `requiresInput`.
2011
2011
  */
2012
2012
  get: operations["get_v1_orders_actions"];
2013
2013
  put?: never;
@@ -2019,11 +2019,9 @@ interface paths {
2019
2019
  *
2020
2020
  * ### Batch submission
2021
2021
  *
2022
- * Queue 1–50 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.
2022
+ * Queue 1–50 distinct orders with a UUID `requestId` and one operation per order. Each operation carries an `orderId`, `action`, and any marketplace inputs in `payload`. For `cancel`, send the reviewed reason's exact payload from GET /api/v1/orders/actions. All targets are authorized before enqueue. Per-order results preserve request order and report acceptance or errors.
2023
2023
  *
2024
- * ### Recovery and completion
2025
- *
2026
- * Retain requestId and unchanged operations for retries; a changed operation with a reused key fails that target. Follow links.poll or GET /api/v1/orders/actions/jobs with every returned jobId (orders:read). The durable worker rechecks initiating permissions before marketplace writes. Label jobs return download URLs after success; the API does not control a physical printer. Completed jobs and partial failures remain explicit.
2024
+ * Retain `requestId` and unchanged operations for retries. Follow `links.poll` with every returned job ID to check the marketplace outcomes. The worker rechecks permissions before each marketplace write.
2027
2025
  */
2028
2026
  post: operations["post_v1_orders_actions"];
2029
2027
  delete?: never;
@@ -2047,7 +2045,7 @@ interface paths {
2047
2045
  *
2048
2046
  * ### Outcomes and labels
2049
2047
  *
2050
- * Read every requested order action job in one batch of 1–50 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.
2048
+ * Read 1–50 jobs using repeated `jobIds` parameters. Results preserve first-requested order. `data.success` requires every job to succeed. `pendingCount` includes queued and running jobs. `failedCount` includes failed and unsupported jobs. Amazon cancellations can stay running while its feed is processed. Successful label jobs return download links. A missing or cross-organization job returns 404. Current store restrictions apply.
2051
2049
  */
2052
2050
  get: operations["get_v1_orders_actions_jobs"];
2053
2051
  put?: never;
@@ -2542,13 +2540,23 @@ interface paths {
2542
2540
  };
2543
2541
  /**
2544
2542
  * Get Bulk Product Update Options
2545
- * @description List the same active stock-file-capable sources as Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read. Resolve a sourceId from this organization-scoped result before starting inventory/both updates; an ambiguous choice requires seller selection.
2543
+ * @description List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
2544
+ *
2545
+ * Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
2546
2546
  */
2547
2547
  get: operations["get_v1_products_bulk_update"];
2548
2548
  put?: never;
2549
2549
  /**
2550
2550
  * Bulk Update Product Prices and Stock
2551
- * @description Update existing catalog SKUs from 1–10 uploaded CSV/Excel documentIds (up to 10,000 rows per file), using the same price and inventory import services as Omni Bulk Update. Requires catalog:write and the corresponding product/inventory capabilities. No product creation. Exact SKU matching rejects duplicate/ambiguous and unknown SKUs; zero values are preserved. Inventory requires an authorized manual/CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults true; optional marketplaces restricts existing listing sync across supported platforms. Returns ordered per-document results and saved imports references. Updates continue through the durable file-update workflow beyond the caller lifetime; acceptance is not completion. Pass every returned reference to products.bulkUpdateStatus. Inventory apply means source balances saved and sync queued, not marketplace verification.
2551
+ * @description Update existing catalog SKUs from 1–10 uploaded CSV or Excel documentIds, with up to 10,000 rows per file. Requires catalog:write and the corresponding product or inventory capabilities.
2552
+ *
2553
+ * ### File and source selection
2554
+ *
2555
+ * Exact SKU matching preserves zero values and rejects duplicate, ambiguous, or unknown SKUs. Inventory needs an authorized manual or CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults to true. Use marketplaces to limit which existing listings are synced.
2556
+ *
2557
+ * ### Track the results
2558
+ *
2559
+ * Pass every saved import reference to products.bulkUpdateStatus. Results preserve document order. The workflow runs after the request returns. Applied inventory means source balances were saved and listing sync was queued.
2552
2560
  */
2553
2561
  post: operations["post_v1_products_bulk_update"];
2554
2562
  delete?: never;
@@ -2568,7 +2576,9 @@ interface paths {
2568
2576
  put?: never;
2569
2577
  /**
2570
2578
  * Get Bulk Product Update Status
2571
- * @description Read up to 20 typed saved imports in requested order. Requires catalog:read and the corresponding product/inventory read capabilities. IDs are deduplicated by kind and importId. Pending imports are incomplete; invalid/unknown rows and missing organization-scoped imports remain explicit failures. Compact by default; includeRows returns at most 100 rows per import using rowOffset/rowLimit. Catalog stock apply does not certify marketplace state.
2579
+ * @description Read up to 20 saved imports in request order. Requires catalog:read and the corresponding product or inventory read capabilities. Imports are deduplicated by kind and importId.
2580
+ *
2581
+ * Pending imports are incomplete. Results report invalid or unknown rows and missing organization-scoped imports. Use includeRows with rowOffset and rowLimit for up to 100 rows per import. The result describes saved catalog stock.
2572
2582
  */
2573
2583
  post: operations["post_v1_products_bulk_update_status"];
2574
2584
  delete?: never;
@@ -3179,6 +3189,28 @@ interface paths {
3179
3189
  patch?: never;
3180
3190
  trace?: never;
3181
3191
  };
3192
+ "/api/v1/returns/{returnId}/evidence": {
3193
+ parameters: {
3194
+ query?: never;
3195
+ header?: never;
3196
+ path?: never;
3197
+ cookie?: never;
3198
+ };
3199
+ get?: never;
3200
+ put?: never;
3201
+ /**
3202
+ * Upload Return Rejection Evidence
3203
+ * @description Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
3204
+ *
3205
+ * Use the receipt and filename in `input.evidence` when submitting the reviewed rejection. A rejection can include up to six images. Each receipt is scoped to its return and expires after 24 hours.
3206
+ */
3207
+ post: operations["post_v1_returns_by_returnid_evidence"];
3208
+ delete?: never;
3209
+ options?: never;
3210
+ head?: never;
3211
+ patch?: never;
3212
+ trace?: never;
3213
+ };
3182
3214
  "/api/v1/returns/actions": {
3183
3215
  parameters: {
3184
3216
  query?: never;
@@ -19030,6 +19062,24 @@ interface operations {
19030
19062
  content: {
19031
19063
  "application/json": {
19032
19064
  items?: {
19065
+ /** Format: uuid */
19066
+ id?: string;
19067
+ status?: string;
19068
+ /** @enum {string} */
19069
+ statusGroup?:
19070
+ | "to_ship"
19071
+ | "shipped"
19072
+ | "completed"
19073
+ | "pending"
19074
+ | "return"
19075
+ | "canceled";
19076
+ returnStatusLabels?: string[];
19077
+ /** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
19078
+ aftersalesOutcome?: {
19079
+ received: boolean;
19080
+ /** @enum {string|null} */
19081
+ refund: "full" | "partial" | null;
19082
+ };
19033
19083
  /** @description Formula-net marketplace payment. Null until every active line has been reconciled. */
19034
19084
  paymentReceived?: number | null;
19035
19085
  /** @description Order-time COGS total. Null while any active line lacks a cost snapshot. */
@@ -19427,6 +19477,13 @@ interface operations {
19427
19477
  returnCompletion?: {
19428
19478
  [key: string]: unknown;
19429
19479
  } | null;
19480
+ returnStatusLabels?: string[];
19481
+ /** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
19482
+ aftersalesOutcome?: {
19483
+ received: boolean;
19484
+ /** @enum {string|null} */
19485
+ refund: "full" | "partial" | null;
19486
+ };
19430
19487
  statusHistory?: {
19431
19488
  [key: string]: unknown;
19432
19489
  }[];
@@ -19863,11 +19920,11 @@ interface operations {
19863
19920
  /** @description Required for session auth. API keys already belong to one organization. */
19864
19921
  organizationId?: string;
19865
19922
  /**
19866
- * @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel` cancels the order.
19923
+ * @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel` requests seller cancellation.
19867
19924
  * @enum {string}
19868
19925
  */
19869
19926
  action: "ship" | "cancel" | "labels" | "update_tracking";
19870
- /** @description Marketplace inputs for the action. Send the `payload` of the choice returned by `GET /api/v1/orders/{orderId}/action-options`, plus fields such as `trackingNumber` or `cancelReason` when a choice requires input. */
19927
+ /** @description Marketplace inputs for the action. For cancellation, send the selected reason's exact `payload` from `GET /api/v1/orders/{orderId}/action-options?action=cancel`. For other actions, include the choice payload and any required seller inputs. */
19871
19928
  payload?: {
19872
19929
  [key: string]: unknown;
19873
19930
  };
@@ -27600,6 +27657,123 @@ interface operations {
27600
27657
  };
27601
27658
  };
27602
27659
  };
27660
+ post_v1_returns_by_returnid_evidence: {
27661
+ parameters: {
27662
+ query?: {
27663
+ /** @description Session callers only. API keys resolve organization scope from the credential. */
27664
+ organizationId?: string;
27665
+ };
27666
+ header?: never;
27667
+ path: {
27668
+ returnId: string;
27669
+ };
27670
+ cookie?: never;
27671
+ };
27672
+ requestBody: {
27673
+ content: {
27674
+ "multipart/form-data": {
27675
+ /** Format: binary */
27676
+ file: string;
27677
+ };
27678
+ };
27679
+ };
27680
+ responses: {
27681
+ /** @description Request completed. Inspect data.success, per-target results and pendingCount for processing progress. */
27682
+ 200: {
27683
+ headers: {
27684
+ [name: string]: unknown;
27685
+ };
27686
+ content: {
27687
+ "application/json": {
27688
+ ok: boolean;
27689
+ apiVersion: string;
27690
+ /** Format: uuid */
27691
+ operationId: string;
27692
+ /** @enum {string} */
27693
+ status: "completed";
27694
+ data: {
27695
+ receipt: string;
27696
+ };
27697
+ links: {
27698
+ [key: string]: string;
27699
+ };
27700
+ warnings: string[];
27701
+ recommendations: string[];
27702
+ };
27703
+ };
27704
+ };
27705
+ /** @description Invalid request, conflicting operations, singular arguments or a batch exceeding the endpoint limit. */
27706
+ 400: {
27707
+ headers: {
27708
+ [name: string]: unknown;
27709
+ };
27710
+ content?: never;
27711
+ };
27712
+ /** @description Missing or invalid credentials. */
27713
+ 401: {
27714
+ headers: {
27715
+ [name: string]: unknown;
27716
+ };
27717
+ content?: never;
27718
+ };
27719
+ /** @description Missing scope, organization mismatch, or a target outside the caller's assigned stores and markets. */
27720
+ 403: {
27721
+ headers: {
27722
+ [name: string]: unknown;
27723
+ };
27724
+ content?: never;
27725
+ };
27726
+ /** @description The return is no longer open for a seller response. */
27727
+ 409: {
27728
+ headers: {
27729
+ [name: string]: unknown;
27730
+ };
27731
+ content?: never;
27732
+ };
27733
+ /** @description The upload exceeds the evidence size limit. */
27734
+ 413: {
27735
+ headers: {
27736
+ [name: string]: unknown;
27737
+ };
27738
+ content?: never;
27739
+ };
27740
+ /** @description Use multipart/form-data with a valid JPEG or PNG image. */
27741
+ 415: {
27742
+ headers: {
27743
+ [name: string]: unknown;
27744
+ };
27745
+ content?: never;
27746
+ };
27747
+ /** @description The marketplace does not support rejection evidence uploads. */
27748
+ 422: {
27749
+ headers: {
27750
+ [name: string]: unknown;
27751
+ };
27752
+ content?: never;
27753
+ };
27754
+ /** @description Rate limit exceeded. */
27755
+ 429: {
27756
+ headers: {
27757
+ [name: string]: unknown;
27758
+ };
27759
+ content?: never;
27760
+ };
27761
+ /** @description The marketplace could not accept the evidence upload. */
27762
+ 502: {
27763
+ headers: {
27764
+ [name: string]: unknown;
27765
+ };
27766
+ content?: never;
27767
+ };
27768
+ /** @description Service unavailable. Retry a submission with the same requestId and unchanged operations. */
27769
+ 503: {
27770
+ headers: {
27771
+ [name: string]: unknown;
27772
+ };
27773
+ content?: never;
27774
+ };
27775
+ };
27776
+ };
27603
27777
  get_v1_returns_actions: {
27604
27778
  parameters: {
27605
27779
  query: {
@@ -27655,6 +27829,22 @@ interface operations {
27655
27829
  id: string;
27656
27830
  label: string;
27657
27831
  description: string;
27832
+ input?:
27833
+ | {
27834
+ /** @constant */
27835
+ kind: "reject";
27836
+ reasons: {
27837
+ id: string;
27838
+ label: string;
27839
+ }[];
27840
+ evidenceUpload?: boolean;
27841
+ }
27842
+ | {
27843
+ /** @constant */
27844
+ kind: "partial_refund";
27845
+ currency: string;
27846
+ maximum: string;
27847
+ };
27658
27848
  }[];
27659
27849
  limitation?: string;
27660
27850
  version: string;
@@ -27730,6 +27920,24 @@ interface operations {
27730
27920
  returnId: string;
27731
27921
  actionId: string;
27732
27922
  version: string;
27923
+ input?:
27924
+ | {
27925
+ /** @constant */
27926
+ kind: "reject";
27927
+ reasonId: string;
27928
+ comment?: string;
27929
+ evidence?: {
27930
+ name: string;
27931
+ receipt: string;
27932
+ }[];
27933
+ }
27934
+ | {
27935
+ /** @constant */
27936
+ kind: "partial_refund";
27937
+ amount: string;
27938
+ currency: string;
27939
+ buyerAgreement: boolean;
27940
+ };
27733
27941
  }[];
27734
27942
  organizationId?: string;
27735
27943
  };
@@ -33515,9 +33723,9 @@ declare class OrdersClient {
33515
33723
  /**
33516
33724
  * Get Order Action Options
33517
33725
  *
33518
- * Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.
33726
+ * Read marketplace choices for this order, including seller cancellation reasons for `action=cancel`. Eligible orders can include orders awaiting carrier collection. Requires `orders:write`.
33519
33727
 
33520
- Send the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.
33728
+ Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
33521
33729
  *
33522
33730
  * `GET /api/v1/orders/{orderId}/action-options`
33523
33731
  */
@@ -33527,7 +33735,7 @@ declare class OrdersClient {
33527
33735
  *
33528
33736
  * The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
33529
33737
 
33530
- Poll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.
33738
+ After submission, find the returned job ID here. Read its status for the marketplace outcome and `errorMessage` for failures. A succeeded `labels` job lists its label files in `labels`.
33531
33739
  *
33532
33740
  * `GET /api/v1/orders/{orderId}/actions`
33533
33741
  */
@@ -33537,7 +33745,7 @@ declare class OrdersClient {
33537
33745
  *
33538
33746
  * Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
33539
33747
 
33540
- The marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.
33748
+ For `cancel`, send the exact payload of a reviewed cancellation reason from the action options endpoint. The marketplace call runs in the background. The `202` response provides a `jobId`. Poll `GET /api/v1/orders/{orderId}/actions` for its outcome. A repeated `idempotencyKey` with the same request returns `200` with the original job.
33541
33749
  *
33542
33750
  * `POST /api/v1/orders/{orderId}/actions`
33543
33751
  */
@@ -33551,7 +33759,7 @@ declare class OrdersClient {
33551
33759
 
33552
33760
  ### Choices
33553
33761
 
33554
- Read current marketplace choices for ship, cancel, labels or update_tracking for 1–50 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.
33762
+ Read marketplace choices for `ship`, `cancel`, `labels`, or `update_tracking` for 1–50 UUIDs using repeated `orderIds` parameters. Results preserve first-requested order and report any per-order eligibility or capability errors. For `cancel`, review an available reason for each order and use its exact `payload`. Orders awaiting collection can be eligible when the marketplace permits it. For other actions, supply any fields marked `requiresInput`.
33555
33763
  *
33556
33764
  * `GET /api/v1/orders/actions`
33557
33765
  */
@@ -33565,11 +33773,9 @@ declare class OrdersClient {
33565
33773
 
33566
33774
  ### Batch submission
33567
33775
 
33568
- Queue 1–50 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.
33776
+ Queue 1–50 distinct orders with a UUID `requestId` and one operation per order. Each operation carries an `orderId`, `action`, and any marketplace inputs in `payload`. For `cancel`, send the reviewed reason's exact payload from GET /api/v1/orders/actions. All targets are authorized before enqueue. Per-order results preserve request order and report acceptance or errors.
33569
33777
 
33570
- ### Recovery and completion
33571
-
33572
- Retain requestId and unchanged operations for retr
33778
+ Retain `requestId` and unchanged operations for retries. Follow `links.poll` with every returned job ID to check the marketplace outcomes. The worker rechecks permissions before each marketplace write.
33573
33779
  *
33574
33780
  * `POST /api/v1/orders/actions`
33575
33781
  */
@@ -33583,7 +33789,7 @@ declare class OrdersClient {
33583
33789
 
33584
33790
  ### Outcomes and labels
33585
33791
 
33586
- Read every requested order action job in one batch of 1–50 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.
33792
+ Read 1–50 jobs using repeated `jobIds` parameters. Results preserve first-requested order. `data.success` requires every job to succeed. `pendingCount` includes queued and running jobs. `failedCount` includes failed and unsupported jobs. Amazon cancellations can stay running while its feed is processed. Successful label jobs return download links. A missing or cross-organization job returns 404. Current store restrictions apply.
33587
33793
  *
33588
33794
  * `GET /api/v1/orders/actions/jobs`
33589
33795
  */
@@ -33902,7 +34108,9 @@ declare class ProductsClient {
33902
34108
  /**
33903
34109
  * Get Bulk Product Update Options
33904
34110
  *
33905
- * List the same active stock-file-capable sources as Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read. Resolve a sourceId from this organization-scoped result before starting inventory/both updates; an ambiguous choice requires seller selection.
34111
+ * List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
34112
+
34113
+ Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
33906
34114
  *
33907
34115
  * `GET /api/v1/products/bulk-update`
33908
34116
  */
@@ -33910,7 +34118,15 @@ declare class ProductsClient {
33910
34118
  /**
33911
34119
  * Bulk Update Product Prices and Stock
33912
34120
  *
33913
- * Update existing catalog SKUs from 1–10 uploaded CSV/Excel documentIds (up to 10,000 rows per file), using the same price and inventory import services as Omni Bulk Update. Requires catalog:write and the corresponding product/inventory capabilities. No product creation. Exact SKU matching rejects duplicate/ambiguous and unknown SKUs; zero values are preserved. Inventory requires an authorized manual/CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults true; optional marketplaces restricts existing listing sync across supported platforms. Returns ordered per-document results and saved imports references. Updates continue through the durable file-update workflow beyond the caller lifetime; acceptance is not completion. Pass every returned reference
34121
+ * Update existing catalog SKUs from 1–10 uploaded CSV or Excel documentIds, with up to 10,000 rows per file. Requires catalog:write and the corresponding product or inventory capabilities.
34122
+
34123
+ ### File and source selection
34124
+
34125
+ Exact SKU matching preserves zero values and rejects duplicate, ambiguous, or unknown SKUs. Inventory needs an authorized manual or CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults to true. Use marketplaces to limit which existing listings are synced.
34126
+
34127
+ ### Track the results
34128
+
34129
+ Pass every saved import reference to products.bulkUpdateStatus. Results preserve document order. The workflow runs after the request returns. Applied inventory means source balances were saved and listing sync was queued.
33914
34130
  *
33915
34131
  * `POST /api/v1/products/bulk-update`
33916
34132
  */
@@ -33918,7 +34134,9 @@ declare class ProductsClient {
33918
34134
  /**
33919
34135
  * Get Bulk Product Update Status
33920
34136
  *
33921
- * Read up to 20 typed saved imports in requested order. Requires catalog:read and the corresponding product/inventory read capabilities. IDs are deduplicated by kind and importId. Pending imports are incomplete; invalid/unknown rows and missing organization-scoped imports remain explicit failures. Compact by default; includeRows returns at most 100 rows per import using rowOffset/rowLimit. Catalog stock apply does not certify marketplace state.
34137
+ * Read up to 20 saved imports in request order. Requires catalog:read and the corresponding product or inventory read capabilities. Imports are deduplicated by kind and importId.
34138
+
34139
+ Pending imports are incomplete. Results report invalid or unknown rows and missing organization-scoped imports. Use includeRows with rowOffset and rowLimit for up to 100 rows per import. The result describes saved catalog stock.
33922
34140
  *
33923
34141
  * `POST /api/v1/products/bulk-update/status`
33924
34142
  */
@@ -34286,6 +34504,16 @@ declare class ReturnsClient {
34286
34504
  * `GET /api/v1/returns/{returnId}`
34287
34505
  */
34288
34506
  get(request: OperationPath<operations["get_v1_returns_by_returnid"]> & OperationQuery<operations["get_v1_returns_by_returnid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_returns_by_returnid"]>>;
34507
+ /**
34508
+ * Upload Return Rejection Evidence
34509
+ *
34510
+ * Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
34511
+
34512
+ Use the receipt and filename in `input.evidence` when submitting the reviewed rejection. A rejection can include up to six images. Each receipt is scoped to its return and expires after 24 hours.
34513
+ *
34514
+ * `POST /api/v1/returns/{returnId}/evidence`
34515
+ */
34516
+ uploadEvidence(request: OperationPath<operations["post_v1_returns_by_returnid_evidence"]> & OperationQuery<operations["post_v1_returns_by_returnid_evidence"]> & OperationBody<operations["post_v1_returns_by_returnid_evidence"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_returns_by_returnid_evidence"]>>;
34289
34517
  /**
34290
34518
  * Check Return Actions
34291
34519
  *
@@ -34833,7 +35061,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
34833
35061
  toleranceInSeconds?: number;
34834
35062
  }): Promise<ConstructedWebhookEvent>;
34835
35063
 
34836
- declare const SDK_VERSION = "0.23.0";
35064
+ declare const SDK_VERSION = "0.24.0";
34837
35065
 
34838
35066
  type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
34839
35067
  type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];