@omni-commerce/sdk 0.24.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 +2 -0
- package/dist/index.cjs +32 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +421 -20
- package/dist/index.d.ts +421 -20
- package/dist/index.js +32 -10
- 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"];
|
|
@@ -2455,6 +2457,10 @@ interface paths {
|
|
|
2455
2457
|
* Bulk Import Products from JSON or CSV
|
|
2456
2458
|
* @description Queue a bulk product import for the authenticated organization.
|
|
2457
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
|
+
*
|
|
2458
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.
|
|
2459
2465
|
*
|
|
2460
2466
|
* ### Input options
|
|
@@ -2814,13 +2820,13 @@ interface paths {
|
|
|
2814
2820
|
*
|
|
2815
2821
|
* ### Enrichment options
|
|
2816
2822
|
*
|
|
2817
|
-
* 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.
|
|
2818
2824
|
*
|
|
2819
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.
|
|
2820
2826
|
*
|
|
2821
2827
|
* ### Publishing after approval
|
|
2822
2828
|
*
|
|
2823
|
-
* 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.
|
|
2824
2830
|
*/
|
|
2825
2831
|
post: operations["post_v1_products_enrich"];
|
|
2826
2832
|
delete?: never;
|
|
@@ -2829,6 +2835,34 @@ interface paths {
|
|
|
2829
2835
|
patch?: never;
|
|
2830
2836
|
trace?: never;
|
|
2831
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
|
+
};
|
|
2832
2866
|
"/api/v1/promotions": {
|
|
2833
2867
|
parameters: {
|
|
2834
2868
|
query?: never;
|
|
@@ -11538,6 +11572,36 @@ interface operations {
|
|
|
11538
11572
|
offerId: string;
|
|
11539
11573
|
name: string;
|
|
11540
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
|
+
}[];
|
|
11541
11605
|
}[];
|
|
11542
11606
|
scheduleIssues: {
|
|
11543
11607
|
windowId: string;
|
|
@@ -11745,6 +11809,36 @@ interface operations {
|
|
|
11745
11809
|
offerId: string;
|
|
11746
11810
|
name: string;
|
|
11747
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
|
+
}[];
|
|
11748
11842
|
}[];
|
|
11749
11843
|
scheduleIssues: {
|
|
11750
11844
|
windowId: string;
|
|
@@ -12230,6 +12324,36 @@ interface operations {
|
|
|
12230
12324
|
offerId: string;
|
|
12231
12325
|
name: string;
|
|
12232
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
|
+
}[];
|
|
12233
12357
|
}[];
|
|
12234
12358
|
scheduleIssues: {
|
|
12235
12359
|
windowId: string;
|
|
@@ -12682,6 +12806,36 @@ interface operations {
|
|
|
12682
12806
|
offerId: string;
|
|
12683
12807
|
name: string;
|
|
12684
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
|
+
}[];
|
|
12685
12839
|
}[];
|
|
12686
12840
|
scheduleIssues: {
|
|
12687
12841
|
windowId: string;
|
|
@@ -12905,6 +13059,36 @@ interface operations {
|
|
|
12905
13059
|
offerId: string;
|
|
12906
13060
|
name: string;
|
|
12907
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
|
+
}[];
|
|
12908
13092
|
}[];
|
|
12909
13093
|
scheduleIssues: {
|
|
12910
13094
|
windowId: string;
|
|
@@ -13856,6 +14040,23 @@ interface operations {
|
|
|
13856
14040
|
warnings?: string[];
|
|
13857
14041
|
issueCount?: number;
|
|
13858
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;
|
|
13859
14060
|
error?: string;
|
|
13860
14061
|
}[];
|
|
13861
14062
|
};
|
|
@@ -23534,7 +23735,7 @@ interface operations {
|
|
|
23534
23735
|
| "price"
|
|
23535
23736
|
| "inventory"
|
|
23536
23737
|
)[];
|
|
23537
|
-
/** @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. */
|
|
23538
23739
|
storeTargets?: {
|
|
23539
23740
|
/** @enum {string} */
|
|
23540
23741
|
marketplace:
|
|
@@ -23771,6 +23972,8 @@ interface operations {
|
|
|
23771
23972
|
| "amazon"
|
|
23772
23973
|
| "ebay"
|
|
23773
23974
|
)[];
|
|
23975
|
+
/** @description Save marketplace drafts and assign stores later. Omit marketplaceStoreSelections and leave workflow.publish off. */
|
|
23976
|
+
deferStoreSelection?: boolean;
|
|
23774
23977
|
targetCountries?: string[];
|
|
23775
23978
|
fieldMapping?: {
|
|
23776
23979
|
[key: string]: string;
|
|
@@ -23783,8 +23986,8 @@ interface operations {
|
|
|
23783
23986
|
| "fail_job";
|
|
23784
23987
|
autoApproveThreshold?: number | null;
|
|
23785
23988
|
spendCeilingUsd?: number | null;
|
|
23786
|
-
/** @description
|
|
23787
|
-
marketplaceStoreSelections
|
|
23989
|
+
/** @description Required unless deferStoreSelection is true. */
|
|
23990
|
+
marketplaceStoreSelections?: {
|
|
23788
23991
|
/** @description Connected shopee store IDs. */
|
|
23789
23992
|
shopee?: string[];
|
|
23790
23993
|
/** @description Connected lazada store IDs. */
|
|
@@ -23861,10 +24064,12 @@ interface operations {
|
|
|
23861
24064
|
| "ebay"
|
|
23862
24065
|
)[];
|
|
23863
24066
|
targetCountries?: string | string[];
|
|
24067
|
+
/** @description Send true as a form field to save marketplace-only drafts. */
|
|
24068
|
+
deferStoreSelection?: boolean;
|
|
23864
24069
|
/** @description JSON object mapping CSV headers to import fields, e.g. `{"sku":"SKU","title":"Product Name"}`. */
|
|
23865
24070
|
fieldMapping?: string;
|
|
23866
|
-
/** @description
|
|
23867
|
-
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?:
|
|
23868
24073
|
| {
|
|
23869
24074
|
/** @description Connected shopee store IDs. */
|
|
23870
24075
|
shopee?: string[];
|
|
@@ -23935,6 +24140,8 @@ interface operations {
|
|
|
23935
24140
|
data?: {
|
|
23936
24141
|
rowCount?: number;
|
|
23937
24142
|
fileName?: string;
|
|
24143
|
+
/** @description True for marketplace-only imports. */
|
|
24144
|
+
deferStoreSelection?: boolean;
|
|
23938
24145
|
targetMarketplaces?: string[];
|
|
23939
24146
|
targetCountries?: string[];
|
|
23940
24147
|
fieldMapping?: Record<string, never>;
|
|
@@ -23957,7 +24164,7 @@ interface operations {
|
|
|
23957
24164
|
};
|
|
23958
24165
|
content?: never;
|
|
23959
24166
|
};
|
|
23960
|
-
/** @description Forbidden -
|
|
24167
|
+
/** @description Forbidden - Credential cannot access this organization or lacks the required catalog scope. */
|
|
23961
24168
|
403: {
|
|
23962
24169
|
headers: {
|
|
23963
24170
|
[name: string]: unknown;
|
|
@@ -25603,6 +25810,17 @@ interface operations {
|
|
|
25603
25810
|
| "amazon"
|
|
25604
25811
|
| "ebay"
|
|
25605
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
|
+
)[];
|
|
25606
25824
|
marketplaceStoreSelections?: {
|
|
25607
25825
|
[key: string]: string[] | string;
|
|
25608
25826
|
};
|
|
@@ -25625,7 +25843,7 @@ interface operations {
|
|
|
25625
25843
|
/** @description Marketplace taxonomy confidence threshold, independent of copy and import-row autoApproveThreshold. Omit to use the organization setting. */
|
|
25626
25844
|
taxonomyAutoApplyThreshold?: number;
|
|
25627
25845
|
/**
|
|
25628
|
-
* @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.
|
|
25629
25847
|
* @default false
|
|
25630
25848
|
*/
|
|
25631
25849
|
publish?: boolean;
|
|
@@ -25661,10 +25879,24 @@ interface operations {
|
|
|
25661
25879
|
failedCount: number;
|
|
25662
25880
|
batchJobId?: string;
|
|
25663
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
|
+
)[];
|
|
25664
25894
|
results: {
|
|
25665
25895
|
productId: string;
|
|
25666
25896
|
success: boolean;
|
|
25667
|
-
jobId
|
|
25897
|
+
jobId?: string;
|
|
25898
|
+
jobIds: string[];
|
|
25899
|
+
taxonomyBatchIds: string[];
|
|
25668
25900
|
}[];
|
|
25669
25901
|
};
|
|
25670
25902
|
};
|
|
@@ -25714,6 +25946,162 @@ interface operations {
|
|
|
25714
25946
|
};
|
|
25715
25947
|
};
|
|
25716
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
|
+
};
|
|
25717
26105
|
get_v1_promotions: {
|
|
25718
26106
|
parameters: {
|
|
25719
26107
|
query?: {
|
|
@@ -33499,6 +33887,8 @@ declare class JobsClient {
|
|
|
33499
33887
|
*
|
|
33500
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.
|
|
33501
33889
|
|
|
33890
|
+
Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
|
|
33891
|
+
|
|
33502
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.
|
|
33503
33893
|
*
|
|
33504
33894
|
* `GET /api/v1/jobs/{jobId}`
|
|
@@ -34063,14 +34453,11 @@ declare class ProductsClient {
|
|
|
34063
34453
|
*
|
|
34064
34454
|
* Queue a bulk product import for the authenticated organization.
|
|
34065
34455
|
|
|
34066
|
-
|
|
34456
|
+
### Destinations
|
|
34067
34457
|
|
|
34068
|
-
|
|
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.
|
|
34069
34459
|
|
|
34070
|
-
|
|
34071
|
-
- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
|
|
34072
|
-
- Send JSON with inline `csvText`.
|
|
34073
|
-
- 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
|
|
34074
34461
|
*
|
|
34075
34462
|
* `POST /api/v1/products/bulk-import`
|
|
34076
34463
|
*/
|
|
@@ -34248,13 +34635,27 @@ declare class ProductsClient {
|
|
|
34248
34635
|
|
|
34249
34636
|
### Enrichment options
|
|
34250
34637
|
|
|
34251
|
-
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.
|
|
34252
|
-
|
|
34253
|
-
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
|
|
34254
34639
|
*
|
|
34255
34640
|
* `POST /api/v1/products/enrich`
|
|
34256
34641
|
*/
|
|
34257
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"]>>;
|
|
34258
34659
|
/** Read a bounded chunk without summary classification; persist progress to resume. */
|
|
34259
34660
|
scan(request?: ProductScanRequest, options?: ProductScanOptions): Promise<ProductScanResult>;
|
|
34260
34661
|
/**
|
|
@@ -35061,7 +35462,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
35061
35462
|
toleranceInSeconds?: number;
|
|
35062
35463
|
}): Promise<ConstructedWebhookEvent>;
|
|
35063
35464
|
|
|
35064
|
-
declare const SDK_VERSION = "0.
|
|
35465
|
+
declare const SDK_VERSION = "0.25.0";
|
|
35065
35466
|
|
|
35066
35467
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
35067
35468
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|