@omni-commerce/sdk 0.23.0 → 0.25.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/README.md +4 -0
- package/dist/index.cjs +89 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +677 -48
- package/dist/index.d.ts +677 -48
- package/dist/index.js +89 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1587,6 +1587,8 @@ interface paths {
|
|
|
1587
1587
|
* Get Developer Job Status
|
|
1588
1588
|
* @description Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.
|
|
1589
1589
|
*
|
|
1590
|
+
* Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
|
|
1591
|
+
*
|
|
1590
1592
|
* Price comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.
|
|
1591
1593
|
*/
|
|
1592
1594
|
get: operations["get_v1_jobs_by_jobid"];
|
|
@@ -1951,9 +1953,9 @@ interface paths {
|
|
|
1951
1953
|
};
|
|
1952
1954
|
/**
|
|
1953
1955
|
* Get Order Action Options
|
|
1954
|
-
* @description
|
|
1956
|
+
* @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
1957
|
*
|
|
1956
|
-
*
|
|
1958
|
+
* Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
|
|
1957
1959
|
*/
|
|
1958
1960
|
get: operations["get_v1_orders_by_orderid_action_options"];
|
|
1959
1961
|
put?: never;
|
|
@@ -1975,7 +1977,7 @@ interface paths {
|
|
|
1975
1977
|
* List Order Actions
|
|
1976
1978
|
* @description The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
|
|
1977
1979
|
*
|
|
1978
|
-
*
|
|
1980
|
+
* 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
1981
|
*/
|
|
1980
1982
|
get: operations["get_v1_orders_by_orderid_actions"];
|
|
1981
1983
|
put?: never;
|
|
@@ -1983,7 +1985,7 @@ interface paths {
|
|
|
1983
1985
|
* Queue Order Action
|
|
1984
1986
|
* @description Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
|
|
1985
1987
|
*
|
|
1986
|
-
* The marketplace call runs in the background
|
|
1988
|
+
* 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
1989
|
*/
|
|
1988
1990
|
post: operations["post_v1_orders_by_orderid_actions"];
|
|
1989
1991
|
delete?: never;
|
|
@@ -2007,7 +2009,7 @@ interface paths {
|
|
|
2007
2009
|
*
|
|
2008
2010
|
* ### Choices
|
|
2009
2011
|
*
|
|
2010
|
-
* Read
|
|
2012
|
+
* 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
2013
|
*/
|
|
2012
2014
|
get: operations["get_v1_orders_actions"];
|
|
2013
2015
|
put?: never;
|
|
@@ -2019,11 +2021,9 @@ interface paths {
|
|
|
2019
2021
|
*
|
|
2020
2022
|
* ### Batch submission
|
|
2021
2023
|
*
|
|
2022
|
-
* Queue 1–50 distinct
|
|
2023
|
-
*
|
|
2024
|
-
* ### Recovery and completion
|
|
2024
|
+
* 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.
|
|
2025
2025
|
*
|
|
2026
|
-
* Retain requestId and unchanged operations for retries
|
|
2026
|
+
* 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
2027
|
*/
|
|
2028
2028
|
post: operations["post_v1_orders_actions"];
|
|
2029
2029
|
delete?: never;
|
|
@@ -2047,7 +2047,7 @@ interface paths {
|
|
|
2047
2047
|
*
|
|
2048
2048
|
* ### Outcomes and labels
|
|
2049
2049
|
*
|
|
2050
|
-
* Read
|
|
2050
|
+
* 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
2051
|
*/
|
|
2052
2052
|
get: operations["get_v1_orders_actions_jobs"];
|
|
2053
2053
|
put?: never;
|
|
@@ -2457,6 +2457,10 @@ interface paths {
|
|
|
2457
2457
|
* Bulk Import Products from JSON or CSV
|
|
2458
2458
|
* @description Queue a bulk product import for the authenticated organization.
|
|
2459
2459
|
*
|
|
2460
|
+
* ### Destinations
|
|
2461
|
+
*
|
|
2462
|
+
* Supply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.
|
|
2463
|
+
*
|
|
2460
2464
|
* Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.
|
|
2461
2465
|
*
|
|
2462
2466
|
* ### Input options
|
|
@@ -2542,13 +2546,23 @@ interface paths {
|
|
|
2542
2546
|
};
|
|
2543
2547
|
/**
|
|
2544
2548
|
* Get Bulk Product Update Options
|
|
2545
|
-
* @description List
|
|
2549
|
+
* @description List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
|
|
2550
|
+
*
|
|
2551
|
+
* Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
|
|
2546
2552
|
*/
|
|
2547
2553
|
get: operations["get_v1_products_bulk_update"];
|
|
2548
2554
|
put?: never;
|
|
2549
2555
|
/**
|
|
2550
2556
|
* Bulk Update Product Prices and Stock
|
|
2551
|
-
* @description Update existing catalog SKUs from 1–10 uploaded CSV
|
|
2557
|
+
* @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.
|
|
2558
|
+
*
|
|
2559
|
+
* ### File and source selection
|
|
2560
|
+
*
|
|
2561
|
+
* 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.
|
|
2562
|
+
*
|
|
2563
|
+
* ### Track the results
|
|
2564
|
+
*
|
|
2565
|
+
* 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
2566
|
*/
|
|
2553
2567
|
post: operations["post_v1_products_bulk_update"];
|
|
2554
2568
|
delete?: never;
|
|
@@ -2568,7 +2582,9 @@ interface paths {
|
|
|
2568
2582
|
put?: never;
|
|
2569
2583
|
/**
|
|
2570
2584
|
* Get Bulk Product Update Status
|
|
2571
|
-
* @description Read up to 20
|
|
2585
|
+
* @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.
|
|
2586
|
+
*
|
|
2587
|
+
* 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
2588
|
*/
|
|
2573
2589
|
post: operations["post_v1_products_bulk_update_status"];
|
|
2574
2590
|
delete?: never;
|
|
@@ -2804,13 +2820,13 @@ interface paths {
|
|
|
2804
2820
|
*
|
|
2805
2821
|
* ### Enrichment options
|
|
2806
2822
|
*
|
|
2807
|
-
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
2823
|
+
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections. Use deferredMarketplaces to enrich product content and save marketplace drafts for later store assignment. This option excludes store-specific taxonomy and publish=true. Assign stores with POST /api/v1/products/marketplace-stores before publishing.
|
|
2808
2824
|
*
|
|
2809
2825
|
* autoApplyHighConfidence defaults to false. Independent enrichmentAutoApplyThreshold and taxonomyAutoApplyThreshold accept 0.62–1; omitted thresholds use organization settings. Low-confidence or blocked proposals remain in Review. AI usage is billed to the authenticated organization.
|
|
2810
2826
|
*
|
|
2811
2827
|
* ### Publishing after approval
|
|
2812
2828
|
*
|
|
2813
|
-
* Set publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.
|
|
2829
|
+
* Set publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write and catalog:sync. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.
|
|
2814
2830
|
*/
|
|
2815
2831
|
post: operations["post_v1_products_enrich"];
|
|
2816
2832
|
delete?: never;
|
|
@@ -2819,6 +2835,34 @@ interface paths {
|
|
|
2819
2835
|
patch?: never;
|
|
2820
2836
|
trace?: never;
|
|
2821
2837
|
};
|
|
2838
|
+
"/api/v1/products/marketplace-stores": {
|
|
2839
|
+
parameters: {
|
|
2840
|
+
query?: never;
|
|
2841
|
+
header?: never;
|
|
2842
|
+
path?: never;
|
|
2843
|
+
cookie?: never;
|
|
2844
|
+
};
|
|
2845
|
+
get?: never;
|
|
2846
|
+
put?: never;
|
|
2847
|
+
/**
|
|
2848
|
+
* Assign Product Marketplace Stores
|
|
2849
|
+
* @description Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
|
|
2850
|
+
*
|
|
2851
|
+
* ### Store selection
|
|
2852
|
+
*
|
|
2853
|
+
* Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
|
|
2854
|
+
*
|
|
2855
|
+
* ### Publish assigned stores
|
|
2856
|
+
*
|
|
2857
|
+
* The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.
|
|
2858
|
+
*/
|
|
2859
|
+
post: operations["post_v1_products_marketplace_stores"];
|
|
2860
|
+
delete?: never;
|
|
2861
|
+
options?: never;
|
|
2862
|
+
head?: never;
|
|
2863
|
+
patch?: never;
|
|
2864
|
+
trace?: never;
|
|
2865
|
+
};
|
|
2822
2866
|
"/api/v1/promotions": {
|
|
2823
2867
|
parameters: {
|
|
2824
2868
|
query?: never;
|
|
@@ -3179,6 +3223,28 @@ interface paths {
|
|
|
3179
3223
|
patch?: never;
|
|
3180
3224
|
trace?: never;
|
|
3181
3225
|
};
|
|
3226
|
+
"/api/v1/returns/{returnId}/evidence": {
|
|
3227
|
+
parameters: {
|
|
3228
|
+
query?: never;
|
|
3229
|
+
header?: never;
|
|
3230
|
+
path?: never;
|
|
3231
|
+
cookie?: never;
|
|
3232
|
+
};
|
|
3233
|
+
get?: never;
|
|
3234
|
+
put?: never;
|
|
3235
|
+
/**
|
|
3236
|
+
* Upload Return Rejection Evidence
|
|
3237
|
+
* @description Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
|
|
3238
|
+
*
|
|
3239
|
+
* 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.
|
|
3240
|
+
*/
|
|
3241
|
+
post: operations["post_v1_returns_by_returnid_evidence"];
|
|
3242
|
+
delete?: never;
|
|
3243
|
+
options?: never;
|
|
3244
|
+
head?: never;
|
|
3245
|
+
patch?: never;
|
|
3246
|
+
trace?: never;
|
|
3247
|
+
};
|
|
3182
3248
|
"/api/v1/returns/actions": {
|
|
3183
3249
|
parameters: {
|
|
3184
3250
|
query?: never;
|
|
@@ -11506,6 +11572,36 @@ interface operations {
|
|
|
11506
11572
|
offerId: string;
|
|
11507
11573
|
name: string;
|
|
11508
11574
|
error: string;
|
|
11575
|
+
windowId?: string;
|
|
11576
|
+
correction?: string;
|
|
11577
|
+
workbookLocations?: {
|
|
11578
|
+
sheet: string;
|
|
11579
|
+
row?: number;
|
|
11580
|
+
sku?: string;
|
|
11581
|
+
itemId?: string;
|
|
11582
|
+
ean?: string;
|
|
11583
|
+
sourceReference?: string;
|
|
11584
|
+
}[];
|
|
11585
|
+
storeErrors?: {
|
|
11586
|
+
/** @enum {string} */
|
|
11587
|
+
marketplace:
|
|
11588
|
+
| "shopee"
|
|
11589
|
+
| "lazada"
|
|
11590
|
+
| "tiktok"
|
|
11591
|
+
| "shopify"
|
|
11592
|
+
| "whatsapp"
|
|
11593
|
+
| "zalora"
|
|
11594
|
+
| "amazon"
|
|
11595
|
+
| "ebay";
|
|
11596
|
+
storeId: string;
|
|
11597
|
+
country: string;
|
|
11598
|
+
errors: string[];
|
|
11599
|
+
assignmentErrors?: {
|
|
11600
|
+
productId: string;
|
|
11601
|
+
sku: string | null;
|
|
11602
|
+
error: string;
|
|
11603
|
+
}[];
|
|
11604
|
+
}[];
|
|
11509
11605
|
}[];
|
|
11510
11606
|
scheduleIssues: {
|
|
11511
11607
|
windowId: string;
|
|
@@ -11713,6 +11809,36 @@ interface operations {
|
|
|
11713
11809
|
offerId: string;
|
|
11714
11810
|
name: string;
|
|
11715
11811
|
error: string;
|
|
11812
|
+
windowId?: string;
|
|
11813
|
+
correction?: string;
|
|
11814
|
+
workbookLocations?: {
|
|
11815
|
+
sheet: string;
|
|
11816
|
+
row?: number;
|
|
11817
|
+
sku?: string;
|
|
11818
|
+
itemId?: string;
|
|
11819
|
+
ean?: string;
|
|
11820
|
+
sourceReference?: string;
|
|
11821
|
+
}[];
|
|
11822
|
+
storeErrors?: {
|
|
11823
|
+
/** @enum {string} */
|
|
11824
|
+
marketplace:
|
|
11825
|
+
| "shopee"
|
|
11826
|
+
| "lazada"
|
|
11827
|
+
| "tiktok"
|
|
11828
|
+
| "shopify"
|
|
11829
|
+
| "whatsapp"
|
|
11830
|
+
| "zalora"
|
|
11831
|
+
| "amazon"
|
|
11832
|
+
| "ebay";
|
|
11833
|
+
storeId: string;
|
|
11834
|
+
country: string;
|
|
11835
|
+
errors: string[];
|
|
11836
|
+
assignmentErrors?: {
|
|
11837
|
+
productId: string;
|
|
11838
|
+
sku: string | null;
|
|
11839
|
+
error: string;
|
|
11840
|
+
}[];
|
|
11841
|
+
}[];
|
|
11716
11842
|
}[];
|
|
11717
11843
|
scheduleIssues: {
|
|
11718
11844
|
windowId: string;
|
|
@@ -12198,6 +12324,36 @@ interface operations {
|
|
|
12198
12324
|
offerId: string;
|
|
12199
12325
|
name: string;
|
|
12200
12326
|
error: string;
|
|
12327
|
+
windowId?: string;
|
|
12328
|
+
correction?: string;
|
|
12329
|
+
workbookLocations?: {
|
|
12330
|
+
sheet: string;
|
|
12331
|
+
row?: number;
|
|
12332
|
+
sku?: string;
|
|
12333
|
+
itemId?: string;
|
|
12334
|
+
ean?: string;
|
|
12335
|
+
sourceReference?: string;
|
|
12336
|
+
}[];
|
|
12337
|
+
storeErrors?: {
|
|
12338
|
+
/** @enum {string} */
|
|
12339
|
+
marketplace:
|
|
12340
|
+
| "shopee"
|
|
12341
|
+
| "lazada"
|
|
12342
|
+
| "tiktok"
|
|
12343
|
+
| "shopify"
|
|
12344
|
+
| "whatsapp"
|
|
12345
|
+
| "zalora"
|
|
12346
|
+
| "amazon"
|
|
12347
|
+
| "ebay";
|
|
12348
|
+
storeId: string;
|
|
12349
|
+
country: string;
|
|
12350
|
+
errors: string[];
|
|
12351
|
+
assignmentErrors?: {
|
|
12352
|
+
productId: string;
|
|
12353
|
+
sku: string | null;
|
|
12354
|
+
error: string;
|
|
12355
|
+
}[];
|
|
12356
|
+
}[];
|
|
12201
12357
|
}[];
|
|
12202
12358
|
scheduleIssues: {
|
|
12203
12359
|
windowId: string;
|
|
@@ -12650,6 +12806,36 @@ interface operations {
|
|
|
12650
12806
|
offerId: string;
|
|
12651
12807
|
name: string;
|
|
12652
12808
|
error: string;
|
|
12809
|
+
windowId?: string;
|
|
12810
|
+
correction?: string;
|
|
12811
|
+
workbookLocations?: {
|
|
12812
|
+
sheet: string;
|
|
12813
|
+
row?: number;
|
|
12814
|
+
sku?: string;
|
|
12815
|
+
itemId?: string;
|
|
12816
|
+
ean?: string;
|
|
12817
|
+
sourceReference?: string;
|
|
12818
|
+
}[];
|
|
12819
|
+
storeErrors?: {
|
|
12820
|
+
/** @enum {string} */
|
|
12821
|
+
marketplace:
|
|
12822
|
+
| "shopee"
|
|
12823
|
+
| "lazada"
|
|
12824
|
+
| "tiktok"
|
|
12825
|
+
| "shopify"
|
|
12826
|
+
| "whatsapp"
|
|
12827
|
+
| "zalora"
|
|
12828
|
+
| "amazon"
|
|
12829
|
+
| "ebay";
|
|
12830
|
+
storeId: string;
|
|
12831
|
+
country: string;
|
|
12832
|
+
errors: string[];
|
|
12833
|
+
assignmentErrors?: {
|
|
12834
|
+
productId: string;
|
|
12835
|
+
sku: string | null;
|
|
12836
|
+
error: string;
|
|
12837
|
+
}[];
|
|
12838
|
+
}[];
|
|
12653
12839
|
}[];
|
|
12654
12840
|
scheduleIssues: {
|
|
12655
12841
|
windowId: string;
|
|
@@ -12873,6 +13059,36 @@ interface operations {
|
|
|
12873
13059
|
offerId: string;
|
|
12874
13060
|
name: string;
|
|
12875
13061
|
error: string;
|
|
13062
|
+
windowId?: string;
|
|
13063
|
+
correction?: string;
|
|
13064
|
+
workbookLocations?: {
|
|
13065
|
+
sheet: string;
|
|
13066
|
+
row?: number;
|
|
13067
|
+
sku?: string;
|
|
13068
|
+
itemId?: string;
|
|
13069
|
+
ean?: string;
|
|
13070
|
+
sourceReference?: string;
|
|
13071
|
+
}[];
|
|
13072
|
+
storeErrors?: {
|
|
13073
|
+
/** @enum {string} */
|
|
13074
|
+
marketplace:
|
|
13075
|
+
| "shopee"
|
|
13076
|
+
| "lazada"
|
|
13077
|
+
| "tiktok"
|
|
13078
|
+
| "shopify"
|
|
13079
|
+
| "whatsapp"
|
|
13080
|
+
| "zalora"
|
|
13081
|
+
| "amazon"
|
|
13082
|
+
| "ebay";
|
|
13083
|
+
storeId: string;
|
|
13084
|
+
country: string;
|
|
13085
|
+
errors: string[];
|
|
13086
|
+
assignmentErrors?: {
|
|
13087
|
+
productId: string;
|
|
13088
|
+
sku: string | null;
|
|
13089
|
+
error: string;
|
|
13090
|
+
}[];
|
|
13091
|
+
}[];
|
|
12876
13092
|
}[];
|
|
12877
13093
|
scheduleIssues: {
|
|
12878
13094
|
windowId: string;
|
|
@@ -13824,6 +14040,23 @@ interface operations {
|
|
|
13824
14040
|
warnings?: string[];
|
|
13825
14041
|
issueCount?: number;
|
|
13826
14042
|
issues?: string[];
|
|
14043
|
+
issueDetails?: {
|
|
14044
|
+
/** @enum {string} */
|
|
14045
|
+
stage: "workbook_validation" | "campaign_readiness";
|
|
14046
|
+
message: string;
|
|
14047
|
+
correction: string;
|
|
14048
|
+
locations: {
|
|
14049
|
+
sheet: string;
|
|
14050
|
+
row?: number;
|
|
14051
|
+
sku?: string;
|
|
14052
|
+
itemId?: string;
|
|
14053
|
+
ean?: string;
|
|
14054
|
+
sourceReference?: string;
|
|
14055
|
+
}[];
|
|
14056
|
+
field?: string;
|
|
14057
|
+
targetIds?: string[];
|
|
14058
|
+
}[];
|
|
14059
|
+
omittedIssueCount?: number;
|
|
13827
14060
|
error?: string;
|
|
13828
14061
|
}[];
|
|
13829
14062
|
};
|
|
@@ -19030,6 +19263,24 @@ interface operations {
|
|
|
19030
19263
|
content: {
|
|
19031
19264
|
"application/json": {
|
|
19032
19265
|
items?: {
|
|
19266
|
+
/** Format: uuid */
|
|
19267
|
+
id?: string;
|
|
19268
|
+
status?: string;
|
|
19269
|
+
/** @enum {string} */
|
|
19270
|
+
statusGroup?:
|
|
19271
|
+
| "to_ship"
|
|
19272
|
+
| "shipped"
|
|
19273
|
+
| "completed"
|
|
19274
|
+
| "pending"
|
|
19275
|
+
| "return"
|
|
19276
|
+
| "canceled";
|
|
19277
|
+
returnStatusLabels?: string[];
|
|
19278
|
+
/** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
|
|
19279
|
+
aftersalesOutcome?: {
|
|
19280
|
+
received: boolean;
|
|
19281
|
+
/** @enum {string|null} */
|
|
19282
|
+
refund: "full" | "partial" | null;
|
|
19283
|
+
};
|
|
19033
19284
|
/** @description Formula-net marketplace payment. Null until every active line has been reconciled. */
|
|
19034
19285
|
paymentReceived?: number | null;
|
|
19035
19286
|
/** @description Order-time COGS total. Null while any active line lacks a cost snapshot. */
|
|
@@ -19427,6 +19678,13 @@ interface operations {
|
|
|
19427
19678
|
returnCompletion?: {
|
|
19428
19679
|
[key: string]: unknown;
|
|
19429
19680
|
} | null;
|
|
19681
|
+
returnStatusLabels?: string[];
|
|
19682
|
+
/** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
|
|
19683
|
+
aftersalesOutcome?: {
|
|
19684
|
+
received: boolean;
|
|
19685
|
+
/** @enum {string|null} */
|
|
19686
|
+
refund: "full" | "partial" | null;
|
|
19687
|
+
};
|
|
19430
19688
|
statusHistory?: {
|
|
19431
19689
|
[key: string]: unknown;
|
|
19432
19690
|
}[];
|
|
@@ -19863,11 +20121,11 @@ interface operations {
|
|
|
19863
20121
|
/** @description Required for session auth. API keys already belong to one organization. */
|
|
19864
20122
|
organizationId?: string;
|
|
19865
20123
|
/**
|
|
19866
|
-
* @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel`
|
|
20124
|
+
* @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel` requests seller cancellation.
|
|
19867
20125
|
* @enum {string}
|
|
19868
20126
|
*/
|
|
19869
20127
|
action: "ship" | "cancel" | "labels" | "update_tracking";
|
|
19870
|
-
/** @description Marketplace inputs for the action.
|
|
20128
|
+
/** @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
20129
|
payload?: {
|
|
19872
20130
|
[key: string]: unknown;
|
|
19873
20131
|
};
|
|
@@ -23477,7 +23735,7 @@ interface operations {
|
|
|
23477
23735
|
| "price"
|
|
23478
23736
|
| "inventory"
|
|
23479
23737
|
)[];
|
|
23480
|
-
/** @description Optional exact assigned stores to publish. Omit to publish every eligible assigned store in the selected marketplaces. Duplicate marketplace/store pairs are removed. Invalid or disconnected targets return explicit failures while valid targets continue. */
|
|
23738
|
+
/** @description Optional exact assigned stores to publish. Assign stores to marketplace drafts through POST /api/v1/products/marketplace-stores first. Omit to publish every eligible assigned store in the selected marketplaces. Duplicate marketplace/store pairs are removed. Invalid or disconnected targets return explicit failures while valid targets continue. */
|
|
23481
23739
|
storeTargets?: {
|
|
23482
23740
|
/** @enum {string} */
|
|
23483
23741
|
marketplace:
|
|
@@ -23714,6 +23972,8 @@ interface operations {
|
|
|
23714
23972
|
| "amazon"
|
|
23715
23973
|
| "ebay"
|
|
23716
23974
|
)[];
|
|
23975
|
+
/** @description Save marketplace drafts and assign stores later. Omit marketplaceStoreSelections and leave workflow.publish off. */
|
|
23976
|
+
deferStoreSelection?: boolean;
|
|
23717
23977
|
targetCountries?: string[];
|
|
23718
23978
|
fieldMapping?: {
|
|
23719
23979
|
[key: string]: string;
|
|
@@ -23726,8 +23986,8 @@ interface operations {
|
|
|
23726
23986
|
| "fail_job";
|
|
23727
23987
|
autoApproveThreshold?: number | null;
|
|
23728
23988
|
spendCeilingUsd?: number | null;
|
|
23729
|
-
/** @description
|
|
23730
|
-
marketplaceStoreSelections
|
|
23989
|
+
/** @description Required unless deferStoreSelection is true. */
|
|
23990
|
+
marketplaceStoreSelections?: {
|
|
23731
23991
|
/** @description Connected shopee store IDs. */
|
|
23732
23992
|
shopee?: string[];
|
|
23733
23993
|
/** @description Connected lazada store IDs. */
|
|
@@ -23804,10 +24064,12 @@ interface operations {
|
|
|
23804
24064
|
| "ebay"
|
|
23805
24065
|
)[];
|
|
23806
24066
|
targetCountries?: string | string[];
|
|
24067
|
+
/** @description Send true as a form field to save marketplace-only drafts. */
|
|
24068
|
+
deferStoreSelection?: boolean;
|
|
23807
24069
|
/** @description JSON object mapping CSV headers to import fields, e.g. `{"sku":"SKU","title":"Product Name"}`. */
|
|
23808
24070
|
fieldMapping?: string;
|
|
23809
|
-
/** @description
|
|
23810
|
-
marketplaceStoreSelections
|
|
24071
|
+
/** @description Required unless deferStoreSelection is true. Send connected store ID arrays for each target marketplace as a JSON object encoded in the form field. */
|
|
24072
|
+
marketplaceStoreSelections?:
|
|
23811
24073
|
| {
|
|
23812
24074
|
/** @description Connected shopee store IDs. */
|
|
23813
24075
|
shopee?: string[];
|
|
@@ -23878,6 +24140,8 @@ interface operations {
|
|
|
23878
24140
|
data?: {
|
|
23879
24141
|
rowCount?: number;
|
|
23880
24142
|
fileName?: string;
|
|
24143
|
+
/** @description True for marketplace-only imports. */
|
|
24144
|
+
deferStoreSelection?: boolean;
|
|
23881
24145
|
targetMarketplaces?: string[];
|
|
23882
24146
|
targetCountries?: string[];
|
|
23883
24147
|
fieldMapping?: Record<string, never>;
|
|
@@ -23900,7 +24164,7 @@ interface operations {
|
|
|
23900
24164
|
};
|
|
23901
24165
|
content?: never;
|
|
23902
24166
|
};
|
|
23903
|
-
/** @description Forbidden -
|
|
24167
|
+
/** @description Forbidden - Credential cannot access this organization or lacks the required catalog scope. */
|
|
23904
24168
|
403: {
|
|
23905
24169
|
headers: {
|
|
23906
24170
|
[name: string]: unknown;
|
|
@@ -25546,6 +25810,17 @@ interface operations {
|
|
|
25546
25810
|
| "amazon"
|
|
25547
25811
|
| "ebay"
|
|
25548
25812
|
)[];
|
|
25813
|
+
/** @description Prepare marketplace destinations for later store assignment. Requires product content enrichment and excludes store-specific taxonomy and automatic publishing. */
|
|
25814
|
+
deferredMarketplaces?: (
|
|
25815
|
+
| "shopee"
|
|
25816
|
+
| "lazada"
|
|
25817
|
+
| "tiktok"
|
|
25818
|
+
| "shopify"
|
|
25819
|
+
| "whatsapp"
|
|
25820
|
+
| "zalora"
|
|
25821
|
+
| "amazon"
|
|
25822
|
+
| "ebay"
|
|
25823
|
+
)[];
|
|
25549
25824
|
marketplaceStoreSelections?: {
|
|
25550
25825
|
[key: string]: string[] | string;
|
|
25551
25826
|
};
|
|
@@ -25568,7 +25843,7 @@ interface operations {
|
|
|
25568
25843
|
/** @description Marketplace taxonomy confidence threshold, independent of copy and import-row autoApproveThreshold. Omit to use the organization setting. */
|
|
25569
25844
|
taxonomyAutoApplyThreshold?: number;
|
|
25570
25845
|
/**
|
|
25571
|
-
* @description Publish after all required reviews are approved and applied. Requires catalog:write in addition to catalog:enrich.
|
|
25846
|
+
* @description Publish after all required reviews are approved and applied. Requires catalog:write and catalog:sync in addition to catalog:enrich.
|
|
25572
25847
|
* @default false
|
|
25573
25848
|
*/
|
|
25574
25849
|
publish?: boolean;
|
|
@@ -25604,10 +25879,24 @@ interface operations {
|
|
|
25604
25879
|
failedCount: number;
|
|
25605
25880
|
batchJobId?: string;
|
|
25606
25881
|
enrichmentBatchId?: string;
|
|
25882
|
+
taxonomyBatchIds?: string[];
|
|
25883
|
+
/** @description Prepare marketplace destinations for later store assignment. Requires product content enrichment and excludes store-specific taxonomy and automatic publishing. */
|
|
25884
|
+
deferredMarketplaces?: (
|
|
25885
|
+
| "shopee"
|
|
25886
|
+
| "lazada"
|
|
25887
|
+
| "tiktok"
|
|
25888
|
+
| "shopify"
|
|
25889
|
+
| "whatsapp"
|
|
25890
|
+
| "zalora"
|
|
25891
|
+
| "amazon"
|
|
25892
|
+
| "ebay"
|
|
25893
|
+
)[];
|
|
25607
25894
|
results: {
|
|
25608
25895
|
productId: string;
|
|
25609
25896
|
success: boolean;
|
|
25610
|
-
jobId
|
|
25897
|
+
jobId?: string;
|
|
25898
|
+
jobIds: string[];
|
|
25899
|
+
taxonomyBatchIds: string[];
|
|
25611
25900
|
}[];
|
|
25612
25901
|
};
|
|
25613
25902
|
};
|
|
@@ -25657,6 +25946,162 @@ interface operations {
|
|
|
25657
25946
|
};
|
|
25658
25947
|
};
|
|
25659
25948
|
};
|
|
25949
|
+
post_v1_products_marketplace_stores: {
|
|
25950
|
+
parameters: {
|
|
25951
|
+
query?: never;
|
|
25952
|
+
header?: never;
|
|
25953
|
+
path?: never;
|
|
25954
|
+
cookie?: never;
|
|
25955
|
+
};
|
|
25956
|
+
requestBody: {
|
|
25957
|
+
content: {
|
|
25958
|
+
/**
|
|
25959
|
+
* @example {
|
|
25960
|
+
* "productIds": [
|
|
25961
|
+
* "10480f82-762d-45c5-a427-af809b2477f6"
|
|
25962
|
+
* ],
|
|
25963
|
+
* "selections": [
|
|
25964
|
+
* {
|
|
25965
|
+
* "marketplace": "shopify",
|
|
25966
|
+
* "storeIds": [
|
|
25967
|
+
* "shop-1",
|
|
25968
|
+
* "shop-2"
|
|
25969
|
+
* ]
|
|
25970
|
+
* }
|
|
25971
|
+
* ]
|
|
25972
|
+
* }
|
|
25973
|
+
*/
|
|
25974
|
+
"application/json": {
|
|
25975
|
+
productIds: string[];
|
|
25976
|
+
selections: {
|
|
25977
|
+
/** @enum {string} */
|
|
25978
|
+
marketplace:
|
|
25979
|
+
| "shopee"
|
|
25980
|
+
| "lazada"
|
|
25981
|
+
| "tiktok"
|
|
25982
|
+
| "shopify"
|
|
25983
|
+
| "whatsapp"
|
|
25984
|
+
| "zalora"
|
|
25985
|
+
| "amazon"
|
|
25986
|
+
| "ebay";
|
|
25987
|
+
storeIds: string[];
|
|
25988
|
+
sourceStoreId?: string;
|
|
25989
|
+
storeCountries?: {
|
|
25990
|
+
[key: string]: string;
|
|
25991
|
+
};
|
|
25992
|
+
}[];
|
|
25993
|
+
/** @description Required for session auth; derived from the credential for bearer auth. */
|
|
25994
|
+
organizationId?: string;
|
|
25995
|
+
};
|
|
25996
|
+
};
|
|
25997
|
+
};
|
|
25998
|
+
responses: {
|
|
25999
|
+
/** @description Store assignment results in requested product order. */
|
|
26000
|
+
200: {
|
|
26001
|
+
headers: {
|
|
26002
|
+
[name: string]: unknown;
|
|
26003
|
+
};
|
|
26004
|
+
content: {
|
|
26005
|
+
"application/json": {
|
|
26006
|
+
ok: boolean;
|
|
26007
|
+
/** @enum {string} */
|
|
26008
|
+
status: "completed" | "failed";
|
|
26009
|
+
data: {
|
|
26010
|
+
success: boolean;
|
|
26011
|
+
productIds: string[];
|
|
26012
|
+
storeTargets: {
|
|
26013
|
+
/** @enum {string} */
|
|
26014
|
+
marketplace:
|
|
26015
|
+
| "shopee"
|
|
26016
|
+
| "lazada"
|
|
26017
|
+
| "tiktok"
|
|
26018
|
+
| "shopify"
|
|
26019
|
+
| "whatsapp"
|
|
26020
|
+
| "zalora"
|
|
26021
|
+
| "amazon"
|
|
26022
|
+
| "ebay";
|
|
26023
|
+
storeId: string;
|
|
26024
|
+
}[];
|
|
26025
|
+
succeededCount: number;
|
|
26026
|
+
failedCount: number;
|
|
26027
|
+
results: {
|
|
26028
|
+
productId: string;
|
|
26029
|
+
success: boolean;
|
|
26030
|
+
storeIds?: string[];
|
|
26031
|
+
error?: string;
|
|
26032
|
+
}[];
|
|
26033
|
+
};
|
|
26034
|
+
};
|
|
26035
|
+
};
|
|
26036
|
+
};
|
|
26037
|
+
/** @description One or more product assignments failed. */
|
|
26038
|
+
207: {
|
|
26039
|
+
headers: {
|
|
26040
|
+
[name: string]: unknown;
|
|
26041
|
+
};
|
|
26042
|
+
content: {
|
|
26043
|
+
"application/json": {
|
|
26044
|
+
ok: boolean;
|
|
26045
|
+
/** @enum {string} */
|
|
26046
|
+
status: "completed" | "failed";
|
|
26047
|
+
data: {
|
|
26048
|
+
success: boolean;
|
|
26049
|
+
productIds: string[];
|
|
26050
|
+
storeTargets: {
|
|
26051
|
+
/** @enum {string} */
|
|
26052
|
+
marketplace:
|
|
26053
|
+
| "shopee"
|
|
26054
|
+
| "lazada"
|
|
26055
|
+
| "tiktok"
|
|
26056
|
+
| "shopify"
|
|
26057
|
+
| "whatsapp"
|
|
26058
|
+
| "zalora"
|
|
26059
|
+
| "amazon"
|
|
26060
|
+
| "ebay";
|
|
26061
|
+
storeId: string;
|
|
26062
|
+
}[];
|
|
26063
|
+
succeededCount: number;
|
|
26064
|
+
failedCount: number;
|
|
26065
|
+
results: {
|
|
26066
|
+
productId: string;
|
|
26067
|
+
success: boolean;
|
|
26068
|
+
storeIds?: string[];
|
|
26069
|
+
error?: string;
|
|
26070
|
+
}[];
|
|
26071
|
+
};
|
|
26072
|
+
};
|
|
26073
|
+
};
|
|
26074
|
+
};
|
|
26075
|
+
/** @description Invalid request or queue preparation failed. Inspect the error before resubmitting. */
|
|
26076
|
+
400: {
|
|
26077
|
+
headers: {
|
|
26078
|
+
[name: string]: unknown;
|
|
26079
|
+
};
|
|
26080
|
+
content?: never;
|
|
26081
|
+
};
|
|
26082
|
+
/** @description Missing or invalid credentials. */
|
|
26083
|
+
401: {
|
|
26084
|
+
headers: {
|
|
26085
|
+
[name: string]: unknown;
|
|
26086
|
+
};
|
|
26087
|
+
content?: never;
|
|
26088
|
+
};
|
|
26089
|
+
/** @description Missing scope, insufficient permission, organization mismatch, or inactive organization. */
|
|
26090
|
+
403: {
|
|
26091
|
+
headers: {
|
|
26092
|
+
[name: string]: unknown;
|
|
26093
|
+
};
|
|
26094
|
+
content?: never;
|
|
26095
|
+
};
|
|
26096
|
+
/** @description Rate limit exceeded. */
|
|
26097
|
+
429: {
|
|
26098
|
+
headers: {
|
|
26099
|
+
[name: string]: unknown;
|
|
26100
|
+
};
|
|
26101
|
+
content?: never;
|
|
26102
|
+
};
|
|
26103
|
+
};
|
|
26104
|
+
};
|
|
25660
26105
|
get_v1_promotions: {
|
|
25661
26106
|
parameters: {
|
|
25662
26107
|
query?: {
|
|
@@ -27600,6 +28045,123 @@ interface operations {
|
|
|
27600
28045
|
};
|
|
27601
28046
|
};
|
|
27602
28047
|
};
|
|
28048
|
+
post_v1_returns_by_returnid_evidence: {
|
|
28049
|
+
parameters: {
|
|
28050
|
+
query?: {
|
|
28051
|
+
/** @description Session callers only. API keys resolve organization scope from the credential. */
|
|
28052
|
+
organizationId?: string;
|
|
28053
|
+
};
|
|
28054
|
+
header?: never;
|
|
28055
|
+
path: {
|
|
28056
|
+
returnId: string;
|
|
28057
|
+
};
|
|
28058
|
+
cookie?: never;
|
|
28059
|
+
};
|
|
28060
|
+
requestBody: {
|
|
28061
|
+
content: {
|
|
28062
|
+
"multipart/form-data": {
|
|
28063
|
+
/** Format: binary */
|
|
28064
|
+
file: string;
|
|
28065
|
+
};
|
|
28066
|
+
};
|
|
28067
|
+
};
|
|
28068
|
+
responses: {
|
|
28069
|
+
/** @description Request completed. Inspect data.success, per-target results and pendingCount for processing progress. */
|
|
28070
|
+
200: {
|
|
28071
|
+
headers: {
|
|
28072
|
+
[name: string]: unknown;
|
|
28073
|
+
};
|
|
28074
|
+
content: {
|
|
28075
|
+
"application/json": {
|
|
28076
|
+
ok: boolean;
|
|
28077
|
+
apiVersion: string;
|
|
28078
|
+
/** Format: uuid */
|
|
28079
|
+
operationId: string;
|
|
28080
|
+
/** @enum {string} */
|
|
28081
|
+
status: "completed";
|
|
28082
|
+
data: {
|
|
28083
|
+
receipt: string;
|
|
28084
|
+
};
|
|
28085
|
+
links: {
|
|
28086
|
+
[key: string]: string;
|
|
28087
|
+
};
|
|
28088
|
+
warnings: string[];
|
|
28089
|
+
recommendations: string[];
|
|
28090
|
+
};
|
|
28091
|
+
};
|
|
28092
|
+
};
|
|
28093
|
+
/** @description Invalid request, conflicting operations, singular arguments or a batch exceeding the endpoint limit. */
|
|
28094
|
+
400: {
|
|
28095
|
+
headers: {
|
|
28096
|
+
[name: string]: unknown;
|
|
28097
|
+
};
|
|
28098
|
+
content?: never;
|
|
28099
|
+
};
|
|
28100
|
+
/** @description Missing or invalid credentials. */
|
|
28101
|
+
401: {
|
|
28102
|
+
headers: {
|
|
28103
|
+
[name: string]: unknown;
|
|
28104
|
+
};
|
|
28105
|
+
content?: never;
|
|
28106
|
+
};
|
|
28107
|
+
/** @description Missing scope, organization mismatch, or a target outside the caller's assigned stores and markets. */
|
|
28108
|
+
403: {
|
|
28109
|
+
headers: {
|
|
28110
|
+
[name: string]: unknown;
|
|
28111
|
+
};
|
|
28112
|
+
content?: never;
|
|
28113
|
+
};
|
|
28114
|
+
/** @description The return is no longer open for a seller response. */
|
|
28115
|
+
409: {
|
|
28116
|
+
headers: {
|
|
28117
|
+
[name: string]: unknown;
|
|
28118
|
+
};
|
|
28119
|
+
content?: never;
|
|
28120
|
+
};
|
|
28121
|
+
/** @description The upload exceeds the evidence size limit. */
|
|
28122
|
+
413: {
|
|
28123
|
+
headers: {
|
|
28124
|
+
[name: string]: unknown;
|
|
28125
|
+
};
|
|
28126
|
+
content?: never;
|
|
28127
|
+
};
|
|
28128
|
+
/** @description Use multipart/form-data with a valid JPEG or PNG image. */
|
|
28129
|
+
415: {
|
|
28130
|
+
headers: {
|
|
28131
|
+
[name: string]: unknown;
|
|
28132
|
+
};
|
|
28133
|
+
content?: never;
|
|
28134
|
+
};
|
|
28135
|
+
/** @description The marketplace does not support rejection evidence uploads. */
|
|
28136
|
+
422: {
|
|
28137
|
+
headers: {
|
|
28138
|
+
[name: string]: unknown;
|
|
28139
|
+
};
|
|
28140
|
+
content?: never;
|
|
28141
|
+
};
|
|
28142
|
+
/** @description Rate limit exceeded. */
|
|
28143
|
+
429: {
|
|
28144
|
+
headers: {
|
|
28145
|
+
[name: string]: unknown;
|
|
28146
|
+
};
|
|
28147
|
+
content?: never;
|
|
28148
|
+
};
|
|
28149
|
+
/** @description The marketplace could not accept the evidence upload. */
|
|
28150
|
+
502: {
|
|
28151
|
+
headers: {
|
|
28152
|
+
[name: string]: unknown;
|
|
28153
|
+
};
|
|
28154
|
+
content?: never;
|
|
28155
|
+
};
|
|
28156
|
+
/** @description Service unavailable. Retry a submission with the same requestId and unchanged operations. */
|
|
28157
|
+
503: {
|
|
28158
|
+
headers: {
|
|
28159
|
+
[name: string]: unknown;
|
|
28160
|
+
};
|
|
28161
|
+
content?: never;
|
|
28162
|
+
};
|
|
28163
|
+
};
|
|
28164
|
+
};
|
|
27603
28165
|
get_v1_returns_actions: {
|
|
27604
28166
|
parameters: {
|
|
27605
28167
|
query: {
|
|
@@ -27655,6 +28217,22 @@ interface operations {
|
|
|
27655
28217
|
id: string;
|
|
27656
28218
|
label: string;
|
|
27657
28219
|
description: string;
|
|
28220
|
+
input?:
|
|
28221
|
+
| {
|
|
28222
|
+
/** @constant */
|
|
28223
|
+
kind: "reject";
|
|
28224
|
+
reasons: {
|
|
28225
|
+
id: string;
|
|
28226
|
+
label: string;
|
|
28227
|
+
}[];
|
|
28228
|
+
evidenceUpload?: boolean;
|
|
28229
|
+
}
|
|
28230
|
+
| {
|
|
28231
|
+
/** @constant */
|
|
28232
|
+
kind: "partial_refund";
|
|
28233
|
+
currency: string;
|
|
28234
|
+
maximum: string;
|
|
28235
|
+
};
|
|
27658
28236
|
}[];
|
|
27659
28237
|
limitation?: string;
|
|
27660
28238
|
version: string;
|
|
@@ -27730,6 +28308,24 @@ interface operations {
|
|
|
27730
28308
|
returnId: string;
|
|
27731
28309
|
actionId: string;
|
|
27732
28310
|
version: string;
|
|
28311
|
+
input?:
|
|
28312
|
+
| {
|
|
28313
|
+
/** @constant */
|
|
28314
|
+
kind: "reject";
|
|
28315
|
+
reasonId: string;
|
|
28316
|
+
comment?: string;
|
|
28317
|
+
evidence?: {
|
|
28318
|
+
name: string;
|
|
28319
|
+
receipt: string;
|
|
28320
|
+
}[];
|
|
28321
|
+
}
|
|
28322
|
+
| {
|
|
28323
|
+
/** @constant */
|
|
28324
|
+
kind: "partial_refund";
|
|
28325
|
+
amount: string;
|
|
28326
|
+
currency: string;
|
|
28327
|
+
buyerAgreement: boolean;
|
|
28328
|
+
};
|
|
27733
28329
|
}[];
|
|
27734
28330
|
organizationId?: string;
|
|
27735
28331
|
};
|
|
@@ -33291,6 +33887,8 @@ declare class JobsClient {
|
|
|
33291
33887
|
*
|
|
33292
33888
|
* Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.
|
|
33293
33889
|
|
|
33890
|
+
Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
|
|
33891
|
+
|
|
33294
33892
|
Price comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.
|
|
33295
33893
|
*
|
|
33296
33894
|
* `GET /api/v1/jobs/{jobId}`
|
|
@@ -33515,9 +34113,9 @@ declare class OrdersClient {
|
|
|
33515
34113
|
/**
|
|
33516
34114
|
* Get Order Action Options
|
|
33517
34115
|
*
|
|
33518
|
-
*
|
|
34116
|
+
* 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
34117
|
|
|
33520
|
-
|
|
34118
|
+
Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
|
|
33521
34119
|
*
|
|
33522
34120
|
* `GET /api/v1/orders/{orderId}/action-options`
|
|
33523
34121
|
*/
|
|
@@ -33527,7 +34125,7 @@ declare class OrdersClient {
|
|
|
33527
34125
|
*
|
|
33528
34126
|
* The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
|
|
33529
34127
|
|
|
33530
|
-
|
|
34128
|
+
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
34129
|
*
|
|
33532
34130
|
* `GET /api/v1/orders/{orderId}/actions`
|
|
33533
34131
|
*/
|
|
@@ -33537,7 +34135,7 @@ declare class OrdersClient {
|
|
|
33537
34135
|
*
|
|
33538
34136
|
* Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
|
|
33539
34137
|
|
|
33540
|
-
The marketplace call runs in the background
|
|
34138
|
+
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
34139
|
*
|
|
33542
34140
|
* `POST /api/v1/orders/{orderId}/actions`
|
|
33543
34141
|
*/
|
|
@@ -33551,7 +34149,7 @@ declare class OrdersClient {
|
|
|
33551
34149
|
|
|
33552
34150
|
### Choices
|
|
33553
34151
|
|
|
33554
|
-
Read
|
|
34152
|
+
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
34153
|
*
|
|
33556
34154
|
* `GET /api/v1/orders/actions`
|
|
33557
34155
|
*/
|
|
@@ -33565,11 +34163,9 @@ declare class OrdersClient {
|
|
|
33565
34163
|
|
|
33566
34164
|
### Batch submission
|
|
33567
34165
|
|
|
33568
|
-
Queue 1–50 distinct
|
|
34166
|
+
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
34167
|
|
|
33570
|
-
|
|
33571
|
-
|
|
33572
|
-
Retain requestId and unchanged operations for retr
|
|
34168
|
+
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
34169
|
*
|
|
33574
34170
|
* `POST /api/v1/orders/actions`
|
|
33575
34171
|
*/
|
|
@@ -33583,7 +34179,7 @@ declare class OrdersClient {
|
|
|
33583
34179
|
|
|
33584
34180
|
### Outcomes and labels
|
|
33585
34181
|
|
|
33586
|
-
Read
|
|
34182
|
+
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
34183
|
*
|
|
33588
34184
|
* `GET /api/v1/orders/actions/jobs`
|
|
33589
34185
|
*/
|
|
@@ -33857,14 +34453,11 @@ declare class ProductsClient {
|
|
|
33857
34453
|
*
|
|
33858
34454
|
* Queue a bulk product import for the authenticated organization.
|
|
33859
34455
|
|
|
33860
|
-
|
|
34456
|
+
### Destinations
|
|
33861
34457
|
|
|
33862
|
-
|
|
34458
|
+
Supply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.
|
|
33863
34459
|
|
|
33864
|
-
|
|
33865
|
-
- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
|
|
33866
|
-
- Send JSON with inline `csvText`.
|
|
33867
|
-
- Send
|
|
34460
|
+
Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing
|
|
33868
34461
|
*
|
|
33869
34462
|
* `POST /api/v1/products/bulk-import`
|
|
33870
34463
|
*/
|
|
@@ -33902,7 +34495,9 @@ declare class ProductsClient {
|
|
|
33902
34495
|
/**
|
|
33903
34496
|
* Get Bulk Product Update Options
|
|
33904
34497
|
*
|
|
33905
|
-
* List
|
|
34498
|
+
* List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
|
|
34499
|
+
|
|
34500
|
+
Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
|
|
33906
34501
|
*
|
|
33907
34502
|
* `GET /api/v1/products/bulk-update`
|
|
33908
34503
|
*/
|
|
@@ -33910,7 +34505,15 @@ declare class ProductsClient {
|
|
|
33910
34505
|
/**
|
|
33911
34506
|
* Bulk Update Product Prices and Stock
|
|
33912
34507
|
*
|
|
33913
|
-
* Update existing catalog SKUs from 1–10 uploaded CSV
|
|
34508
|
+
* 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.
|
|
34509
|
+
|
|
34510
|
+
### File and source selection
|
|
34511
|
+
|
|
34512
|
+
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.
|
|
34513
|
+
|
|
34514
|
+
### Track the results
|
|
34515
|
+
|
|
34516
|
+
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
34517
|
*
|
|
33915
34518
|
* `POST /api/v1/products/bulk-update`
|
|
33916
34519
|
*/
|
|
@@ -33918,7 +34521,9 @@ declare class ProductsClient {
|
|
|
33918
34521
|
/**
|
|
33919
34522
|
* Get Bulk Product Update Status
|
|
33920
34523
|
*
|
|
33921
|
-
* Read up to 20
|
|
34524
|
+
* 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.
|
|
34525
|
+
|
|
34526
|
+
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
34527
|
*
|
|
33923
34528
|
* `POST /api/v1/products/bulk-update/status`
|
|
33924
34529
|
*/
|
|
@@ -34030,13 +34635,27 @@ declare class ProductsClient {
|
|
|
34030
34635
|
|
|
34031
34636
|
### Enrichment options
|
|
34032
34637
|
|
|
34033
|
-
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
34034
|
-
|
|
34035
|
-
autoApplyHighConfidence defaults to false.
|
|
34638
|
+
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections. Use deferredMarketplaces to enrich product
|
|
34036
34639
|
*
|
|
34037
34640
|
* `POST /api/v1/products/enrich`
|
|
34038
34641
|
*/
|
|
34039
34642
|
enrich(request: OperationBody<operations["post_v1_products_enrich"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_enrich"]>>;
|
|
34643
|
+
/**
|
|
34644
|
+
* Assign Product Marketplace Stores
|
|
34645
|
+
*
|
|
34646
|
+
* Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
|
|
34647
|
+
|
|
34648
|
+
### Store selection
|
|
34649
|
+
|
|
34650
|
+
Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
|
|
34651
|
+
|
|
34652
|
+
### Publish assigned stores
|
|
34653
|
+
|
|
34654
|
+
The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.
|
|
34655
|
+
*
|
|
34656
|
+
* `POST /api/v1/products/marketplace-stores`
|
|
34657
|
+
*/
|
|
34658
|
+
assignMarketplaceStores(request: OperationBody<operations["post_v1_products_marketplace_stores"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_marketplace_stores"]>>;
|
|
34040
34659
|
/** Read a bounded chunk without summary classification; persist progress to resume. */
|
|
34041
34660
|
scan(request?: ProductScanRequest, options?: ProductScanOptions): Promise<ProductScanResult>;
|
|
34042
34661
|
/**
|
|
@@ -34286,6 +34905,16 @@ declare class ReturnsClient {
|
|
|
34286
34905
|
* `GET /api/v1/returns/{returnId}`
|
|
34287
34906
|
*/
|
|
34288
34907
|
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"]>>;
|
|
34908
|
+
/**
|
|
34909
|
+
* Upload Return Rejection Evidence
|
|
34910
|
+
*
|
|
34911
|
+
* Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
|
|
34912
|
+
|
|
34913
|
+
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.
|
|
34914
|
+
*
|
|
34915
|
+
* `POST /api/v1/returns/{returnId}/evidence`
|
|
34916
|
+
*/
|
|
34917
|
+
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
34918
|
/**
|
|
34290
34919
|
* Check Return Actions
|
|
34291
34920
|
*
|
|
@@ -34833,7 +35462,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
34833
35462
|
toleranceInSeconds?: number;
|
|
34834
35463
|
}): Promise<ConstructedWebhookEvent>;
|
|
34835
35464
|
|
|
34836
|
-
declare const SDK_VERSION = "0.
|
|
35465
|
+
declare const SDK_VERSION = "0.25.0";
|
|
34837
35466
|
|
|
34838
35467
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
34839
35468
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|